I am having a problem with Mike's DHTML scroller in a page when viewed by firefox 1.06. The page address is http://www.sterndriveinc.com.
Any ideas?
I am having a problem with Mike's DHTML scroller in a page when viewed by firefox 1.06. The page address is http://www.sterndriveinc.com.
Any ideas?
It's your Doctype. Remove it and it will work in FF and IE, except you will need to find a new way to center the scroller text*. The script can probably be modified to work with that Doctype but, since the demo page has no Doctype, and it is a complicated third party script. Don't hold your breath for me to do it.
* One Method to center scroller text cross browser without Doctype:
P.S. You might try the author's site for more info.Code:myScroller1.addItem("<center><b>SterndriveInc. The Web's best source for all your Mercuiser/Volvo/OMC needs.</center></b>"); myScroller1.addItem("<center><b>Click here for <a href='http://www.sterndriveinc.com/classifieds.cfm'>Our Current Special Deals.</a></center></b>"); myScroller1.addItem("<center><b>Consult with SterndriveInc about any upgrades you might be considering. We can help.</center></b>"); myScroller1.addItem("<center><b>Looking for something special? Give us a call. Well can locate it for you.</center></b>"); myScroller1.addItem("<center><b>SterndriveInc's experienced marine performance specialists are just a phone call away.</center></b>"); myScroller1.addItem("<center><b>We also ship internationally. Let us know what you need.</center></b>");
Last edited by jscheuer1; 08-24-2005 at 03:14 AM.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I am also having the same problem.
I have removed the doctype and indeed it does work.
However, i am very disinclined to remove the doctype and would like to ask:
a) Why does it need to be removed?
b) What alternatives are there for people like us who like Mike's script.
Thanks.
A quick check of the author's web site reveals that even he is not (or at least not making a point of) supporting this outdated, bloated scroller code. There are many scroller's out there that do not suffer from these problems. Move on.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
jscheuer1, thanks for the straight answer.
I have implemented the pause updown scroller on the site (see http://www.tm4bhelp.com/).
If there are better scripts out there than this one, please point me in their direction.
If not, is there any way that most of this javascript can be shifted off to an external js file.
THanks.
The link in your post is broken but there are many scripts of this type. So many, in fact, that I would not even begin to presume knowledge of which are the best available. However, a scroller is basically just a marquee. So, one great place to start would be with the other scroller and marquee scripts here at DD. A good rule of thumb test as to their suitability for use with a DOCTYPE is to view the source code of the demo page to see if it has one or not. I've made my own mods of a number of the scroller and marquee scripts on DD (I am not affiliated with DD) that extend their usability and adapt for modern DOCTYPE usage. So if you find one here that is authored by DD and just need a tweak or two, I may already have what you want or be able to mod one up rather easily for you.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanks John,
The url has a bracket at the end of it by mistake.
It should be http://www.tm4bhelp.com.
Thanks for your kind help - if you could just check on the one i have put up and comment on it, your wise comments would be greatly appreciated.
The page still won't load in IE6 (it redirects to a generic 404 - Page not found message). I made a local copy and that loaded in IE but the scroller looked odd. It wasn't contained within its own borders, rather offset about 50 pixels lower than the container. In Opera8.51 and NS8.0.4 (FF mode), the page looked fine. This is a decent scroller and the main problem with the page in IE, I am sure, has nothing to do with the scroller. What browser do you use?
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanks for the help John.
With regards to browsers, I use FF and test in IE and NS.
With regards to the redirect 404, that's very strange. How did you make a local copy if the page was redirected?
I used another browser to bring it up first, viewed the source and copied that. It is still:
The page cannot be displayed . . .
in IE6. Actually not the generic 404, rather the Windows OS's own error page.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks