Netscape 7 oddity

Discussion in 'HTML' started by Ed Vul, Jul 21, 2003.

  1. Ed Vul

    Ed Vul Guest

    So I have a PHP script that displays a picture and then goes on to the
    next one, for the sake of a survey.

    Now, the code works fine in IE 6, NN 4 (how can anything work fine in NN
    4, you may ask, but it does).
    However, in netscape 7.1 or whatever the latest one is,
    it only displays the lower 50 pixels of the pictures...

    I can't wrap my mind around what could possibly be the problem...
    the code is here:

    I know its set to hidden, but the script changes it to visible.. once it
    becomes visible, only the lower 50px show...

    Any ideas?



    <table width=640 border=0 cellpadding=1 cellspacing=0>
    <tr><td colspan="2" align=center>
    <span name="mtest" id="mtest"
    style="visibility:hidden;position:relative; font-size: 20px;">
    <img src="pics/mpic.jpg" onLoad="javascript: var timerx =
    setTimeout('go();',100);">
    <br>text.
    <br>
    </span>
    </td></tr>
    </table>
     
    Ed Vul, Jul 21, 2003
    #1
    1. Advertising

  2. Ed Vul

    DU Guest

    Ed Vul wrote:

    > So I have a PHP script that displays a picture and then goes on to the
    > next one, for the sake of a survey.
    >
    > Now, the code works fine in IE 6, NN 4 (how can anything work fine in NN
    > 4, you may ask, but it does).
    > However, in netscape 7.1 or whatever the latest one is,
    > it only displays the lower 50 pixels of the pictures...
    >
    > I can't wrap my mind around what could possibly be the problem...
    > the code is here:
    >
    > I know its set to hidden, but the script changes it to visible.. once it
    > becomes visible, only the lower 50px show...
    >
    > Any ideas?
    >
    >
    >
    > <table width=640 border=0 cellpadding=1 cellspacing=0>
    > <tr><td colspan="2" align=center>
    > <span name="mtest" id="mtest"
    > style="visibility:hidden;position:relative; font-size: 20px;">
    > <img src="pics/mpic.jpg" onLoad="javascript: var timerx =
    > setTimeout('go();',100);">
    > <br>text.
    > <br>
    > </span>
    > </td></tr>
    > </table>
    >


    Without seeing the whole page code or an url, it's impossible to figure
    out the reason for the 50px differential.
    I note that you do not quote all your attribute values and I recommend
    doing that. Also, writing "javascript:" in your onload event handler
    achieves nothing.

    Have you checked the markup of your whole page with a validator?

    DU
    --
    Javascript and Browser bugs:
    http://www10.brinkster.com/doctorunclear/
     
    DU, Jul 21, 2003
    #2
    1. Advertising

  3. Ed Vul

    Ed Vul Guest

    After a long and grueling session of deconstructing my code (which was
    CSS validated) it turned out that netscape was getting screwed up
    because the overarching SPAN had a position:relative; whereas the Image
    had no position declaration.. setting image position to relative fixed
    the issue.

    I hate netscape.

    Ed
     
    Ed Vul, Jul 22, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    537
  2. Edwin Knoppert
    Replies:
    0
    Views:
    385
    Edwin Knoppert
    Dec 29, 2005
  3. Tom
    Replies:
    0
    Views:
    513
  4. Mickey Segal
    Replies:
    1
    Views:
    690
    Mickey Segal
    May 21, 2004
  5. yaktipper
    Replies:
    10
    Views:
    304
    Richard Cornford
    Jul 10, 2003
Loading...

Share This Page