Reputation: 17
I built home page takeover for an ad spot. My problem: The mouse pointer does not change when I mouse over the background area. Any ideas on how to do this? My code is below...the link works but the mouse over does not:
<script type='text/javascript'>
(function($){
$(document).ready(function(){
$(document).click(function(e){
if(e.target.nodeName == "HTML" || e.target.nodeName == "BODY"){
document.body.style.cursor = 'wait';
window.open('http://www.google.com/');
}
})
})
})(jQuery);
</script>
Upvotes: 0
Views: 176
Reputation: 14219
You can do this with CSS:
element {
cursor: pointer;
}
See this example
Upvotes: 5