Results 1 to 4 of 4

Thread: Gradual fader Mozilla Firefox Problem

  1. #1
    Join Date
    May 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Gradual fader Mozilla Firefox Problem

    1) Script Title: Gradual fader Mozilla Firefox Problem

    2) Script URL (on DD): http://hollandrodendaily.net/ (Please take a look with latest version of Mozilla Firefox, or here is a image: http://i.imgbox.com/Bk4YQYKc.jpg

    3) Describe problem: I coded this layout and used gradual fader in Google it works pefectly but when I open the site it Mozilla it shows me this: http://i.imgbox.com/Bk4YQYKc.jpg

    Thank you in advance.

  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 not the script. If one removes the script from the page, there's still the same problem. If one disables all javascript, there's still the same problem. If one sets the display value of all the gradulafader images to none, there's still the same problem. Try not to use so many tables.

    I did notice that if one were to turn everything back on, including this script and reload the page, in Fx, for a brief moment it looked right. So I tried something. While it was looking OK, I hit the stop button. Then, using a 3rd party utility, I did a capture of the source code as currently seen by the browser (the generated or DOM source). I then saved that to a file. That page looked right. Only thing I noticed is that the layout was a little different.

    I then started to replace things from the 'working' version to the nonworking version. At the very beginning lay the answer. Removing the DOCTYPE fixed it in Fx without hurting Chrome. Using a text only editor like NotePad, remove:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    from the top of the page's source code.

    An alternative might be to validate to that DOCTYPE. I did notice that some of the html looked invalid, but I'm not sure of that, or if fixing it if it is invalid would allow the page to look good in Fx with that DOCTYPE. But if you want to have a standards invoking DOCTYPE, something(s) will need to be changed to make it work in Fx.

    Essentially the table slices use quirks mode height and width attributes for tables and table cells. One or more of these and/or other things about the page are invalid with the DOCTYPE you used for the page. Other browsers still accept the invalid code. Fx apparently does not. Removing the DOCTYPE throws the page back into quirks mode. After that, Fx renders as expected. Converting quirks mode table slices to valid standards mode code can be done, but it can be a lot of work. Better to start out with standard code. If you can find a table slicer that outputs valid standard code, use that. Or use something besides table slices, or settle for quirks mode.
    Last edited by jscheuer1; 05-23-2014 at 06:00 PM. Reason: add last paragraph
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The problem was fixed. I just added file from Photoshop// spacer.gif

  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

    Still nothing to do with the script. I'm moving this to the HTML forum and marking it resolved. And BTW valid html doesn't require spacer images.
    Last edited by jscheuer1; 05-24-2014 at 12:57 AM. Reason: add last sentence
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Gradual Element Fader
    By CharlotteS in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 08-17-2009, 10:10 PM
  2. gradual fader help
    By haylzee in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-19-2009, 05:42 PM
  3. Gradual Fader
    By metdude72 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 02-20-2008, 01:58 AM
  4. Gradual Element fader help please.
    By AndyC_65 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 01-24-2008, 12:16 PM

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
  •