Javascripts > Misc Javascripts > Animated Site Header
Script Title: Animated Site Header
Description: Animate your header into view with this cool script. Works in both IE4+ and NS6!
Example: Available
Copy the following code between the <BODY></BODY> tags of your html page.<script> //set style for NS4 to '' if (document.layers) var ns4def='' </script> <h2 id="flyin" style="position:relative;left:-400;font-style:italic" style=&{ns4def};><font face="Arial">Welcome to Java-Scripts.net!</font></h2> <script language="JavaScript1.2"> /* Fly-in Header script (credit must stay enclosed) By Wsabstract.com. For this and over 400+ JavaScripts, Visit http://www.wsabstract.com */ if (document.getElementById||document.all) var crossheader=document.getElementById? document.getElementById("flyin").style : document.all.flyin.style function animatein(){ if (parseInt(crossheader.left)<0) crossheader.left=parseInt(crossheader.left)+20 else{ crossheader.left=0 crossheader.fontStyle="normal" clearInterval(start) } } if (document.getElementById||document.all) start=setInterval("animatein()",50) </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email