thomas1973
08-15-2003, 03:53 AM
I am designing an intranet and would like to link to parts of our internal network through iframes:
<iframe src="\\2000FILE1\INTRANET\HumanResources" frameborder="0"></iframe>
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:
<div id="Layer1" style="position:absolute; left:152px; top:9px; width:141px; height:34; z-index:1"><img src="images/pholder.gif" name="ig1" width="141" height="34"></div>
<A HREF="http://search.yell.com/search/DoSearch" target="_blank"
onMouseover="ig1.src='images/yell2.jpg'">Yellow Pages</A>
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?
<iframe src="\\2000FILE1\INTRANET\HumanResources" frameborder="0"></iframe>
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:
<div id="Layer1" style="position:absolute; left:152px; top:9px; width:141px; height:34; z-index:1"><img src="images/pholder.gif" name="ig1" width="141" height="34"></div>
<A HREF="http://search.yell.com/search/DoSearch" target="_blank"
onMouseover="ig1.src='images/yell2.jpg'">Yellow Pages</A>
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?