D
drew197
I am a newbie to javascript. I am editing someone else's code to make
it work in in Safari and Mozilla. I got it to work in Mozilla, but I
can't get it to work in Safari. I have placed an alert after this line
and it comes up in Mozilla but not in Safari. Does anyone see a reason
why this fails in Safari?
document.write("<div id='orbitLayer' style='position:absolute;
left:0px; top:"+document.all['topBanner'].offsetWidth+"px;
width:"+document.all['topBanner'].offsetWidth+"px;
height:"+(document.body.offsetHeight-document.all['topBanner'].offsetHeight)+"px;
z-index:2>");
Thanks ahead of time,
Drew
it work in in Safari and Mozilla. I got it to work in Mozilla, but I
can't get it to work in Safari. I have placed an alert after this line
and it comes up in Mozilla but not in Safari. Does anyone see a reason
why this fails in Safari?
document.write("<div id='orbitLayer' style='position:absolute;
left:0px; top:"+document.all['topBanner'].offsetWidth+"px;
width:"+document.all['topBanner'].offsetWidth+"px;
height:"+(document.body.offsetHeight-document.all['topBanner'].offsetHeight)+"px;
z-index:2>");
Thanks ahead of time,
Drew