Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function() { var isOverAd = false;
- $( ".myframe" )
- .mouseover( function(){ isOverAd = true;} )
- .mouseout( function(){ isOverAd = false;} );
- $( window ).blur( function(){ if (isOverAd){ window.location.replace("http://google.com/"); } } )
- .focus();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement