View Single Post
Old 04-04-2001, 06:29 PM  
wizardmerlin
Confirmed User
 
Join Date: Jan 2001
Location: Porncity Sewers
Posts: 418
Using scrolling text on your site

You know, the cool scrolling text in the status window. Great for catching the attention of your surfer, and also for hiding links.

First step:

In your html body line add the following code:

body onload="typew()">

Your body line could look similar to the above statement or it can also contain other declarations to make it appear similar to:

body onload="typew()" bgcolor="#800080" text="#FFFFFF">

Next step:

Add the following code anywhere in your html BETWEEN the <body onload="typew()"> and </body> lines:

*************COPY BELOW HERE**************
script>
< !-- START HIDE

// Set variables
var curmes = 0
var a = 0
var counter = 0
var message = new Array()
message[0] = "YOUR MESSAGE LINE 1 "
message[1] = "YOUR MESSAGE LINE 2 "
var temp = ""
function typew()
{
a = a + 1
check()
window.status = message[curmes].substring(0, a)
if(a == message[curmes].length + 5)
{
curmes = curmes + 1
a = 0
}
if(curmes > 1)
{
curmes = 0
}
counter = setTimeout("typew()", 100)
}
function check()
{
if(a <= message[curmes].length)
{
if(message[curmes].substring(a, a + 1) == "")
{
a = a + 1
check()
}
}
}
// STOP HIDE -->
/script>
-->
***********END Copy****************

Don't forget to add the < before the BODY ONLOAD, the SCRIPT and the Closing /SCRIPT I took these out so it would display here.
(Let me know if you want me to email it to you.)
------------------

1000 free pics to use, get paid weekly and no minimum. $75 PER SIGNUP DAY ON MAY 4 2001




[This message has been edited by wizard (edited 04-04-2001).]
wizardmerlin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote