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

That is because 'hand' is deprecated in lieu of 'pointer'. 'hand' only works in Internet Explorer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.