»
EnglishFrenchVietnamese

Print - Rotating Cursors Script - JavaScriptBank.com

Full version: jsB@nk » Pointer » Rotating Cursors Script
URL: https://www.javascriptbank.com/rotating-cursors-script.html

Rotating Cursors Script © JavaScriptBank.comThis JavaScript gives an effect like the cursor is rotating clockwise or counter-clockwise. In fact, the cursors are changing the types. Very simple yet cool effect!

Full version: jsB@nk » Pointer » Rotating Cursors Script
URL: https://www.javascriptbank.com/rotating-cursors-script.html



JavaScript
<script><!--/*Rotating Cursor script IE6 (By Muhammad Sufyan| sufyan79@yahoo.com)*/var cursors = new Array("e-resize","ne-resize","n-resize","se-resize")var cursorsIndex = 0var rotationSpeed = 75 // decrease the value to increase the rotation speed and vice versa.(The value MUST be positive.)var direction = 1 // 1 to rotate clockwise and 0 to rotate counter-clockwise//*********Do Not Edit Below********if (direction) cursors.reverse()function rotateCursor(){document.body.style.cursor=cursors[cursorsIndex]cursorsIndex++if (cursorsIndex==cursors.length) cursorsIndex=0setTimeout("rotateCursor()",rotationSpeed)}window.onload=rotateCursor//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->