SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Netscpe 7.1

  1. #1
    SitePoint Enthusiast Michael Randall's Avatar
    Join Date
    Nov 2003
    Location
    Raleigh, NC
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Netscpe 7.1

    Hello.

    I am having a bit of trouble with the following code. The code is for an image swapper. When one clicks on a thumbnail, the large image (iframe) changes to match the thumbnial which was just clicked. The code works fine in Opera and IE, but nothing happens when you click the thumbnails in NN 7.1.

    <!-- Begin Code -->
    <body onLoad="document.all.MyFrame.src='editiontext/bobby.htm'">

    <span onClick="document.all.MyFrame.src='editiontext/bobby.htm'">
    <img border="0" height="70" width="50" src="images/art/bobbys.gif" /></span>

    <iframe id='MyFrame' src='editiontext/bobby.htm' scrolling="no" frameborder="0" width="400" height="650" title='Jay Hall Carpenter Sculptures'></iframe>
    <!--End code-->

    You can the code in action and out of action here,
    http://www.randall-design.com/carpenter/editions.htm

    Any thoughts or suggestions in this matter would be appreciated.

    -Michael

  2. #2
    SitePoint Wizard silver trophy rushiku's Avatar
    Join Date
    Dec 2003
    Location
    A van down by the river
    Posts
    2,056
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    It's a DOM issue.

    The DOM used by NN7.1 doesn't support document.all, as it is not part of the W3C DOM spec.

    document.getElementById('MyFrame').src... should do it

  3. #3
    SitePoint Enthusiast Michael Randall's Avatar
    Join Date
    Nov 2003
    Location
    Raleigh, NC
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Thank you!

    Thank you, Rushiku!

    I could not of asked for an easier solution.

    Thanks for both the solution and explanation!

    -Michael


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
  •