Free Javascript Code:Cool Text Effects-Flashy neonText!
By puru13
Don't you love the scene of neon lights glowing on front-side of shops,at night,when everything else is dark? Doesn't it visually attract you,and gets your attention?
Well what if you could do the same to allure visitors to your online shop?Well I just named your website an Online-Shop(Are they anything else by any means??).Javascript gives you the power to highlight important headings/text on your webpage by glittering text as it does outside those nightbars and clubs.Here we go!
Go here for Demo :
Here is your coded stuff:
<html>
<body>
<h1 id="heading1"><div id="div1"></div></h1>
<script>
var msg="Yahoo!";var pos=0;
var div1 = document.getElementById("div1");
function neonText()
{
div1.innerHTML= '<strong>'+'<font color="red">'+msg.substring(0,pos)+'</font color>'+'<font color="grey">'+msg.substring(pos,msg.length)+'<font color>'+'</strong>';
pos++;
if(pos==msg.length+1)
pos=0;
setTimeout("neonText()",500);
}
neonText();
</script>
</body>
</html>
<!--This code made by Pradeep saini.
Website: puru13.hubpages.com !-->
Having trouble using this Code in your webpage? Let Me Help :
Copy and paste all code from 3rd line to 16th line inside <body> element of your webpage.
To change the text displayed in neonText,Go to 5th line,replace yahoo! written inside msg=" "; with your own text.Remember,Don't delete the double quotes(" ") and only delete the word yahoo!
you are done!
If You Liked This,We've got more!
Javascript Your Website with us and increase its popularity
Powered by Spiderizon, free backlinks.
Comments
Hey Shanaya,many thanks for your words!You have always been such a lovely,encouraging friend to me and have inspired me to write more often.
May God give you all success!
shanaya 9 months ago
Hello PURU! You have a very Creative mind. Your HUBS always very Helpful and Worth Reading. Thanx for sharing this with us.:)
Obviously VOTED UP, USEFUL, AWESOME, INTERESTING.
With Respect
Frome SHANAYA:)