inherit
Dork
7641
0
Jul 5, 2007 15:11:01 GMT -8
Jay
12,589
February 2003
trugie
|
Post by Jay on Jul 13, 2006 14:05:06 GMT -8
Name: UBBC Drop Down Preview: none Crossbrowser: Yes Placement: Global Footer Editing: none Replaces the UBBC icons with drop down selection. A space is generated between the UBBC drop and Color drop (thanks to Tim for the suggestion ). Can save you ample amounts of time while skin making as well. <script type="text/javascript"> <!--
/* UBBC Drop Down - Created by Jay Please do not distribute without permission. Please leave this copyright header intact. */
if (document.postForm && document.postForm.color) {
var ub_ar = []; var ub_ar2 = [];
var ub_links = document.postForm.color.parentNode.getElementsByTagName('A'); var ubbc_drop = document.createElement('SELECT'); ubbc_drop.style.marginRight = 4; ubbc_drop.options[0] = new Option('UBBC Tags', null, null, null); ubbc_drop.onchange = function() { eval(this.options[this.options.selectedIndex].value); } for (var li = ub_links.length - 1; li >= 0; li--) { ub_ar2.push(ub_links.item(li).href.split(':')[1]); ub_ar.push(ub_links.item(li).getElementsByTagName('IMG').item(0).alt); ub_links.item(li).parentNode.removeChild(ub_links.item(li)); } for (var e = 0; e < ub_ar.length; e ++) { ubbc_drop.options[ubbc_drop.options.length] = new Option(ub_ar[e], ub_ar2[e], null, null); } document.postForm.color.parentNode.insertBefore(ubbc_drop, document.postForm.color); }
//--> </script>Jay
|
|