|
Post by QKat on Dec 22, 2006 15:56:01 GMT -5
Meeew.... doezzit have to be in a thread? >.< uhg.
|
|
|
Post by QKat on Dec 22, 2006 15:58:09 GMT -5
<script type="text/javascript"> <!-- // Created by EtonBones at yahoo d o t com // Do not redistribute without permission // Feel free to edit provided a notation is // added to this header stating that fact. // THIS HEADER MUST REMAIN INTACT. function calcIcon(){ if(!document.postForm){ var iCell = document.getElementsByTagName("td"); for(c = 0; c < iCell.length; c ++){ // if( iCell.item(c).width == "50%" && (iCell.item(c).innerHTML.match(/action=addbookmark/i) || iCell.item(c).innerHTML.match(/action=removebookmark/i))){ if( iCell.item(c).width == "50%" && iCell.item(c).innerHTML.match(/searchpopup/i)){ var ts=iCell.item(c).getElementsByTagName('a'); for(a=0;a<ts.length;a++){ if(ts .href.match(/searchpopup/i)) break; }
if(ts.href.match(/searchpopup/i)){ var oCalc=document.createElement("a"); oCalc.name="calc"; oCalc.href="javascript:void(0);" oCalc.onclick=function(){window.open("http://geocities.com/etonbones/WizardCalcJS.htm","WizardCalc","toolbar=0,status=0, menubar=0,scrollbars=0,resizable=0,width=340,height=200" );}
var oIcon=document.createElement("img") oIcon.src="http://i31.photobucket.com/albums/c363/EtonBones/wizardcalc.gif"; oIcon.alt="[open wizard calculator]"; oIcon.border="0"; oIcon.width=16; oIcon.height=16; oCalc.appendChild(oIcon); ts.parentNode.insertBefore(oCalc,ts);
} //end if(ts.href.match(/searchpopup/i)) } //end if( iCell.item(c).width == "50%" && ... } //end for(c = 0; c < iCell.length; c ++) }else{ var oBtn=document.createElement("INPUT"); oBtn.name="calc"; oBtn.type="button"; oBtn.value="Calculator"; oBtn.onclick=function(){window.open("http://geocities.com/etonbones/WizardCalcJS.htm","WizardCalc","toolbar=0,status=0,m enubar=0,scrollbars=0,resizable=0,width=340,height=200" );}
var oReset=document.getElementsByName("nextaction").item(0) var nb=oReset.nextSibling.nextSibling.cloneNode(true); oReset=oReset.parentNode.appendChild(nb); oReset=oReset.previousSibling; oReset.parentNode.insertBefore(oBtn,oReset); oReset.parentNode.insertBefore(nb,oReset); } //end if(!document.postForm) } //end function calcIcon()
var boards="(board1|board2)"; if(location.href.match(/action=display/i) || document.postForm){ if(location.href.match("board="+boards)) calcIcon(); } //--> </script>
|
|
|
Post by QKat on Dec 22, 2006 15:58:26 GMT -5
T.T I don't get it...
|
|