DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   FireFox: Forcing hand over table-cell doesn't work (http://www.daniweb.com/forums/thread121770.html)

sDJh Apr 30th, 2008 10:46 am
FireFox: Forcing hand over table-cell doesn't work
 
Hello all together,

I've a JS-script that forces the mouse pointer to become a hand. It does work perfectly on IE, Opera, Safari and Konquerer (that's what I've tested so far). Just FireFox doesn't want to change the icon. What's the matter?

Here is the script:
document.getElementById(wid+'0a').style.backgroundColor="#E0E0E0";
document.getElementById(wid+'0b').style.backgroundColor="#E0E0E0";
document.getElementById(wid+'1').style.backgroundColor="#E0E0E0";
document.getElementById(wid+'1').style.cursor="hand";  <= Problem is here!

The elements "wid0a", "wid0b" and "wid1" are cells in one row. The first two cells are for formatting reasons.

In the JS-code first three lines are okay (changing the background color). But the fouth (changing the pointer to a hand) doesn't work.

Thanks for your replies.
Simon

ShawnCplus Apr 30th, 2008 11:03 am
Re: FireFox: Forcing hand over table-cell doesn't work
 
That is because 'hand' is deprecated in lieu of 'pointer'. 'hand' only works in Internet Explorer.


All times are GMT -4. The time now is 1:37 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC