Forum Moderators: open

Message Too Old, No Replies

firefox, <SPAN>, cursor:hand

can't get firefox to do cursor:hand in a SPAN style

         

Jonesy Jones

4:30 pm on Jun 10, 2005 (gmt 0)

10+ Year Member



Here is the code I have for faking a link with a <SPAN>

<SPAN onclick="f('https://www.somewhere.com/doc/something.pdf','File Description');" style="text-decoration: underline;CURSOR: hand;">Click Here</SPAN>

I'm using this to track who downloads the document. This code works (the cursor changes to a hand) in IE, not in firefox 1.0.1 or 1.0.4 (cursor changes but not to a hand). There is no css in use (yet). What am I doing wrong?

Jonesy

pageoneresults

4:34 pm on Jun 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld Jonesy Jones!

Try this...

<span onclick="f(','File Description');" style="text-decoration: underline; cursor: [b]pointer[/b];">Click Here</span>

P.S. You should validate your CSS. This would have come up as an error in the validator...

Errors
URI : http://www.example.com/file.css
Line: 80 Context : .hand
Invalid number : cursor hand is not a cursor value : hand

Reference

Jonesy Jones

4:44 pm on Jun 10, 2005 (gmt 0)

10+ Year Member



Yes! Thank you.

BTW, how do I validate the css?

keyplyr

4:05 am on Jun 11, 2005 (gmt 0)