Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: onMouseMove Help


Message #1 by "Brian Ballentine" <brian.ballentine@m...> on Tue, 20 Feb 2001 19:28:33

Thanks for the tip. I ended up solving the problem by using "setCapture(false)"
when the onmousedown event fired. I housed this event in a <td> that butted up
against the split in the frameset. With a simple style setting inside the same
<td> tag, I set the cursor to look like a resize arrow. When the user drags and
releases the mouse, the onmouseup event fires a function that gathers the
position of the mouse or "event.clientX". I simply use that value to resize the
frameset like
top.frames["myFrameset"].cols = event.clientX+",*";  At the end of the function,
 don't forget to release the capture setting or document.releaseCapture();

Regards,
Brian



  Return to Index