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 1


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

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



Introduction


Advance JavaScript
Part II: - Status Bar Effects


In this article we are going to see the ways to add different effects at the status bar of a web browser. The status bar is the small text area in the lower-left corner of a browser window where messages are typically displayed indicating download progress or other browser status items. It is possible to control the contents of this region with JavaScript. Many developers use this region to display short messages. The benefit of providing information in the status bar is debatable, particularly when you consider the fact that manipulating this region often prevents default browser status information from being displayed—information that many users rely upon.



Clock at Status Bar



< script language="JavaScript" >
function doClock() {
window.setTimeout( "doClock()", 1000 );
today = new Date();
self.status = today.toString();
}
doClock()
< /script >


Here doClock() call function doclock. The Window object supports methods for setting timers that we might use to perform a variety of functions. These methods include setTimeout() and clearTimeout(). The basic idea is to set a timeout to trigger a piece of script to occur at a particular time in the future. The general syntax is
timerId = setTimeout(script-to-execute, time-in-milliseconds);

Here
window.setTimeout( "doClock()", 1000 );
today = new Date();
self.status = today.toString();

After 1000 milliseconds windows.setTimeout() call to doClock(). The Date object provides a sophisticated set of methods for manipulating dates and times. And then it converted to string and display at status bar.


Summary


This artical gives an idea to control 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: Installing and Configuring the SQL Server Reporting Services
Previous Resource: Advanced JavaScript - Status bar effects Part 2
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing services

Contact Us    Privacy Policy    Terms Of Use