<script language="JavaScript" type="text/JavaScript"> function PicWindow(piclink) </SCRIPT> |
Then to make the link where a person clicks, you use this code:
<a onMouseOver="window.status='Zoom in!'; return true;" onMouseOut="window.status=' '; return true;" onclick="javascript:PicWindow(this.href);return false;" href="MyPicture.jpg" target="_blank"> <img src="MyPicture.jpg"> </a>
Instead of "Zoom in!" you can put any text you want. Also replace MyPicture.jpg with your filename. You can even use http://www.server.com/MyPicture.jpg if you need to. Just mind your quotation marks!
For a while I was working on changing the window title of the popup to something like "Zoomed Picture", but I just didn't have the kind of success I wanted. http://www.javascripter.net/faq/writingt.htm helped me a lot, but I ended up not using it anyway. All this is useful practice for my javascript skills, so none of it is wasted effort really.
No comments:
Post a Comment