Corné Steenvoorden

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromCorné Steenvoorden
ToMe
SubjectIs it possible to leave the perfect popup where I drag it and reuse it for every other picture I open?
Date31 October 2007 15:04
Hi there,

First of all, I am enjoing the perfect popup script fully, thank you :-).

I just made a simple web album for the family to share pictures.
I use the perfect popup script to open up the picture when you click on a
thumbnail.
I reuse this window for every click on a thumbnail.
All very nice......but.....
Every time I click on a thumbnail the popup repositions to where ever the
script tells it to be.

I would like to position the popup by dragging it around, and have it stay
there.
Is this possible?

Thank you in advance for thinking about it anyway.

Best regards,

Corné Steenvoorden


PS,
I do hope it was nothing serious that caused the time you could/would not
answer mails anymore.
FromMe
ToCorné Steenvoorden
SubjectRe: Is it possible to leave the perfect popup where I drag it and reuse it for every other picture I open?
Date1 November 2007 08:37
Corné,

> I would like to position the popup by dragging it around, and have it stay
> there.

I assume you are using the version titled "Resizing a popup to perfectly fit
an image, even if you do not know how big that image is". If so, this should
be a simple case of making it always reuse the same window, and telling it
not to move it around.

1. Change this:
_blank
to this:
mygallerywindow

2. Remove this line:
'if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }\n'+

3. Make sure you don't use the AutoClose feature

4. Make sure you don't close the window yourself ;)


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromCorné Steenvoorden
ToMe
SubjectRe: Is it possible to leave the perfect popup where I drag it and reuse it for every other picture I open?
Date1 November 2007 10:23
Hi Mark,

Thank you for getting back to me so soon.
Works like a charm :-)

Thank you very much!

Regards,

Corné
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.