WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
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 Resources
Web Development Content
Internet Security Software
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
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

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 : Message Marquee at Status Bar
Categories : Java Script, HTML, Browsers
Chetankumar Akarte
Date : Dec 05th 2006
Grade : 4 of 5 (graded 3 times)
Viewed : 9093
File : 4547.zip
Images : Image 1
Search : More code by Chetankumar Akarte
Action : Grade This Code Example
Tools : My Examples List

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

With the help of JavaScript we can add our favorite message with the marquee effect.
For that we create an object with a constructor, a special type of function that
prepares a new object for use by initializing the memory it takes up. Objects are
created by applying the new operator to their constructors. This operator causes the
constructor to which it is applied to create a brand-new object, and the nature of the
object that is created is determined by the particular constructor that is invoked.
Here we create a new setStatusmessage() object and place a reference to it in the
variable scroll. We define a function function scroller() which scrolls our message.
First we add blank spaces before the message and reduce one space per loop.
Step 1 : Refresh the status message with setTimeout ('scroller()',scroll.delay).
Step 2 : Shift the message with scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length).
Step 3 : Create the message again ready to scroll.

<SCRIPT language=JavaScript type="text/javascript">

var scroll = new setStatusmessage()

function setStatusmessage() {
  this.msg = "This is Scrolling Message...!!!"
  this.out = " "
  this.pos = 100       //  how wide is the scroller?
  this.delay = 50      //  milliseconds between shifts
  this.i     = 0
}

function scroller() {
  for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) {
    scroll.out += " "
  }

  if (scroll.pos >= 0)
   scroll.out += scroll.msg
  else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length)
  window.status = scroll.out
  scroll.out = " "
  scroll.pos--
    if (scroll.pos < -(scroll.msg.length)) {
   scroll.pos = 100
   }
   setTimeout ('scroller()',scroll.delay)
}
scroller()

</SCRIPT>



Bouncing Marquee at Status Bar
Categories : Java Script, HTML, Browsers
Mordern Peroidic Table - Science
Categories : Java Script, HTML, Charts and Graphs
Javascript Color Picker
Categories : Java Script, Colors, HTML
Bookmarklets are simple tools that extend the surf and search capabilities of Netscape and Explorer web browsers.
Categories : Java Script, HTML, General
Unobtrusive javascript for maintaining scrollable layer state
Categories : DHTML, Java Script, HTML
Cool tool tip
Categories : Java Script, HTML, Web Design
Java Script Based Navigation
Categories : HTML, Java Script, Navigation
Higly Customizable Javascript Calendar Script
Categories : Java Script, Calendar, Date Time, HTML, CSS
Show or Hide your Content using Javascript
Categories : Java Script, HTML, CSS, Beginner Guides
Table editable dynamic form with edit + selection (select / option) + checkbox.
Categories : Java Script, DHTML, User Interface, CSS, HTML
showing Help (assistance) to the user while filling html forms.
Categories : HTML, Java Script, Form Processing
Conditional Check - a script that allows a user to submit a form only if the user check a checkbox.
Categories : HTML, Java Script, Form Processing, Beginner Guides
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
How to get the Focus (Cursor) into a Form-Element.
Categories : HTML, Java Script
Javascript linked dropdowns
Categories : Java Script, HTML, Classes and Objects