/    Sign up×
Community /Pin to ProfileBookmark

How to get the position of the mouse

Hello everyone,

Is it possible for me to set the position of an element dynamically at the mousepointer? ie are there any css attributes like posX and posY which I can set to X-coordinate and Y-co ordinate of the mouse respectively without using javascript?

Thanks in advance.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 05.2008 — No, use JavaScript.
Copy linkTweet thisAlerts:
@taurus2006authorNov 05.2008 — Hello

Thanks a lot for the reply.

The component I am using doesnt support any javascript events like onmouseover etc.So there is no solution for this?

Thanks in advance!
Copy linkTweet thisAlerts:
@FangNov 05.2008 — If events are not supported you are out of luck.
Copy linkTweet thisAlerts:
@taurus2006authorNov 05.2008 — How do I do it with javascript?

-Thank You
×

Success!

Help @taurus2006 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.25,
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,
)...