mouse over event

admin

Administrator
Staff member
I am designing an intranet and would like to link to parts of our internal network through iframes: <br />
<br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"\\2000FILE1\INTRANET\HumanResources" frameborder="0"></iframe><br />
<br />
What I would like to be able to do is dynamically change the src of the iframe when I roll over text. I have done a similar thing for images an that works fine:<br />
<br />
<div id="Layer1" style="position:absolute; left:152px; top:9px; width:141px; height:34; z-index:1"><img src=http://www.webdeveloper.com/forum/archive/index.php/"images/pholder.gif" name="ig1" width="141" height="34"></div><br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"http://search.yell.com/search/DoSearch" target="_blank" <br />
onMouseover="ig1.src='http://www.webdeveloper.com/forum/archive/index.php/images/yell2.jpg'">Yellow Pages</A> <br />
<br />
but when i try to apply the same technique to the iframe src I get an error message. Is this possible or am I wasting my time?<!--content-->you could try to trigger the function from within the iframe, like so:<br />
<br />
<iframe name="intranet" src=http://www.webdeveloper.com/forum/archive/index.php/"vlah"></iframe><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"blah" onmouseover="document.intranet.location.href='blah'"><br />
Rollover Me!</a><br />
<br />
im not sure if thisll work for im not too familiar with iframes, however, i believe this may work due to similarities between frames, iframes, and popup windows. sorry though, i did not have enough time to test the code.<br />
<br />
hope it helps or gets you on the right track at least<!--content-->That works very well - exactly what I was looking to do - thanks a lot xataku_nakusute :D<!--content-->I need the HOME, GALLERIES, and SERVICES buttons to do the following:<br />
<br />
onMouseOver = 1. Change image from gold to purple<br />
2. load submenu in iframe named "SubMenu"<br />
<br />
onMouseClick = Go to the appropriate URL (i.e. <a<br />
href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.ikkyudo.com"><img src="home.gif"></a><br />
<br />
onMouseOut = Change inage from purlpe back gold but the submenu should remain visible.<br />
<br />
I used your ides to get the frame to display the submenus correctly but I need to get the image to change too. <br />
Also, this does not seem to work in Netscape 7. IE is fine. <br />
<br />
Any suggestions?<br />
Thanks in advance.<br />
<br />
<!-- m --><a class="postlink" href="http://www.ikkyudo.com/images/navigation_buttons/test/t10.htm:confused">http://www.ikkyudo.com/images/navigatio ... m:confused</a><!-- m -->:
 
Back
Top