View Full Version : change window cursor style
shooali
04-10-2007, 03:51 PM
Hello,
how can I change the cursor style for the whole window/page without going recursively over all document elements?
thanks,
pcbrainbuster
04-10-2007, 03:58 PM
<html>
<head>
<title>The title</title>
<style>
body {cursor: url('the cursor diractory');}
</style>
</head>
<body>
Contents...
</body>
</html>
I didn't test this ... So it may not work...
shachi
04-10-2007, 04:36 PM
over all document elements pcbrainbuster, not just the body.
shooali: you should use the * selector, in case you don't know how to:
* {
cursor: url(somecursor.cur), default;
}
shooali
04-10-2007, 06:46 PM
thanks for the quick reply.
I need to do it from a javascript function. currently I user getElementById for the upper <span> on my page and sets its ...style.cursor to what I need, however, it does not influence the elements on the page that has their own style. How can I change the cursor style for the whole page from JS function? just like the cursor style change to wait or progress when you click a link and wait for the reply from the server.
thanks,
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.