|
Post by lochii on Oct 7, 2005 1:48:01 GMT -8
hi, i have this code.. "<script type="text/javascript"> /* Insert Menu Buttons Created by CrAzY_J ( hatakeforum.proboards30.com ) Do not modify or redstribute this code without the creator's permission */ function InsertLinks(ImageUrl,ClickUrl) { var gCell = document.body.getElementsByTagName( "td" )[5]; var Anchor = document.createElement( "a" ); var Img = document.createElement( "img" ); Anchor.href = ClickUrl Img.src = ImageUrl;Img.border = 0; Anchor.appendChild(Img) var Shorter = gCell.firstChild; var Shorter2 = Shorter.getElementsByTagName( "a" ) Shorter.insertBefore(Anchor,Shorter2[0]); Shorter.insertBefore(document.createTextNode(' '),Shorter2[1]); } InsertLinks("http://i5.photobucket.com/albums/y161/lochii/XOWSITE.gif","http://www.freewebs.com/xowrestlingsite/") </script>" basically puts new button in menu bar how do i get it so that it opens in a new window? and where exactly do i put the code..thank you very much!
|
|
|
Post by CD on Oct 7, 2005 4:26:01 GMT -8
<script type="text/javascript"> /* Insert Menu Buttons Created by CrAzY_J ( hatakeforum.proboards30.com ) Do not modify or redstribute this code without the creator's permission */ function InsertLinks(ImageUrl,ClickUrl) { var gCell = document.body.getElementsByTagName( "td" )[5]; var Anchor = document.createElement( "a" ); var Img = document.createElement( "img" ); Anchor.href = ClickUrl Anchor.target = "_blank"; Img.src = ImageUrl;Img.border = 0; Anchor.appendChild(Img) var Shorter = gCell.firstChild; var Shorter2 = Shorter.getElementsByTagName( "a" ) Shorter.insertBefore(Anchor,Shorter2[0]); Shorter.insertBefore(document.createTextNode(' '),Shorter2[1]); } InsertLinks("http://i5.photobucket.com/albums/y161/lochii/XOWSITE.gif","http://www.freewebs.com/xowrestlingsite/") </script>
|
|
|
Post by lochii on Oct 7, 2005 13:04:04 GMT -8
thanks CD
|
|
|
Post by CrAzY_J on Oct 7, 2005 18:38:52 GMT -8
Did ya'll get the creator's permission to repost those codes? Just kidding , Sorry I wasn't here to help earlier
|
|
|
Post by CD on Oct 7, 2005 22:43:45 GMT -8
Don't worry Crazy, XD You're still better..... but not for long.
|
|