Results 1 to 4 of 4

Thread: change window cursor style

  1. #1
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default change window cursor style

    Hello,

    how can I change the cursor style for the whole window/page without going recursively over all document elements?

    thanks,

  2. #2
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <html>
    <head>
    <title>The title</title>
    <style>
    body {cursor: url('the cursor diractory');}
    </style>
    </head>
    <body>
    Contents...
    </body>
    </html>

    I didn't test this ... So it may not work...

  3. #3
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    over all document elements pcbrainbuster, not just the body.

    shooali: you should use the * selector, in case you don't know how to:

    Code:
    * {
    cursor: url(somecursor.cur), default;
    }

  4. #4
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for the quick reply.

    I need to do it from a javascript function. currently I user getElementById for the upper <span> on my page and sets its ...style.cursor to what I need, however, it does not influence the elements on the page that has their own style. How can I change the cursor style for the whole page from JS function? just like the cursor style change to wait or progress when you click a link and wait for the reply from the server.

    thanks,

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
  •