Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: scrolling within a layer window


Message #1 by "bill plummer" <bill@s...> on Thu, 4 Oct 2001 07:25:38 +0100
Solution depends on your target browser...

But basically, trap the mouseMove, mouseDown and mouseUp events within the
layer, and position the image accordingly.


/Robert




-----Original Message-----
From: bill plummer [mailto:bill@s...] 
Sent: den 4 oktober 2001 08:26
To: javascript
Subject: [javascript] scrolling within a layer window


Hi,
I have a layer containing a large aerial photo ... larger than the layer.
Scroll bars are enabled and the user can move round the image OK. A much
more elegant way would be to enable thr user to left click and drag the
photo round the layer window. Does anyone know if this can be done in
jaavascript and how.
Thanks
Bill

  Return to Index