Forum Moderators: open
<script>
function loadfollow(which){
if (!window.win2¦¦win2.closed)
win2=window.open(which.href)
else
win2.location=which.href
}
</script>
<a onMouseover="loadfollow(this)" href ="pic.jpg">
I think things are getting difficult by wanting this functionality to work on mouseover.
Are you sure this is even what you're visitors would like? I can foresee all kinds of issues, like the need either to preload all the potential enlargements, or else make people wait for a download everytime they pass their mouse over an image -- which could get very strange very fast.
Why not just go with a straight link and use the target attribute to change the image that's loaded in an iframe? I think that a "click" approach is more user friendly than a "mouseover approach", and it's much simpler to code as well.