What's the html code for putting a link into an image?

Sean

New member
Plss..

i need the html code for putting a link in a photo but the result is that when you put the cursor in the image, the image will change.

for example: a picture of a flower. I put my arrow cursor in the picture then the image change to a bee and the link is still on.

Thxx.
 
There's a way to do this without javascript, even...

You only need one element: a <a> tag.

Using CSS, set it to display:block and give it the height and width of your image. Then set the background image of the link to the original image. This should get you to your original "image in a link" scenario. Then, you can make an a:hover style that specifies a new background image. Presto change-o.
 
Back
Top