Email conversation
From | Jerry Boling |
To | Me |
Subject | Perfect popups suggestion |
Date | 13 July 2005 23:45 |
First, thank you so much for providing the code for this. I really like
what it does and it will make my thumbnail-to-large image easier to code. I
am new to coding and rely mostly on finding code that I can copy and paste.
I would like to do something a little different from what your code does,
but I just don't know how. This may be a nice modification for your code
also. Now to the suggestion - I would first like to create my Perfect Popup
completely behind the scenes as a popunder and then pop it up. This way,
you wouldn't see the resizing taking place, but only the fully complete
Perfect Popup. I think that it would make a nicer popup. Is this possible?
How would I add this to the code?
jerry boling
From | Me |
To | Jerry Boling |
Subject | Re: Perfect popups suggestion |
Date | 14 July 2005 00:42 |
Jerry,
> I would first like to create my Perfect Popup completely behind the
> scenes as a popunder and then pop it up.
I do not recommend doing this, because the image would have to load, the
resize would have to take place, and then the window would be displayed. In
the meantime, the visitor would be waiting, wondering why nothing happened
when they clicked the link. They would get confused, and probably click the
link again a few times, each time, the link would restart so they would have
to re-wait all over again, meaning a longer wait and more confusion.
They may easily give up waiting, and go somewhere else, and then suddenly
the window would appear, and would look like an unrequested popup. This is
not the way to make friends :)
As a side point, the window would have to appear for a moment, then be
pushed to the back. This would be even more confusing, and may easily make
the visitor think it was a pop-under advert.
> Is this possible? How would I add this to the code?
all is possible. If you are still sure you want to do it:
after this line:
if( !x ) { return true; }
add this:
if( x.blur ) { x.blur(); }
delete this line:
if( imgWin.focus ) { imgWin.focus(); }
and finally, before this:
'}\n'+
'<\/script>'+
add this:
'if( imgWin.focus ) { imgWin.focus(); }\n'+
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Jerry Boling |
To | Me |
Subject | Re: Perfect popups suggestion |
Date | 18 July 2005 23:01 |
Tarquin, I hadn't thought about the problem of a user clicking more than
once. I guess I need a different way to do this. Is it possible to start
the popup window near the center of the screen and at a small size, perhaps
100x100 pixels? That way, the image window would seem to zoom out from
small to full size instead of the transition from upper right. I promise I
won't bother you anymore about this even if this is not possible. I'm just
fussy about having a smooth transition to the popup.
jerry
From | Me |
To | Jerry Boling |
Subject | Re: Perfect popups suggestion |
Date | 25 July 2005 14:30 |
Jerry,
> Is it possible to start
> the popup window near the center of the screen and at a small size, perhaps
> 100x100 pixels?
the variables at the top of the script allow you to do this:
PositionX = 10;
PositionY = 10;
defaultWidth = 600;
defaultHeight = 400;
You would probably want:
PositionX = window.opera ? 10 : ( ( screen.availWidth / 2 ) - 50 );
PositionY = window.opera ? 10 : ( ( screen.availHeight / 2 ) - 50 );
defaultWidth = 100;
defaultHeight = 100;
From | Jerry Boling |
To | Me |
Subject | Re: Perfect popups suggestion |
Date | 26 July 2005 21:31 |
Tarquin,
Thanks very much.
jerry