Re: Simple image pan
- From: "Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx>
- Date: 02 Sep 2005 18:47:59 GMT
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)
.
- Follow-Ups:
- Re: Simple image pan
- From: jim_adams
- Re: Simple image pan
- References:
- Simple image pan
- From: jim_adams
- Simple image pan
- Prev by Date: Re: Simple image pan
- Next by Date: Re: Who knows anything about CMSs and online WYSIWIG editors?
- Previous by thread: Re: Simple image pan
- Next by thread: Re: Simple image pan
- Index(es):
Relevant Pages
|