Ticker tape script running on PCs but not Macs

They have: 2 posts

Joined: Mar 2008

Ticker tape scrip running on PCs but not Macs, can any body help with the error in my scripting..............

AttachmentSize
Ticker tape.txt2.21 KB
JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Well, we can't tell what the issue is because the Javascript isn't included. When you say it works on PCs, but not Macs, what browsers have you tested using? It's usually not the platform but the browsers that have differences.

Have you a URL we can look at?

Welcome to the Forums by the way. Hope we can get this fixed. Smiling

a Padded Cell our articles site!

They have: 2 posts

Joined: Mar 2008

Yes the URL is http://www.devineimages.co.uk/
i hope you can help

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

So which browsers are not working? I've tested in Firefox and Opera they both display the page correctly (although with some errors).

A good start might be to validate the page. For a start there are a bunch of <body> tags throughout the code. Not saying that will fix this particular problem, but it will help generally. Getting rid of this will help too:

<embed src="file://C:/Program Files/NetObjects/NetObjects Fusion 9.0/User Sites/Devine Images 1/Local Publish/assets/multimedia/Laura Pausini - 03 - 03 - Scrivimi.mp3." autostart="true" loop="true"
width="2" height="0">

a Padded Cell our articles site!

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Did some more investigation and Safari is the problem. Finally got the Javascript console to work and got these errors:

SyntaxError: Parse Error
headline.js Line 4

and

ReferenceError: Can't Find Variable: Headline
http://www.devineimages.co.uk Line 433

Try changing lines 3 to 16 of headline.js to:

if (typeof(rollHeadlines) == "undefined") {
     function rollHeadlines() {
         for ( var i = 0; i < headlines.length; i++ ) {
             headlines[i].init();
             headlines[i].id = i;
         }           
         startRoll();
     }
}

if (typeof(startRoll) == "undefined") {
     function startRoll() {
         for ( var i = 0; i < headlines.length; i++ )
             setTimeout("headlines[ " + i + "].run()", eval("headlines[i].C_Speed"));
}

That should, hopefully, fix the first error at least.

a Padded Cell our articles site!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.