Results 1 to 5 of 5
Thread: using scrollTo wihin a div
Apr 29, 2012, 23:58 #1
- Join Date
- May 2005
- S.W. France
- 1 Post(s)
- 0 Thread(s)
using scrollTo wihin a div
Need a few pointers please
I want to have a div center page 400x300px with an image inside the div, the image will be larger than the div ie so the div only shows a portion of the image. The image could even be applied as a background image to the div. So far so good.
Ive had success on a full screen layout with using scrollTo but cant seem to get this to work for div contents.
Any advice appreciated ?
My sinmple code for the fullscreen that works well
<body onmousemove='window.scrollTo(x=event.x*4-500,y=event.y*4-200)'> <img src='http://www.ezilon.com/maps/images/world-physical-map.gif' style='width:300%;'> </body>A Little Knowledge Is A Very Dangerous Thing.......
That Makes Me A Lethal Weapon !!!!!!!!
Contract PHP Programming