Use custom image as Cursor in jQuery


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.10.1.js'></script>
<style type='text/css'>
div {
  width: 500px;
  height: 500px;
  background-color: #F00;
}
</style>
<script type='text/javascript'>
$(window).load(function(){
    $("div").css('cursor','url("cursor.png"),auto'); 
<!--You can change cursor.png image to change other image you will be shown in the website-->
});
</script>
</head>
<body>
  <div></div>
</body>
</html>

Comments

Popular posts from this blog

Shutdown Computer With Funny Reason

Hidden Attribute in javascript

Draw animated loading spinner canvas in Javascript