WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Flash Your Message at Status Bar
Categories : Java Script, Browsers
Chetankumar Akarte
Date : Dec 05th 2006
Grade : 5 of 5 (graded 1 times)
Viewed : 3452
File : 4545.zip
Images : Image 1
Search : More code by Chetankumar Akarte
Action : Grade This Code Example
Tools : My Examples List

 
Like this code?
Show the author your appreciation.
Submit your own code examples 
 

The following sample of code gives an idea of how to add a blinking flash message at the status bar. Adding flash text at the 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 the if-else loop we check the 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 the else condition is satisfied and window.status=""; display blank at status bar and set status=1; The above process is done with the interval of only 500 milliseconds so we feel that message is flashing at the status bar.

<SCRIPT language=JavaScript type="text/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>



Get your browser details using javascript
Categories : Java Script, Beginner Guides, Browsers
Bouncing Marquee at Status Bar
Categories : Java Script, HTML, Browsers
Cross browser event management functions using JavaScript.
Categories : Java Script, Browsers
Zephyr: AJAX Based Framework for PHP5 Developers
Categories : PHP, AJAX, Frameworks, Java Script, Web Applications
javascript doesn't accept a fieldname with []
Categories : Java Script
Array values from javascript to php
Categories : PHP, Java Script, Arrays
Create HTML forms dynamicly using Javascript & PHP
Categories : PHP, PHP Classes, Java Script
Linked comboboxes with php-mysql & javascript
Categories : PHP, Java Script, Databases, MySQL
The toll booth
Categories : PHP, Java Script, Filesystem
MD5 secured login
Categories : PHP, Java Script, Authentication, Security
Javascript URL and Email Validation
Categories : Java Script, Data Validation, Form Processing, Email, URLs
Flash Detection Script with loads of features
Categories : Java Script, Flash
write an event to the eventlog via JScript
Categories : Java Script, Windows 2000
complete sql to html table class.features filtering, forming variable declaration,editing,hidden params.inspired from class html_table in example table.php but bad thing it is PHP4 beta 2!! and sybase only
Categories : Databases, HTML and PHP, Arrays, Browsers, Sybase
Pull Down Surfing - Surf on Change
Categories : Java Script, MySQL, HTML and PHP, PHP, Databases