scriptwelt.org das JavaScript Archiv

Navigation
Startseite
Audio & Sound
Formulare
Cookies
Fenster & Frame
Grafik & Text
Navigation
Suche Scripts
Fun und Spiele
Buttons
Diverse
Tutorials
Kontakt
eine Mail an ScriptWelt.org
Webhosting
Tipps zur Providerwahl und zum Webspace

JavaScript in eine HTML Datei einbinden

Sind JavaScripts sicher?

Links zum Thema JavaSript

Impressum
impressum

Diverse JavaScript / Cursor Rotation

Dieses JavaScript läßt den Cursor rotieren. Auf Eingabefeldern oder Formfelder rotiert der Curser nicht um Eingaben zu erleichtern.
Autor: Muhammad Sufyan

in <head> einfügen

<script type="text/javascript">
<!--
/*
Rotating Cursor script By Muhammad Sufyan | sufyan.cjb.net | sufyan79@yahoo.com
http://www.scriptwelt.org
*/
var cursors = new Array("e-resize","ne-resize","n-resize","se-resize")
var cursorsIndex = 0
var 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=0
setTimeout("rotateCursor()",rotationSpeed)
}
window.onload=rotateCursor
//-->
</script>