A
Adam
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=themsg
document.getElementById("alertit").style.width=windowwidth
document.getElementById("alertit").scrollAmount=speed
document.getElementById("alertit").scrollDelay=20
document.getElementById("alertit").loop=loops
document.getElementById("alertit").onfinish=function(){
document.getElementById("alertit").style.visibility="hidden"
}
}
function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement :
document.body
}
if (document.all && document.getElementById){
window.onload=populatescroller
window.onresize=populatescroller
}
----------------------------------------------------------------------
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=themsg
document.getElementById("alertit").style.width=windowwidth
document.getElementById("alertit").scrollAmount=speed
document.getElementById("alertit").scrollDelay=20
document.getElementById("alertit").loop=loops
document.getElementById("alertit").onfinish=function(){
document.getElementById("alertit").style.visibility="hidden"
}
}
function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement :
document.body
}
if (document.all && document.getElementById){
window.onload=populatescroller
window.onresize=populatescroller
}
----------------------------------------------------------------------