Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Ipswich
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing the cursor to a 'hand'

    I know this is possible by editing the style sheet and adding cursor: hand; but this does not work in Netscape version 4.7. Is there are way to implement this in Netscape using javascript?

    cheers

    Pete

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no; ns4 doesn't support cursor styles

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    just think of it like this:
    if a style property is not working with CSS, then setting it using javascript will definitely not also work.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    "hand" is also an invalid cursor value.

    "pointer" is the correct one, and will work in NS6+, as well as IE6.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    but not ie5 ...

    I think you can go

    cursor: pointer,hand;

    to work for ie5 as well

  • #6
    Regular Coder
    Join Date
    Aug 2002
    Posts
    433
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Exclamation plesa can i have the code?

    i want to change the cursor how i can do that?

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm, that hand thing doesn't work for me in IE 5.5 (?) - but here's the basic idea of how to change the cursor with CSS for you alaios:

    <html>
    <head>
    <style type="text/css">
    <!--
    body{
    cursor: crosshair
    }
    -->
    </style>
    </head>
    <body>
    </body>
    </html>
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #8
    Regular Coder
    Join Date
    Aug 2002
    Posts
    433
    Thanks
    3
    Thanked 0 Times in 0 Posts

    other styles?

    do u know more cursor styles?

  • #9
    Regular Coder
    Join Date
    Aug 2002
    Posts
    433
    Thanks
    3
    Thanked 0 Times in 0 Posts

    somethinge else plz...

    If i ewant t o put a ico beside the cursos what i must do?

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can in ie6 use
    cursor: url(...); to have a custom cursor
    and for alaios these are the differnet cursors

    auto;
    all-scroll;
    col-resize;
    crosshair;
    default;
    hand;
    help;
    move;
    no-drop;
    not-allowed;
    pointer;
    progress;
    row-resize;
    text;
    vertical-text;
    wait;
    n-resize;
    ne-resize;
    nw-resize;
    w-resize;
    e-resize;
    s-resize;
    se-resize;
    sw-resize;

    all applicable in IE 6
    Last edited by whackaxe; 08-23-2002 at 10:04 AM.
    photoshop too expensive? use the GIMP! www.gimp.org


  •  

    Posting Permissions

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