Click to See Complete Forum and Search --> : How to show image when user goes over link?


toplisek
04-26-2007, 08:48 AM
I would like to show image on defined place if user goes over link.

Need help how to do it or there is better way other than Javascript.

LeeU
04-26-2007, 09:48 AM
You might try this one (http://javascript.internet.com/navigation/links-with-a-twist.html).

svager
04-26-2007, 10:02 AM
function change_image(img_name, img_src)
{
document.getElementById(img_name).src = img_src;
}

where img_name is element id and img_src is an image file

toplisek
04-26-2007, 10:34 AM
function change_image(img_name, img_src)
{
document.getElementById(img_name).src = img_src;
}

where img_name is element id and img_src is an image file
As I'm new, can you give me all sample code? Need help.

toplisek
04-26-2007, 10:35 AM
You might try this one (http://javascript.internet.com/navigation/links-with-a-twist.html).do you know I must have in code or it is not obligation for copyrights?
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

LeeU
04-26-2007, 04:04 PM
Not sure what you're saying. The code is not copyrighted. You can use it. We just ask that you leave the link at the top:

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Cat Arriola :: http://astrodiva.journalspace.com */