Jamie
Member
Registered: 1st Apr 02
Location: Aberdeen
User status: Offline
|
quote: function ScrollTitle() // TITLE BAR
{
document.title=msg;
msg=msg.substring(1,msg.length)+msg.charAt(0);
setTimeout("ScrollTitle()",speed);
}
ScrollTitle(); // comment this out for normal title bar
Keep getting this as an error on "speed".
Anyone know how to fix it for me?

|
Dan B
Member
Registered: 25th Feb 01
User status: Offline
|
I'm guessing that "speed" would be a variable used in the script, so is "speed" defined anywhere?
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
You probably need tto have the script like this-
function ScrollTitle() // TITLE BAR
{
var speed = x
document.title=msg;
msg=msg.substring(1,msg.length)+msg.charAt(0);
setTimeout("ScrollTitle()",speed);
}
ScrollTitle(); // comment this out for normal title bar
x being the time in mileseconds that you want the scroller to refresh at, e.g. 1000 for 1 second...
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Just change the line to:
setTimeout("ScrollTitle()",1000);
And btw that is Javascript, not HTML
|
cdcool1
Member
Registered: 9th Jun 02
Location: Scunny
User status: Offline
|
quote: Originally posted by Ian
Just change the line to:
setTimeout("ScrollTitle()",1000);
And btw that is Javascript, not HTML
just what i was thinking
|
waynep
Member
Registered: 20th Apr 02
Location: london
User status: Offline
|
BYW thats not html
|
waynep
Member
Registered: 20th Apr 02
Location: london
User status: Offline
|
oops ian beet me too it
|