Cross browser Marquee - HASTER
heymangler en crossbrowsermarquee der også virker i f****** Netscape6
bruger pt dette:
<script language=\"JavaScript1.2\">
var marqueewidth=40
var marqueeheight=48
var speed=2
marqueecontents=\' \'
if (document.all){
with(document){
write(\'<marquee direction=\"up\" id=\"cmarquee01\" scrollAmount=\'+speed+\' style=\"height:\'+marqueewidth+\'\">\'+marqueecontents+\'</marquee>\')
write(\'<iframe id=\"scrollerrefresh\" style=\"display:none\" src=\"Title.asp\"></iframe>\')
}
setInterval(\"document.frames.scrollerrefresh.location.reload(true)\",2000)
}
function updatescroller(txt){
marqueecontents = \'<font face=Verdana><color=white><font size=1>\' + txt + \'<br></font>\'
if (document.all){
cmarquee01.innerHTML = marqueecontents
}
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout(\"window.onresize=regenerate\",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout(\"scrollit()\",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}
window.onload=regenerate2
</script>
<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name=\"cmarquee01\">
<layer name=\"cmarquee02\" width=&{marqueewidth}; height=&{marqueeheight};></layer>
</ilayer>
hvor title.asp er automatisk generet indhold til marquee-texten
nogle der har en løsning???