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 May 24, 2008 23:42:57 GMT -8
This will add an image to the right side of every thread, that when clicked will open that thread in a new window. Here is the image that will be used: You may continue using it, or change it via the URL at the top of the code. Preview: ClickGlobal Footer. Cross Browser. <script type="text/javascript"> <!--
/*Open Thread in New Window - Open Source - By iAlex*/
var iPicture="http://img206.imageshack.us/img206/8585/newwindowmu2.gif"; //Image URL
if(window.location.href.match(/board=/) && !window.location.href.match(/action/)){ var iTd=document.getElementsByTagName('td'); var i=iTd.length-1; do{ if(iTd.item(i).width.match(/^4(8|3)%/) && iTd.item(i).className=="windowbg" && iTd.item(i-1).width=="5%" && iTd.item(i-1).className=="windowbg2" && iTd.item(i-1).align=="center"){ var iLink=iTd.item(i).getElementsByTagName('b').item(0).firstChild.href; iHold='<div style="float: left">'+iTd.item(i).innerHTML+'</div><div style="float: right;"><a href="'+iLink+'" target="_blank" onclick="pb_bubble=1"><img src="'+iPicture+'" border="0" alt="[View In New Window]" title="[View In New Window]" /></a></div>'; iTd.item(i).innerHTML=iHold; } i--; } while(i>6); }
//--> </script>
|
|