Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    iframe and mouseover not working with Firefox

    Hello,

    I ran into a problem trying to use onmouseover to display an HTML page in a Frame in Firefox. It is working fine in both IE6 and Opera. I have included a scaled down and simplified version that contains just the HTML code that I have been using for testing purposes to try and figure this out but I have had no succes in understanding why Firefox is having the problem with it. Please don't be too critical of using HTML instead of CSS or Javascript as I am trying to make the web page easier for my customer to be able to understand. Here is the code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Test Page</title>


    </head>

    <body>
    <IFRAME
    name="myIframe"
    width="400"
    height="330"
    src="start.html"
    frameborder="0"
    scrolling="no"
    marginwidth="0"
    marginheight="0">
    <h3>Sorry, Your browser does not support inline frames.</h3>
    </IFRAME>
    <A
    id="one"
    href="one.html"
    onmouseover="document.myIframe.location=this.href" target="_blank">
    One
    </A>
    <A
    id="two"
    href="two.html"
    onmouseover="document.myIframe.location=this.href" target="_blank">
    Two
    </A>
    <A
    id="three"
    href="three.html"
    onmouseover="document.myIframe.location=this.href" target="_blank">
    Three
    </A>
    <A
    id="four"
    href="four.html"
    onmouseover="document.myIframe.location=this.href" target="_blank">
    Four
    </A>

    </body>

    </html>

    As I am almost hairless now from dealing with this, any assistance that you could provide would be greatly appreciated. Thanks and have a Great Day!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Change document.myIframe to window.frames['myIframe'].

  • #3
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank You Antoniohawk, that worked like a champ. I appreciate it very much.


  •  

    Posting Permissions

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