/    Sign up×
Community /Pin to ProfileBookmark

setCapture problem

I have a row in a table, like this:

[CODE]<TBODY>
<TR style=”POSITION: relative” id=theRow height=90>
<TD style=”POSITION: relative” id=theTableDate bgColor=#ffffff height=”100%” width=600>

<IMG style=”POSITION: absolute; WIDTH: 13px; HEIGHT: 10px; TOP: 41px; LEFT: 295px” id=myImage src=”Picture.gif”>
</IMG>
</TD>

</TR>
</TBODY>
[/CODE]

Which is basically a large table row with an image located within it.

I do a setCapture on theRow and intercept the mouse movements during the capture with my on onMouseMove method, which displays the coordinates of the mouse as it’s moving.

But it only captures the mouse movement while the mouse is on the image. When the mouse is off the image, but still within theRow’s area, my onMouseMove method doesn’t get called.

Any suggestions?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorJan 13.2010 — So, do you want to capture the mouse position all over the document? Or what?
Copy linkTweet thisAlerts:
@bertsagaJan 13.2010 — Maybe you could make an image that is 600px width, and is your current image placed in your current background. So that it looks exactly like it is now. But make the image a .gif or .png
×

Success!

Help @RogerInHawaii 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.18,
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,
)...