C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Advanced JavaScript - Status bar effects Part 2


Posted Date: 28 Apr 2006    Resource Type: Articles    Category: General

Posted By: Chetankumar Digambarrao Akarte       Member Level: Gold
Rating:     Points: 10



Introduction



Following sample of code give idea to add blinking flash message at the status bar. Adding flash test at status is very simple for that we use a single if-else loop in function blinkflash(). First of all we define three variables message for ‘display message at status bar’, speed for ‘set time interval to flash text’, and status and assign status=1. In if-else loop we check condition if (status == 1) and display message at status bar by window.status=message; and make status=0; when setTimeout("blinkflash();",speed); call function blinkflash() here else condition satisfied and window.status=""; display blank at status bar and set status=1; All above process done with the interval of only 500 milliseconds so we feel that message is flash at status bar.

 
<SCRIPT language=JavaScript>
var message = "My Flash message...!!!";
var speed = 500;
var control = 1;
function blinkflash()
{
if (control == 1)
{
window.status=message;
control=0;
}
else
{
window.status="";
control=1;
}
setTimeout("blinkflash();",speed);
}
blinkflash();
</SCRIPT>




Summary



This artical gives an idea to add Flashing Message Status Bar of Web Browser





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Status Bar effects with Javascript  .  Status Bar effects using Javascript  .  Status Bar effects  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Advanced JavaScript - Status bar effects Part 1
Previous Resource: Advanced JavaScript - Status bar effects Part 3
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

SPOC

Contact Us    Privacy Policy    Terms Of Use