Results 1 to 2 of 2

Thread: Using 2 custom cursors for pointer and hand

  1. #1
    Join Date
    May 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Using 2 custom cursors for pointer and hand

    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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •