Hallo zusammen,
hab diesen Text aus dem Web kopiert. Läuft wunderbar im IE aber nicht in Firefox. Kann mir absoluter Null in Javascript da jemand helfen?
Hier das Script:
//Dieses Skript stammt von Michael Mailer´s JavaScripts
//URL: http://www.webaid.de/js – eMail: [email protected]
//Bitte entfernen Sie diesen Vermerk nicht !
//Specify the marquee’s width (in pixels)
var marqueewidth=150
//Specify the marquee’s height
var marqueeheight=150
//Specify the marquee’s scroll speed (larger is faster)
var speed=2
//Specify the marquee contents
var marqueecontents=’<center><font face=„arial, helvetica“ color="#000000" size=„1“><strong>Viel Spaß bei<br><a href=„http://www.webaid.de/js“ target="_top">Michael Mailer´s JavaScripts</a>.<p>Wenn Sie nützliche Scripts finden,<br>dann setzen Sie doch bitte einen Link<br>auf meine Seiten!<br><a href=„docs/javascripta.shtml“ target=„pageFrame“>Klicken Sie hier!</a></font></center>’
if (document.all)
document.write(’<marquee direction=„up“ scrollAmount=’+speed+’ style=„width:’+marqueewidth+’;height:’+marqueeheight+’“>’+marqueecontents+’</marquee>’)
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
Bin für jede Hilfe dankbar!
Gruß,
Andreas