Re: Simple image pan



wrote on 02 sep 2005 in comp.lang.javascript:

>>>From a web page, I'd like to show a jpg/gif image that is larger than
> its frame, and allow a user to pan around by mouse. It shouldn't allow
> the user to move the frame view out of the image boundaries.
>
> I've Googled for a while on this one, but nothing comes up that's
> simple and polished.

IE only, I think, try this first without framing:

<body onmousemove='window.scrollTo(x=event.x*4-500,
y=event.y*3-200);status=x+","+y'>
<img src='myPicture.gif'
style='width:300%;'
onclick='this.style.width=(this.style.width=="300%")?"100%":"300%"'
alt='Click me to enlarge and to move by moving the mouse'
>


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

.



Relevant Pages

  • Re: DV 4:3 to DVD playback on 16:9 WS
    ... Never heard of "end user pan and scan" The only pan and ... pan and scan (and even zoom) without loss of resolution. ... But they can't take SD video and make WS out of it. ... Put the 4:3 SD frame in the middle (or over to one ...
    (rec.video.desktop)
  • Re: Honda 800 pic on MCN.com
    ... so the engine may remain set in the frame like an exquisitely-cut gem. ... since it's not plug-compatible or even compatible at all with a Pan). ...
    (uk.rec.motorcycles)
  • Re: Honda 800 pic on MCN.com
    ... so the engine may remain set in the frame like an exquisitely-cut gem. ... since it's not plug-compatible or even compatible at all with a Pan). ...
    (uk.rec.motorcycles)
  • Simple image pan
    ... I'd like to show a jpg/gif image that is larger than ... and allow a user to pan around by mouse. ... the user to move the frame view out of the image boundaries. ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: fast pans + two fields = problem
    ... I find that each frame is sharp; ... which due to the speed of the pan makes it looks like each ... Can I fix it "in the camera"? ... Can I fix it in my editing software? ...
    (rec.video.production)