ŖЌǾ
Full Member
Posts: 227
|
Post by ŖЌǾ on Nov 28, 2007 9:30:46 GMT -5
Time for a new code. Well this code allows to put the mnue buttons inside teh banner. I've tested the code on 3 main browsers. FF, IE6, Opera. Be sure to place this code in Global Headers. <script type="text/Javascript"> // Menu buttons inside banner. //Coded by Roger aka RKO. // DO NOT RIP NOR REPOST.
var pxt = "100"; var pxl = "20";
document.getElementsByTagName('font')[0].style.display = 'none'; document.getElementsByTagName('br')[0].style.display = 'none'; var bannertd = document.getElementsByTagName('td')[1]; var banner = document.images[0]; var menu = document.getElementsByTagName('td')[5]; menu.parentNode.style.display = 'none'; bannertd.width = banner.width; bannertd.height = banner.height; bannertd.style.backgroundImage = 'url('+banner.src+')'; bannertd.innerHTML = "<div style='position:relative; left:"+pxl+"px; top:"+pxt+"px'>"+menu.firstChild.innerHTML+"</div>"; </script> Preview
|
|