User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 422,386 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,705 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 610 | Replies: 1
Reply
Join Date: Aug 2005
Location: Cologne, Germany
Posts: 108
Reputation: sDJh is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 9
sDJh sDJh is offline Offline
Junior Poster

FireFox: Forcing hand over table-cell doesn't work

  #1  
Apr 30th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Location: New York state
Posts: 464
Reputation: ShawnCplus will become famous soon enough ShawnCplus will become famous soon enough 
Rep Power: 5
Solved Threads: 72
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: FireFox: Forcing hand over table-cell doesn't work

  #2  
Apr 30th, 2008
That is because 'hand' is deprecated in lieu of 'pointer'. 'hand' only works in Internet Explorer.
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 8:47 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC