Home
Developer Blog
Ajax effects
CSS examples
Freelance jobs
Hot IT Jobs
Hot scripts
Code samples
Web hosting directory
Lotus Notes FAQ
See the new scripts recently added to Dynamic Drive.
Click here
.
Original, practical
CSS codes and examples
such as CSS menus for your site.
Search code samples
Keyword
All Categories
ASP
CSS
Dhtml
Html
Javascript
PHP
Code Samples
ASP
CSS
Dhtml
Html
Javascript
PHP
LOGIN HERE
Username
Password
Signup Now
Forgot Password
Verify Signup
Javascript >> General
A rotating cursor script
Visitor Ratings (0) :
Description
A great cursor javascript that rotates your cursor pointer as your mouse is moved across the webpage. Copy and paste the rotating cursor javascript code below into the <head> of your html document
Move your mouse to see the effect.
Code
Select All
<script> // CREDITS: // Cursor Rotator // By Peter Gehrig // Copyright (c) 2003 Peter Gehrig. All rights reserved. var i_cursors=0 ; var cursors=new Array("e-resize","ne-resize","n-resize","nw-resize","w-resize","sw-resize","s-resize","se-resize") ; var ie5=document.getElementById&&document.all ; function animatecursor() { document.body.style.cursor=cursors[i_cursors] ; i_cursors++; if (i_cursors>=cursors.length-1) {i_cursors=0} } function resetcursor() { msmove==false if (!msmove) { document.body.style.cursor="crosshair" } var timer=setTimeout("resetcursor()",500) } if (ie5) { document.onmousemove=animatecursor } </script>
Rate this Resource
0
1
2
3
4
5
6
7
8
9
10