Works well.
No errors.
Thank you!
Since you did this favour for us, my partner is offering some graphic work in return.
Contact : webmaster@timbermedia.com
Thanks again.
Cheers.
Hey chessbot
Your new code took care of the last error..but now there is another..i've isolated it on line 21, here that line of code :
<a onmouseover="setSource('imagename.jpg')" href="http://www.google.ca" target="#IF1">Joe</a><br><br>
and the error says this:
Line : 21
Char : 1
Error ...
When I run the code you gave me...
the yellow 'road sign' pops up in the status bar and says..
Line: 8
Char : 4
Error :
'document.getElementById(...).document.getElementById(...)' is null or not an object
Code :
URL : file://C:\IFRAME.html
(end)
Now do we have to remove the quotations from...
No, still does not produce the effect.
must I specify image ID? but since the image only appears when mouseover, then it is nowhere in the html document...unless I were to preload it? Also, since by your function, we're passing in the source value, so once passed in, would it not be interpreted...
Now for the follow up...here's the code in my page which applies to this..
<head>
<script type="text/javascript">
function setSource(src)
{ document.getElementById("ifr").document.getElementById("img").src = src; }
</script>
</head>
<body>
<a onmouseover="setSource('imagename.jpg')"...
Hi folks.
I have been to many many places..and could find none, and alter none to suit my purpose. (but I got really really close, but ended up not working.) Any insight would be great.
I'd like to have a link which upon mouseover, will change the image in an iframe. Only the link is located...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.