www.webdeveloper.com
Results 1 to 3 of 3

Thread: setCapture problem

  1. #1
    Join Date
    Jun 2007
    Posts
    96

    Question 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>
    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?

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    So, do you want to capture the mouse position all over the document? Or what?

  3. #3
    Join Date
    Jan 2010
    Posts
    3
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles