Re: ORIGINAL CODE AND IDEA : [url=http://www.dynamicdrive.com]dynamicdrive[/url]
BROWSER COMPATIBLE : Mozilla Firefox and Internet Explorer v6
REQUIREMENT : Knowledge in [url=http://theftalk.com/t2
var appearfor=2000
if (!attachOnLoadHandler(function() { position_at_top();expand();})) window.onload = function() { position_at_top();expand();};
function position_at_top(){
if (document.layers)
document.test.top=pageYOffset
else if (document.all){
test.innerHTML='<div align=center><font face="Arial">'+themessage+'</font></div>'
setTimeout("test.style.top=document.body.scrollTop+10;test.style.left=document.body.scrollLeft+10",100)
}
else if (document.getElementById){
document.getElementById("navigation").innerHTML='<div align=center><font face="Arial">'+themessage+'</font></div>'
document.getElementById("navigation").style.top=pageYOffset
}
}
function expand(){
if (document.layers){
document.test.document.write('<div align=center style="font-size:'+fontsize+'px"><font face="Arial">'+themessage+'</font></div>')
document.test.document.close()
}
else if (document.all)
test.style.fontSize=fontsize+'px'
else if (document.getElementById)
document.getElementById("navigation").style.fontSize=fontsize+'px'
fontsize+=5
if (fontsize>50){
if (document.layers)
setTimeout("document.test.visibility='hide'",appearfor)
else if (document.all)
setTimeout("test.style.visibility='hidden'",appearfor)
else if (document.getElementById)
setTimeout("document.getElementById('navigation').style.visibility='hidden'",appearfor)
return
}
else
setTimeout("expand()",50)
}