The JavaScript Codes is an excellent JavaScript resource with tons of "cut and paste" JavaScript examples for your Web pages. All for free!
<!-- this script got from http://free-javascript-codes.blogspot.com/ --><br /><br /><!-- DESCRIPTION: This script will make your status message slide into place. Neat effect. <br /><br /> INSTRUCTIONS: Place this script in the BODY tags of<br />your webpage. Then place the appropriate message in the var msg value. <br /><br /> FUNCTIONALITY: Works in both Netscape and IE.<br /><br /><br /><br />//Modified by CoffeeCup Software <br />//This code is Copyright (c) 1997 CoffeeCup Software <br />//all rights reserved. License is granted to a single user to <br />//reuse this code on a personal or business Web Site. <br /><br />--><br /><br /><BODY onLoad="timerONE=window.setTimeout('slide(120,0)',20);"><br /><br /><SCRIPT LANGUAGE="JavaScript"><br /><br />function slide(jumpSpaces,position) {<br /> var msg = "This JavaScript will slide in your desired message....Cool...isn't it???.......drink more coffee"<br /> var out = ""<br /> if (endScroll) {return false}<br /> for (var i=0; i<position; i++) <br /> {out += msg.charAt(i)}<br /> for (i=1;i<jumpSpaces;i++) <br /> {out += " "}<br /> out += msg.charAt(position)<br /> window.status = out<br /> if (jumpSpaces <= 1) {<br /> position++<br /> if (msg.charAt(position) == ' ') <br /> {position++ }<br /> jumpSpaces = 100-position<br /> } else if (jumpSpaces > 3)<br /> {jumpSpaces *= .75}<br /> else<br /> {jumpSpaces--}<br /> if (position != msg.length) {<br /> var cmd = "slide(" + jumpSpaces + "," + position + ")";<br /> scrollID = window.setTimeout(cmd,5);<br /> } else {<br /> scrolling = false<br /> return false <br /> }<br /> return true<br />}<br />function ccSetup() {<br /> if (scrolling) <br /> if (!confirm('Re-initialize slide?'))<br /> return false <br /> endScroll = true <br /> scrolling = true <br /> var killID = window.setTimeout('endScroll=false',6)<br /> scrollID = window.setTimeout('slide(100,0)',10)<br /> return true <br />}<br />var scrollID = Object<br />var scrolling = false<br />var endScroll = false<br /></SCRIPT><br /><font face="Tahoma"><a target="_blank" href="http://free-javascript-codes.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Codes</span></a></font><br />
Main Page What is JavaScript How to implement JS codes? What is HTML? HTML Codes