.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Animated Status bar

Posted By:Gowthammanju       Posted Date: July 30, 2011    Points: 40    Category: Javascript    URL: http://www.dotnetspark.com  

this code explains about designing of animated scroll bar using java script
 

//--start->
var welcometext = "Welcome to dotnet spark!"
var txt = "";
var begin = false;
var count = 0;
var timeset = 1;

function Statusbartxt() 
{
timeset--;
if (!timeset) 
{
if (!begin)
{
begin = true;
window.status = welcometext;
setTimeout("anim()", 1);
}
txt = welcometext;
 }
}

function anim()
 {
count++;
if (count==7) count = 1;
if (count==1) window.status = '*###' + txt + '###*';
if (count==2) window.status = '=*==' + txt + '==*=';
if (count==3) window.status = '*_*_' + txt + '_*_*';
if (count==4) window.status = '-*-*' + txt + '*-*-';
if (count==5) window.status = '&&*&' + txt + '&*&&';
if (count==6) window.status = '###*' + txt + '*###'
setTimeout("anim()", 200);
}
//  End -->

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend