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