Warum funktioniert das nicht?? Was stimmt an dem Code nicht?
[code:1:9f0296064f]<html>
<haed>
<title>Ticker</title>
<SCRIPT LANGUAGE="JavaScript">
var offset=0;
news="+++NEWS++++ +++Die neuste Nachricht ist immer hier zu sehen++++ +++Gut, oder?+++";
function ticker();
{
var buf="<a style='background: black; color: white;'>" + news.substr(offset, 94) + "</a>";
if(document.layers)
{document.ticknews.document.open() ;
document.ticknews.document.write(buf);
document.ticknews.document.close();
}
else
ticknews.innerHTML=buf;
offset++;
if(offset>news.length-1)
offset=0;
setTimeout("ticker()",100 1;;
}
</script>
<body bgcolor="#ffffff" onload="ticker()">
<div id="ticknews" style="position: absolute; top: 20; left: 30; width:350"></div>
</body>
</html>[/code:1:9f0296064f]
Ich hoffe ihr könnt mir helfen!
Danke schon mal im Vorraus!
Ciao
[code:1:9f0296064f]<html>
<haed>
<title>Ticker</title>
<SCRIPT LANGUAGE="JavaScript">
var offset=0;
news="+++NEWS++++ +++Die neuste Nachricht ist immer hier zu sehen++++ +++Gut, oder?+++";
function ticker();
{
var buf="<a style='background: black; color: white;'>" + news.substr(offset, 94) + "</a>";
if(document.layers)
{document.ticknews.document.open() ;
document.ticknews.document.write(buf);
document.ticknews.document.close();
}
else
ticknews.innerHTML=buf;
offset++;
if(offset>news.length-1)
offset=0;
setTimeout("ticker()",100 1;;
}
</script>
<body bgcolor="#ffffff" onload="ticker()">
<div id="ticknews" style="position: absolute; top: 20; left: 30; width:350"></div>
</body>
</html>[/code:1:9f0296064f]
Ich hoffe ihr könnt mir helfen!
Danke schon mal im Vorraus!
Ciao
Kommentar