Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Changing Mouse Cursor

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to change the cursor type depending on the different buttons cilcked.
Is anyway to change the mouse pointer using either JavaScript/JScript/ASP/HTML.
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way I know how to change the mouse pointer is to use something like Director or maybe Flash. The pointer is part of OS, so you would need some kind of application to change that and HTML and Javascript are not applications that can do that.
I know ASP can't do it because that is server side, but I am not 100% on DHTML stuff and maybe you can do it there. I would be a little surprised if you could, but maybe. Do a search on some good DHTML sites and see what you can find. I know with DHTML you can make trails from your mouse pointer, but I don't think you can change your pointer.
Bill
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At least in IE, you can change the mouse cursor to one of the existing types. In script you'd write
document.body.style.cursor = "wait"; (or default or hand...)
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool one Andrew. Looked it up a little more at this site. This page will give you all the possible values of what you can change the cursor to.
This does work in IE, haven't tried the mac, but I will test it out on MAC IE when I get a second.
However, Netscape doesn't have the ability to do this.
Bill
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the same problem, but i have to work on Netscape 4.75 without any plug-ins on flash. Will DHTML works?
Please reply for my pronblem also.
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic