Moving heading

Moving heading

The text that is written the <h2> tag will be moved dymanically through the javascript as follows
<script>
//set style for NS4 to ‘’
if (document.layers)
var ns4def='’
</script>

<h2 id=”flyin” style=”position:relative;left:-400;font-style:italic” style=><font

face=”Arial”>Welcome to our Homepage!</font></h2>

<script language=”JavaScript1.2″>

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>

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.