<script type='text/javascript'> function locate() { if (document.getElementById('fl').value==0) { document.getElementById('fl').value='1'; document.location="http://ya.ru"; } } </script> <input type='hidden' id='fl' value='0'> <img src='imagepath' onmouseover='locate();'>
$(window).height()
$(window).width()