Log In · Register

 
why dont this work :-(, why dont this work :-(
adoggydog195
post Mar 17 2004, 01:07 AM
Post #1


pimpalishious
*****

Group: Member
Posts: 436
Joined: Feb 2004
Member No: 4,370



this is supposed to make the cursor change every second:

<script>
// mousechanging speed
var speed = 1;
// transition time
var duration = 0;
var cursors = new Array()
// cursor urls
cursors[0] = 'crosshair';
cursors[1] = 'move';
cursors[2] = 'pointer';
// preload
var preload = new Cursor();
for (var i = 0; i < cursors.length; i++) {
preload[i] = new Cursor();
preload[i].src = cursors[i];
}
function start() {
document.write('<style type="text/css">body {cursor:'+preload[0].src+'}</style>');
}
</script>
<body onload="start()">

y dont it work sad.gif
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: