Head kode:
<script>
<!--
function correct(){
if (finished){
setTimeout(\"begin()\",3000)
}
return true
}
window.onerror=correct
function begin(){
if (!document.all)
return
if (maxheight==null)
maxheight=temp.offsetHeight
whatsnew.style.height=maxheight
temp.style.display=\"none\"
c=1
finished=true
change()
}
//-->
</script>
<style>
<!--
#whatsnew a{color:730073;text-decoration:none}
#whatsnew, #temp {font-weight:bold; font-family:Arial}
#whatsnew a:hover{color:red}
-->
</style>
Bodykoden:
<script language=\"javascript1.2\">
<!--
/*
News Updater Script-
© Dynamic Drive (
www.dynamicdrive.com)
For full source code, installation instructions,
100\'s more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var head=\'\'
var top=0
var maxheight
var finished=false
var tickers=new Array()
tickers[0]=\'<a href=\"0.htm\">This is message 0</a>\'
tickers[1]=\'<a href=\"1.htm\">This is message 1</a>\'
tickers[2]=\'<a href=\"2.htm\">This is message 2.</a>\'
tickers[3]=\'<a href=\"3.htm\">This is message 3.</a>\'
tickers[4]=\'<a href=\"4.htm\">This is message 4.</a>\'
for (i=1;i<=tickers.length-1;i++){
if (tickers[i].length>=tickers[top].length)
top=i
}
if (document.all)
document.write(\'<span id=\"whatsnew\" style=\"width:100%;height=10;filter:revealTrans(duration=2,transition=19)\">\'+tickers[0]+\'</span>\')
function change(){
whatsnew.innerHTML=\'\'
whatsnew.filters.revealTrans.apply()
whatsnew.filters.revealTrans.play()
whatsnew.innerHTML=tickers[c]
if (c==tickers.length-1)
c=0
else
c+=1
setTimeout(\"change()\",5000)
}
if (document.all)
document.write(\'<span id=ns style=\"display:none;\">\')
//-->
</script>
<!--Insert alternate HTML codes here
that will be seen by browsers OTHER
than IE 4.x-->
</span>
<span id=temp style=\"position:absolute;left:0;top:0\" style=&{head};>
<script>
<!--
if (document.all){
temp.style.width=whatsnew.style.width
document.write(tickers[top])
}
//-->
</script>
</span><br>
Body tagen:
<body onload=\"begin()\">