Hi, I still want to create the postcardviewer in Javascript
:
http://www.airtightinteractive.com/p...iewer/example/
My code now shows all the pictures, and when I click on one of them then they all resize and get big ( looks like sooming in ).
I have to problems but just lets solve the first one,
I'm trying to move the viewport to the picture i'm clicking on.
But I cant find functions for that,
do I have to use the window object for that
like moveBy(x,y) and moveTo(x,y)
Or is there a viewport object ( I assume there is ).
So I have a
mijnImg.onclick = function(){clickImg(this)}
function clickImg(img)
{
//move the viewport to this image
}
So I also have to get the X and Y position of the picture i'm clicking on.
I've been " googeling " for methods but I cant find the ones I need for this.
So you dont have to give the code directly, but try to tell me what functions / methods I have to use for this
thnx for reading again :) cool that there are people willing to help others with coding :D