iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 17, 2007 6:21:38 GMT -5
This code will place all your smilies into a drop down menu. Preview: ClickGlobal Footer. Cross Browser. Open Source. <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>
|
|