Scrolling text script differs in NS and IE

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
I have some scrolling text on this page: http://www.maljonicsdreams.com/ that is set to stop on mouseover, it work fine in IE but in Netscape it stops whenever the mouse is over any part of the screen - is there a quick way to fix this? :)
 

MKJ

Fledgling Freddie
Joined
Jun 5, 2004
Messages
1,196
will havva little bash at this now but on first glance I think the problem is that you have a few too many scripts running for Netscape. Does the scroller work fine on it's own? If it does you could put an iframe in the same position and then call another page that only has the scroller at the very top of the page. That way you might allow Netscape to handle the other scripts on the main page and seperate the other script. Will download stuff and try it out now.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
MKJ said:
will havva little bash at this now but on first glance I think the problem is that you have a few too many scripts running for Netscape. Does the scroller work fine on it's own? If it does you could put an iframe in the same position and then call another page that only has the scroller at the very top of the page. That way you might allow Netscape to handle the other scripts on the main page and seperate the other script. Will download stuff and try it out now.
Thanks. :)
 

MKJ

Fledgling Freddie
Joined
Jun 5, 2004
Messages
1,196
The problem lies with the behaviour of the script when it is with the other scripts. I have put an iframe in exactly the same position - where your javascript code was. The page the iframe is calling has been stript of the rest of the javascripts. The result is it is now working. You can see it here. I will tidy up the code a little and you can then simply copy the pages.

Netscape scroller.
 

MKJ

Fledgling Freddie
Joined
Jun 5, 2004
Messages
1,196
There - seems to be fine. The seperate scroller page is called scroller2.htm - here:

Scroller2

The first page is here:

First page.

Just view source or whatever :) . You obviously need to double check everything.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Thanks, that kinda works, but now it has errors in IE and works perfectly in Netscape... I prefer it the other way around. :)
 

MKJ

Fledgling Freddie
Joined
Jun 5, 2004
Messages
1,196
Just noticed the errors. Can't be much. Should be able to sort what ever it is doing that. The scrolling is still working :) .
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
It still doesn't really fix anything though, the actual scroller page still has the same problem in Netscape, i.e. the text stops scrolling as soon as the mouse is over any part of the page; just when it's in an iframe the amount of page showing is very small.

I wonder is there a way to make this work without using iframes, anybody? :)
 

Chilly

Balls of steel
Joined
Dec 22, 2003
Messages
9,047
take a look at the bbc news page, they have a scrolling banner that no doubt works in every browser known to man - you might be able to get a few hints there.
 

MKJ

Fledgling Freddie
Joined
Jun 5, 2004
Messages
1,196
It still doesn't really fix anything though
?

Have you been looking at the right pages? Hehe. Everything works as it should with Netscape and the amount of text to show is easily configured. Just enlarge the size of the iframe. Course it would be better to alter the code but this is a quick fix.

2 pages to look at - main page with the iframe:
Wider scrolling area - working in Netscape.

the iframe content page:
iframe content page - scrolling in Netscape too

Easy solution for you if you end up getting a bit frustrated :) .
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Yeah, it works now; I think you had the link to the rainbow text script on the scroller page before, that's probably what was messing it up in the first place. Does it need all that other code though, the meta tags and such?

Thanks for the input, I've never actually used iframes before so you've taught me something. :)
 

MKJ

Fledgling Freddie
Joined
Jun 5, 2004
Messages
1,196
I left lots of the code in cos - well I run out of time. Just experiment really. Remove the stuff a bit at a time and when it stops working replace the last bit you removed. Just consider that an iframe file needs to be able to run on it's own as a seperate file.

Glad it is ok for you now. Was a bit pushed for time the first time I did it and didn't alter things properly. I thought you would be able to alter the remainder to suit your site. I have used iframes a great deal but if you are new to using them then it would appear quite complicated. Isn't really though and using them can be marvellous. The only draw back is allowing crawlers to index the iframe input file. You need to stop that. Obviously if someone picks up on the link in a search to the iframe input file then they are only going to get that and nothing else - no site :mad: . Just consider that and block any crawler from accessing the file - alter the robot.txt file - by putting the input files in a directory of it's own.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Just noticed something rather odd, the scrolling text disappears if you resize the page, whether you use iframes or not, in IE that is. :)
 

MKJ

Fledgling Freddie
Joined
Jun 5, 2004
Messages
1,196
There is a way around this - quite an easy one though not sure it worth bothering with - just get the page to refresh itself. Only problem being is that you will get an annoying tick as the page does it. I have a script that removes the tick from any page refreshing itself. Will look into it further if you need it.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
Reading this discussion, I've nothing helpful to add as regards fixing the script. I want to point out, however, that you should *really* clarify which version of Netscape you're having problems with.

It varies in different circles, but a lot of web devs use 'Netscape' to refer only to Netscape 4, and 'Mozilla' when referring to later versions (since Netscape 6, 7 and 8 have all been simple rebranding of Mozilla code). The difference between 4 and 6 is total, so you need to be a little more specific.

Personally I wouldn't bother about 4 at all.
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
MKJ, you're right, it's not worth bothering with. Being the front page I need it to load as quickly as possible with as few irritants as possible for visitors. It's okay the way it is.

Shovel, you'r right too, I should have said that I meant the latest version of Netscape. It all works now anyway, the code actually has a fix for Netscape 4 to just display static text instead I think. :)
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
Mal - that's good you've clarified that. Netscape 8.01 has an identical rendering engine to Firefox 1.04 (or IE6, depending on which mode you have it running in).
 

Users who are viewing this thread

Top Bottom