corsasport.co.uk
 

Corsa Sport » Message Board » General Chat » FAO - HTML Literate People :D


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author FAO - HTML Literate People :D
Jamie
Member

Registered: 1st Apr 02
Location: Aberdeen
User status: Offline
18th Mar 04 at 16:49   View User's Profile U2U Member Reply With Quote

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
18th Mar 04 at 17:18   View User's Profile U2U Member Reply With Quote

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
18th Mar 04 at 17:34   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
18th Mar 04 at 18:42   View Garage View User's Profile U2U Member Reply With Quote

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
18th Mar 04 at 18:45   View User's Profile U2U Member Reply With Quote

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
18th Mar 04 at 18:49   View User's Profile U2U Member Reply With Quote

BYW thats not html
waynep
Member

Registered: 20th Apr 02
Location: london
User status: Offline
18th Mar 04 at 18:49   View User's Profile U2U Member Reply With Quote

oops ian beet me too it

 
New Topic

New Poll

Corsa Sport » Message Board » General Chat » FAO - HTML Literate People :D 22 database queries in 0.0104311 seconds