Peter
New Member
God
Posts: 6
|
Post by Peter on Oct 29, 2004 12:05:08 GMT
Code created by Snap2000[/color]
Drop this into your footers, and voila. No modification necessary. <script><!-- /* UBBC Dropdown List :: snap2000 :: http://blu.proboards14.com */ if(location.href.indexOf("=post")!=-1 || location.href.indexOf("=quote")!=-1 || location.href.indexOf("=modify")!=-1 || location.href.indexOf("=imsend")!=-1 || location.href.indexOf("=createpoll")!=-1) { ub=document.links;theButtons=""; for(i=0;i<ub.length;i++) { if(ub[i].href.indexOf("javascript:add\(") != -1) { if(theButtons=="") { fBtn = ub[i] theButtons+='<option value="">UBBC Codes</option>'; theButtons+='<option value='+ub[i].href.split("(")[1]+'>'+ub[i].getElementsByTagName("img")[0].alt+'</option>'; } else { ub[i].style.display="none"; theButtons+='<option value='+ub[i].href.split("(")[1]+'>'+ub[i].getElementsByTagName("img")[0].alt+'</option>'; }}} fBtn.innerHTML='<select style="margin-top:2;" onchange="document.postmodify.message.value += this.options[this.selectedIndex].value">'+theButtons+'</select>'; } //--></script>
Also, just FYI, if you're using a code that adds additional UBBC buttons, be sure to place the code ABOVE this one.
|
|