Image Scrolling

They have: 51 posts

Joined: Dec 2002

Lets say I have an image of 600x600 and I display it in an area of 300x300 is it possible to get a script that will allow me to scroll around the parts of the image I can't see due to the size it is displaying in (300x300). It would put arrows at the four sides of the square that allow me to move around.

He has: 52 posts

Joined: Feb 2003

Thats a tough one.. I know you can scroll an image with java (DHTML) left to right, probably up and down as well.. but while masking half of it?

If i was trying to do this I'd get flash and have it done in 5 minutes.

If your anti-flash try using a 300 x 300 iframe - change the attributes of the iframe with css (scroll bar and border) so it will give you virtually the same effect (and if your not worried about non-compatabilty with java then frames shouldnt be a problem either.)

Aaron Elliott
forwardtrends.com

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

My question is why do you want to do this?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Assuming it's a size restriction (that's the only available space on the page), then perhaps another solution would be more useful? i.e. a new window without all the site template around it so there is space?

If you have a limit because of the device (smaller viewing area), then perhaps something like a Java applet would be useful, or Flash?

You could also use a server-side solution that would involve a smaller image, 3000x300, split into quadrants (or smaller pieces) and then you can click to get a zoom effect (reload with a piece of the larger image).

That last solution may be the most usable and bandwidth friendly, depending on whether every user will need to use this page at every visit (then your solution is best or a link to the larger popup), or if it's something only a few people will need once and awhile (then the popup or the slicing options would be better).

They have: 51 posts

Joined: Dec 2002

thanks, turns out we don't need it anymore unfortunatley

Roo's picture

She has: 840 posts

Joined: Apr 1999

Well I'll ask anyway! Smiling

Were you speaking of something like IPIX? (like is used for virtual tours?)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.