Safari mouse pointer trick

Discussion in 'Web Design and Development (archive)' started by djits, Feb 17, 2004.

  1. macrumors newbie

    Joined:
    Oct 31, 2003
    #1
    I was just at apple's website when I moused over the time left until the iPod mini came out and my mouse curser changed to the hand with a tan color. This is a neat trick that I have never seen done before. How did they get the curser to change color?
     
  2. macrumors 6502a

    sonofslim

    Joined:
    Jun 6, 2003
    #2
    it's a css thing. most modern browsers allow you to define a cursor style, but only some of them allow you to define a custom cursor by pointing to a file as follows:

    Code:
    cursor:url([i]uri[/i])
     
  3. macrumors 603

    rainman::|:|

    Joined:
    Feb 2, 2002
    Location:
    iowa
    #3
    That is odd, i never noticed that happening before. The reason is that the date/time is a Quicktime file, so that it changes. The cursor you're seeing is part of Quicktime, perhaps specific to the type of file that they're using here. Someone with more understanding of Quicktime could probably explain better.

    edit: sonofslim, i don't see a cursor reference in index.html or their CSS stylesheet. I'm going with QT on this one...

    paul
     
  4. mms
    macrumors 6502a

    Joined:
    Oct 8, 2003
    Location:
    CA
    #4
    It's not just a Safari thing. I tried it in IE too, out of interest, and it still does that. Haven't tried a Mozilla browser on it yet but I'm sure it will have the same result.
     
  5. Moderator emeritus

    Rower_CPU

    Joined:
    Oct 5, 2001
    Location:
    San Diego, CA
    #5
    I'm pretty sure I've seen that effect with QT objects before, and I don't know of a cursor state that gives you a yellow hand...

    However, it's nice that Safari 1.2 finally recognizes cursor states, and will pop-up title info on links. Those were a couple notably absent features for a modern browser.
     
  6. macrumors 6502a

    sonofslim

    Joined:
    Jun 6, 2003
    #6
    you're right. i tried it with a browser that does not support custom cursors, and it still worked, so CSS is not the answer.
     
  7. macrumors newbie

    elenaher@wanado

    Joined:
    Aug 21, 2004
    #7
    Hello,
    I don't understant why on mac we can't use custom cursors ? I have read your posts and i don't understand. I use Safari 1.2.2 and IE and this type of things doesn't work :
    <style>
    BODY { cursor:url(url); }
    </style>

    I have never see a browser on mac which support this thing.
    Is it a bug on my computer ? ( on a mac, it would be unbelievable :) )
    What type of files do you use ? .gif ? .cur ? .ani ?
    I see also that you would try to use QT but how ?

    Thanks.
     
  8. macrumors 6502

    davecuse

    Joined:
    Feb 20, 2004
    Location:
    NYC
    #8
    I for one am glad that this is difficult if not impossible to do. I hate when a website changes something on my computer. That scroll bar trick in IE really bugs me as well. Keep your website where it belongs, within the browser window, don't go screwing around with the settings of my pointers and scroll bars, I'll change those if i deem necessary.
     

Share This Page