Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Mike's DHTML scroller and Firefox 1.06

  1. #1
    Join Date
    Aug 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mike's DHTML scroller and Firefox 1.06

    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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:
    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>");
    P.S. You might try the author's site for more info.
    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

  3. #3
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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

  5. #5
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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

  7. #7
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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

  9. #9
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •