I have a scrollbar that runs at the top of my page, I have it in a external
js file and call it in the head tags of the webpage code. can you one tell
me how to get this code to work with other browsers mainly Netscape 7 and
above. Currently it doesn't display.
this is the scroll bar code
Thanks
----------------------------------------------------------------------
document.write('<marquee id="alertit"
style="position:absolute;left:0px;top:0;background-color:"
onMouseover="this.scrollAmount=1"
onMouseout="this.scrollAmount=speed"></marquee>');
var themsg='<span style="font: 22px Arial;color:#FFCC66;"><b>Text Text
Text:</span>'
var speed=4
var loops=4
function populatescroller(){
var windowwidth=iecompattest().clientWidth
document.getElementById("alertit").innerHTML=thems g
document.getElementById("alertit").style.width=win dowwidth
document.getElementById("alertit").scrollAmount=sp eed
document.getElementById("alertit").scrollDelay=20
document.getElementById("alertit").loop=loops
document.getElementById("alertit").onfinish=functi on(){
document.getElementById("alertit").style.visibilit y="hidden"
}
}
function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement :
document.body
}
if (document.all && document.getElementById){
window.onload=populatescroller
window.onresize=populatescroller
}
----------------------------------------------------------------------