5.3.10
Displays text on the status bar with flashing
This JavaScript displays the text on the status bar with flashing. For example look at the bottom left of your browser.
<! - Place this code between the tags <HEAD> and </ HEAD >.--> <script> var yourwords = "JUST WRITE HERE"; var speed = 300; var control = 1; function flash () ( if (control == 1) ( window.status = yourwords; control = 0; ) else ( window.status = ""; control = 1; ) setTimeout ( "flash ()", speed); ) </ script> <! - Place this code on <BODY> tag .-->
<body onLoad="flash()">
This JavaScript will display a letter written letter on the status bar. For example look at the bottom left of your browser.
<! - Place this code between the tags <head> and </ head> -> <script language="javascript">
<! --
snapIn function (jumpSpaces, position) ( var msg = "WINFOLDER - TIPS JAVASCRIPT!" var out = ""
if (killScroll) (return false) for (var i = 0; i <position; i + +) ( out + = msg.charAt (i)) for (i = 1; i <jumpSpaces; i + +) ( out + = "") out + = msg.charAt (position) window.status = out if (jumpSpaces <= 1) ( position + + if (msg.charAt (position) == '') ( position + +) jumpSpaces = 100-position ) else if (jumpSpaces> 3) ( jumpSpaces *= .75) else ( jumpSpaces -) if (position! = msg.length) ( var cmd = "snapIn (" + jumpSpaces + "," + position + ")"; scrollID = window.setTimeout (cmd, 5); ) else ( scrolling = false return false ) return true )
snapSetup function () ( if (scrolling) if (! confirm ( 'Re-initialize snapIn?')) return false killScroll = true scrolling = true var killID = window.setTimeout ( 'killScroll = false', 6) scrollID = window.setTimeout ( 'snapIn (100.0)', 10) return true
) var scrollID = Object var scrolling = false var killScroll = false / / ->
</ script> <! - This code is placed on <BODY> tag ->
<body onLoad="snapSetup()">
This JavaScript displays the text that moves on the status bar. For example look at the bottom left of your browser.
<! - Place this code between the tags <HEAD> and </ HEAD> -> <script language="JavaScript"> <! - Hide the script from old browsers -- scrollit function (seed) ( var m1 = "WinFolder - This is an example of scrolling status bar"; var msg = m1; var out = ""; var c = 0;
if (seed> 100) ( seed -; var cmd = "scrollit (" + seed + ")"; timerTwo = window.setTimeout (cmd, 7); ) else if (seed <= 100 & & seed> 0) ( for (c = 0; c <seed; c + +) ( out + = ""; ) out + = msg; seed -; var cmd = "scrollit (" + seed + ")"; window.status = out; timerTwo = window.setTimeout (cmd, 7); ) else if (seed <= 0) ( if (-seed <msg.length) ( out + = msg.substring (-seed, msg.length); seed -; var cmd = "scrollit (" + seed + ")"; window.status = out; timerTwo = window.setTimeout (cmd, 7); ) else ( window.status = ""; timerTwo = window.setTimeout ( "scrollit (100)", 75); ) ) ) / / - Get here -> </ script>
<! - If the tag is placed on <BODY> ->
<body onLoad="timerONE=window.setTimeout('scrollit(100)',500)">
This JavaScript will display a letter written letter on the status bar. For example look at the bottom left of your browser.
<html> <! - Place this code between the tags <HEAD> and </ HEAD> var speed = 50 / / the smaller the value, the faster var pause = 2000 / / the greater the value, the longer pausenya var timerID = null var bannerRunning = false var ar = new Array () ar [0] = "Hi .........." ar [1] = "This is an example JavaScript ..." ar [2] = "You can put a lot of writing in here ..." ar [3] = "Do not forget to come back to the web WinFolder yes!"
var currentMessage = 0 var offset = 0 stopBanner function () ( if (bannerRunning) clearTimeout (timerID) bannerRunning = false ) startBanner function () ( stopBanner () showBanner () ) showBanner function () ( var text = ar [currentMessage] if (offset <text.length) ( if (text.charAt (offset) == "") offset + + var partialMessage = text.substring (0, offset + 1) window.status = partialMessage offset + + timerID = setTimeout ( "showBanner ()", speed) bannerRunning = true ) Else ( offset = 0 currentMessage + + if (currentMessage == ar.length) currentMessage = 0 timerID = setTimeout ( "showBanner ()", pause) bannerRunning = true ) ) / / -> <! - This code is placed on <BODY> tag -> <body onLoad="startBanner()">
This JavaScript displays the clock in the status bar. For example look at the bottom left of your browser.
<html>
<! - Place this code between the tags <HEAD> and </ HEAD> -> <script language="javascript"> var timerID = null; var timerRunning = false;
stopclock function () ( if (timerRunning) clearTimeout (timerID); timerRunning = false; )
function showtime () ( var now = new Date (); var hours = now.getHours (); var minutes = now.getMinutes (); var seconds = now.getSeconds () var timeValue = "" + ((hours> 12)? hours -12: hours) timeValue + = ((minutes <10)? ": 0": ":") + minutes timeValue + = ((seconds <10)? ": 0": ":") + seconds timeValue + = (hours> = 12)? "P.M." : "A.M." window.status = timeValue; timerID = setTimeout ( "showtime ()", 1000); timerRunning = true; ) startclock function () ( stopclock (); showtime (); ) </ script>
<! - Place this code on the tag <BODY> -> <body onLoad="startclock()">
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment