Jazzing up your web site without having an adverse effect on page download times can be an awkward one to balance. Too many whistles and bells can often be overkill and distracting. The trick here, like humour, is brevity.
This nifty wee script is eye catching and won’t turn your web page’s download time into something measured in Ice Ages. What it does is slide in some text from the left. It’s currently set up to display a welcome message, but you can tinker with it to suit to your own circumstances.
<script>
if (document.layers)
var nope=''
</script>
<div id="comein" style="position:relative;left:-400;font:italic bold 16px verdana" style=&{nope};>Welcome. Please explore</div>
<script language="JavaScript1.2">
if (document.getElementById||document.all)
var crossheader=document.getElementById? document.getElementById("comein").style : document.all.comein.style
function slidein(){
if (parseInt(crossheader.left)<150)
crossheader.left=parseInt(crossheader.left)+40
else{
crossheader.left=150
crossheader.fontStyle="normal"
clearInterval(start)
}
}
if (document.getElementById||document.all)
start=setInterval("slidein()",40)
</script>