Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Custom Cursor script no longer working

  1. #1
    Join Date
    Oct 2005
    Location
    Palm Springs, CA.
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Custom Cursor script no longer working

    1) Script Title: Custom Cursor Script

    2) Script URL (on DD) http://www.dynamicdrive.com/dynamici...stomcursor.htm

    3) Describe problem: Been awhile since I used this. It's not working with IE11. Am I doing something wrong, or do I need to modify the script?

    Many, many thanks,
    Rick

  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

    You now have to provide a valid standard fall back cursor, ex:

    Code:
    <style type="text/css">
    body {cursor: url(mycursor.cur), auto;}
    </style>
    Also some browsers are more liberal about what they will allow as a custom cursor. Some will use various image formats. In IE, I believe it must be a valid .cur (cursor file) or valid .ani (animated cursor file).

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    rockinrick (05-06-2014)

  4. #3
    Join Date
    Oct 2005
    Location
    Palm Springs, CA.
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thank you John! That did the trick!

    Do you know of a script I could use for a hand cursor to appear on the links?

    Many thanks again,
    Rick
    Last edited by rockinrick; 05-05-2014 at 10:25 PM. Reason: Additional question

  5. #4
    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 had wanted to mention before that this isn't really a script. It's just ordinary css. Most browsers will use the hand (now known as 'pointer') cursor on links anyway. But some might not. To ensure that they do, working from my previous example, add the highlighted:

    Code:
    <style type="text/css">
    body {cursor: url(mycursor.cur), auto;}
    a {cursor: pointer;}
    </style>
    For more information on css see:

    http://www.blooberry.com/indexdot/css/propindex/all.htm

    http://www.w3schools.com/css/DEFAULT.asp

    or your favorite css resource.
    - John
    ________________________

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

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    rockinrick (05-06-2014)

  7. #5
    Join Date
    Oct 2005
    Location
    Palm Springs, CA.
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thank you for so much John. Years ago I made a website that used <span> assigning a custom hand cursor to every link. I've Googled all day trying to find
    how to use 2 custom cursors on 1 web page. http://www.rockinrick.us is where my old code is on every link. It's been awhile!

    Many thanks,
    Rick

  8. #6
    Join Date
    Oct 2005
    Location
    Palm Springs, CA.
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default How to add custom cursor for links

    Hello, I downloaded the custom cursors from DD and have a custom body cursor, but I need to know how to assign another custom cursor for hyperlinks. (downloaded from DD).

    Been on Google all day trying to find the answer. I've done it about 10 years ago, but it won't work now.

    My site is: http://www.rockinrick.us

    Many thanks,
    Rick
    Last edited by james438; 05-06-2014 at 05:16 AM. Reason: formatting and fixed broken link

  9. #7
    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

    Code:
    <style type="text/css">
    body {cursor: url(mycursor.cur), auto;}
    a {cursor: url(myothercursor.cur), pointer;}
    </style>
    But if you want each link to have a different cursor, you can use class names:

    Code:
    <style type="text/css">
    body {cursor: url(mycursor.cur), auto;}
    a.cur1 {cursor: url(myothercursor.cur), pointer;}
    a.cur2 {cursor: url(myyetanothercursor.cur), pointer;}
    </style>
    Then for one link have:

    Code:
    <a class="cur1" href="whatever.htm">Whatever</a>
    and for the other:

    Code:
    <a class="cur2" href="someother.htm">Someother</a>
    You can do this as many times as you like for as many different cursors/links as you want to have. And if by chance with this setup you want two or more links to have the same cursor, just give them the same class.
    - John
    ________________________

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

  10. The Following User Says Thank You to jscheuer1 For This Useful Post:

    rockinrick (05-06-2014)

  11. #8
    Join Date
    Oct 2005
    Location
    Palm Springs, CA.
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thank you John!
    This is exactly what I was looking for.

    Many thanks again,
    Rick

  12. #9
    Join Date
    Oct 2005
    Location
    Palm Springs, CA.
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thank you again John. Just one more question. How can I apply my link styles, such as underline, overline? With the script you provided, they no longer work.

    Many thanks for your time and help,
    Rick

  13. #10
    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 don't see why they wouldn't, could you be more specific and/or link me to a before (working) and after (not working) demo?
    - John
    ________________________

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

Similar Threads

  1. Script no longer working after upgrade to IE 8
    By Nightwing308 in forum JavaScript
    Replies: 2
    Last Post: 03-21-2014, 08:12 PM
  2. my custom cursor script can't work!
    By masked in forum JavaScript
    Replies: 0
    Last Post: 02-06-2010, 12:59 AM
  3. Custom Cursor Script
    By Uchiha_Guy in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-21-2007, 04:01 AM
  4. help on the custom cursor script?
    By hexacoto in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-07-2005, 09:37 AM
  5. Script - Custom Cursor
    By Betsy in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-19-2005, 04:05 AM

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
  •