View Full Version : Text Link to Display and Image

01-14-2004, 03:12 AM
Need help! New programmer...

I need to create a page that will have a text link that when the users clicks, an image will display on the same page.

Can anyone help??

Thanks so much!

01-14-2004, 03:49 AM
<a href="myimage.jpg" onclick="document.images['pic'].style.display='inline';return false">Show Image</a>
<img src="myimage.jpg" name="pic" style="display:none">

01-14-2004, 04:06 AM
Thanks again Glenn!

One more thing, how can I add onMouseover and onMouseout to that picture?