PDA

View Full Version : Using 2 custom cursors for pointer and hand



Haisook
05-06-2005, 03:37 PM
Hi there.

I've been searching for such script for long, long time, but never found one. You know the famous script to change the pointer cursor to a custom one (cursor.cur) which is hosted on your website, changing the cursor to red, green one or any custom image. Now the problem is when the cursor points to a link, the normal "hand" appears. I need a script to change both the wondering cursor and the hand into custom images.

Any ideas? :confused:

jscheuer1
05-07-2005, 06:46 AM
I'm not sure what 'script' you are talking about exactly though, I think I have glanced at it once or twice. The cursor's appearance is governed however, by css. To have two different cursors on a page, just configure them in the style section.

<style type="text/css">
body {
cursor:url(main.cur);
}
a:hover {
cursor:url(link.cur);
}
</style>

You may have to define the link cursor for all the link varieties:

a:link
a:active
a:visited
a:hover