Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-20 20:40:29

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Is there a script (.js) to move large image in browserwindow?

On this page there is a huge image. You have to scroll vertical and horizontal to see all corners of the image. Is there a script that makes it possible to move the image with the cursor? Thanks for a hint!

Offline

#2 2008-06-20 22:16:28

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Is there a script (.js) to move large image in browserwindow?

You’ll want some kind of drag and drop script (quick google).

Last edited by jm (2008-06-20 22:16:39)

Offline

#3 2008-06-20 22:35:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Is there a script (.js) to move large image in browserwindow?

Offline

#4 2008-06-21 04:38:17

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: Is there a script (.js) to move large image in browserwindow?

Thanks! I will try the jQuery Draggables. I googled with ‘moving’, ‘javascript’, etc … but it had to be ‘dragging’ … ;-)

[edit]
It does the job on this page … :)
It should be possible to tweak the code so that you can’t drag the left side of the image into the window … or the upper side, etc! But I’m not a specialist … :(

Last edited by RedFox (2008-06-21 05:26:17)

Offline

Board footer

Powered by FluxBB