ialex
New Member
Posts: 10
inherit
143112
0
May 29, 2010 13:09:41 GMT -8
ialex
10
July 2009
ialex
|
Post by ialex on Oct 24, 2007 22:59:51 GMT -8
This code will place all your smilies into a drop down menu. Preview: ClickGlobal Footer. Cross Browser. <script type="text/javascript"> <!--
/*Smilies Drop Down - By iAlex - Open Source*/
if(document.postForm && document.postForm.color){ var iTheDrop=document.createElement('select'); iTheDrop.options[0]=new Option('Select Smilie'); var iSmilieCell=document.postForm.color.parentNode.parentNode.parentNode.nextSibling.cells[1]; var iSmiliePic=iSmilieCell.getElementsByTagName('img'); for(var i=0;i<iSmiliePic.length;i++){ iTheDrop.options[iTheDrop.length]=new Option(iSmiliePic.item(i).alt, iSmiliePic.item(i).parentNode.href.replace(/%20/g, ' ')); } iSmilieCell.replaceChild(iTheDrop, iSmilieCell.firstChild); iTheDrop.onchange=function(){ eval(this.value); this.selectedIndex=0; } }
//--> </script>
|
|