Menu
high im trying to add two type scripts to my website 1, a scrolling text status bar and a text following mouse pointer how or what do I to break those two apart to make them both run?
[i]Originally posted by soulkiss [/i]
[B]high im trying to add two type scripts to my website 1, a scrolling text status bar and a text following mouse pointer how or what do I to break those two apart to make them both run? [/B][/QUOTE]
<option value="http://www.angelfire.com/freak2/shockandawe420/OSFLrules.htm">RULES
<option value="http://www.angelfire.com/freak2/shockandawe420/Coaches.htm">COACHES CONTACT'S
<option value="http://www.angelfire.com/freak2/shockandawe420/week_1_2.htm">WEEK 1, 2,
<option value="http://www.angelfire.com/freak2/shockandawe420/stats form.htm">STATS FORM
<option value="http://www.angelfire.com/freak2/shockandawe420/AFC.htm">AFC STANDINGS
<option value="http://www.angelfire.com/freak2/shockandawe420/NFC.htm">NFC STANDINGS
if (str.length == 1)
{
while (msg.substring(0, 1) == " ")
{
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
}
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
for (var ii = 0; ii < 120; ii++)
{
str = " " + str;
}
}
else
str = str.substring(10, str.length);
window.status = leftMsg + str;
if (str.length == 1)
{
while (msg.substring(0, 1) == " ")
{
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
}
leftMsg = leftMsg + str;
str = msg.substring(0, 1);
msg = msg.substring(1, msg.length);
for (var ii = 0; ii < 120; ii++)
{
str = " " + str;
}
}
else
str = str.substring(10, str.length);
window.status = leftMsg + str;
xposition[0]=x+gap_between
yposition[0]=y
for (i=0; i<message.length-1; i++) {
var thisspan = eval("span"+(i)+".style")
thisspan.posLeft=xposition[i]
thisspan.posTop=yposition[i]
}
}
else if (checkit==1 && document.layers) {
for (i=message.length-1; i>=1; i--) {
xposition[i]=xposition[i-1]+gap_between
yposition[i]=yposition[i-1]
}
xposition[0]=x+gap_between
yposition[0]=y
for (i=0; i<message.length-1; i++) { var thisspan = eval("document.span"+i)
thisspan.left=xposition[i]
thisspan.top=yposition[i]
}
}
var count_time=setTimeout("DoTrail()",speed)
<SCRIPT LANGUAGE="JavaScript">
<!--
// Use the following three variables to set up the message:
var msg = "ENTER YOUR STATUS BAR MESSAGE HERE "
var delay = 50
var startPos = 100
// Don't touch these variables:
var timerID = null
var timerRunning = false
var pos = 0
var scrolls = 0
// Crank it up!
StartScrolling()
function StartScrolling()
{
// Make sure the clock is stopped
StopTheClock()
// Pad the message with spaces to get the "start" position
for (var i = 0; i < startPos; i++) msg = " " + msg
// Off we go...
DoTheScroll()
}
function StopTheClock()
{
if(timerRunning)
clearTimeout(timerID)
timerRunning = false
}
function DoTheScroll()
{
if (pos <= startPos)
self.status = msg.substring(pos, msg.length)
else
{
StopTheClock()
return
}
++pos
timerRunning = true
timerID = self.setTimeout("DoTheScroll()", delay)
}
//-->
</SCRIPT>
[i]Originally posted by soulkiss [/i]
[B] and KALID the two scripts you said you fixed [/B][/QUOTE]
0.1.9 — BETA 5.5