/    Sign up×
Community /Pin to ProfileBookmark

Imagemap and cursor

I am having trouble assigning a custom cursor to an image map. The image map is created in javascript. I have tried applying cursor:move; to the image element, the map element and the area element, nether of them appear to replace the default pointer.

Any ideas?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@KDLAMay 24.2006 — Try this:

Place this into your <head> section:
<i>
</i>&lt;style type="text/css"&gt;
img a:hover {cursor: move;}
&lt;/style&gt;


That should do it.

KDLA
Copy linkTweet thisAlerts:
@idnauthorMay 24.2006 — Thanks for your reply but this didnt work for me. What I did instead was set the onmouseover event handler for the imagemap area to set the cursor for the div the image is in, then set the cursor to default when the user moves the mouse out of the image area.

Thanks!
×

Success!

Help @idn spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...