...

View Full Version : iframe and mouseover not working with Firefox



Franker5
10-03-2007, 01:52 AM
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!

Antoniohawk
10-03-2007, 04:24 AM
Change document.myIframe to window.frames['myIframe'].

Franker5
10-03-2007, 03:42 PM
Thank You Antoniohawk, that worked like a champ. I appreciate it very much.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum