We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE]Window.Status Text Scroller; By julesrules2
Topic Started: Jan 25 2010, 11:00 AM (137 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: julesrules2
[CODE
 
Window.Status Text Scroller]This script types messages into the browser's taskabar. A little like a scroller, but the letters show up as though they were typed instead of scrolling along.

Example

Put this in javascript

Code:
 
<script language="JavaScript">
<!--
var wait = 50 //sleep time until next letter (milliseconds)
var message = new Array()
message[0] = "MESSAGE 0(CHANGE THIS)"
message[1] = "If you have some good suggestions or if you have problems with the site. "
message[2] = "MESSAGE 2 (CHANGE THIS)"
message[3] = "MESSAGE 3(CHANGE THIS."
var msgs = 3 //Number of message (0 is first)

var temp = "" //Do not modify these... (recommended)
var curmsg = 0
var a = 0
var counter = 0

function typew()
{
a = a + 1
check()
window.status = message[curmsg].substring(0, a)
if(a == message[curmsg].length + 5)
{
curmsg = curmsg + 1
a = 0
}
if(curmsg > msgs)
{
curmsg = 0 }
counter = setTimeout("typew()", wait)
}
function check()
{
if(a <= message[curmsg].length)
{
if(message[curmsg].substring(a, a + 1) == "")
{
a = a + 1
check()
}
}
}
typew();
//-->
</SCRIPT>

If you want more messages simply do this
message[4] = "your message" etc etc
If you only want one message delete all the others.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply