Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the cursor

Status
Not open for further replies.

spaulding

Technical User
Jan 10, 2001
123
US
One of my students is building a tennis web page. His buttons are tennis balls and he wants the cursor to change to a tennis racket when he moves it over the button. Any ideas on how to make this happen, Javascript or not?

Thanks
 
This is a CSS problem - so you need to creat the cursor as a .cur fileType (I think) then use the following:

img.ballButton {cursor : url("myCursor.cur")...}


and you would include this in the style definition for the image - or as above use a class for all the buttons. There are other generic cursor types too - which you can specify. You can comma separate alternative cursors, just in case.Bj
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top