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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cursor in firefox 1

Status
Not open for further replies.

seantuk

Programmer
Mar 22, 2005
62
GB
if have these peices of code:

Code:
.button_mouse{
  cursor: hand;
}

Code:
<img class="button_mouse" onClick="document.location.href = baseURL" id="home" src="images/myImage.gif"/>

in internet explorer on the pc, i get a hand icon for the mouse pointer when i'm hovering over this image - which is exactly right - but i the mouse doesn't change on firefox.

how can i make this work for many browsers?
 

Use "cursor:pointer" instead.

"cursor:hand" is IE-only. pointer is cross-browser.

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Oh how they cluttered the net with wrong properties, those people at Microsoft. :)
 
that's the second time you've helped me in about 30 minutes. cheers billy.
 
adendum -

perhaps dreamweaver shouldn't be promoting 'cursor:hand' in it's css editor.
 

All of the WYSIWYG editors have their faults... at an interview today, I had to use Homesite for a practical test... Sometimes it would insert incomplete DOCTYPEs. Ah well... just goes to show that hand-coding will be around for a while to come ;o)

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top