Colby Rountree

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromColby Rountree
ToMe
Subjectultimate popup, safari issue...
Date2 May 2006 03:44
strange, the image popup works on your site in safari. when i set it up on
my own page and uploaded it to a test server it only auto resizes in ie.
still opens in safari, but it doesn't resize.

here's a  link to the page in question...

[URL]

click the first square...


thanks man. your page is great source of information...

-colby
FromMe
ToColby Rountree
SubjectRe: ultimate popup, safari issue...
Date2 May 2006 09:26
Colby,

> strange, the image popup works on your site in safari. when i set it up on
> my own page and uploaded it to a test server it only auto resizes in ie.
> still opens in safari, but it doesn't resize.

It also resizes in Opera, Firefox, etc. (Please give details of all these
browsers when requesting help.)

Unrelated, but this is a quote from your source code:
...
    return false;
}
//-->

<!--
function ...

You should not end and start HTML comments inside scripts. You can only put
one HTML comment inside a script tag; around the whole script.

Now, on to your problem :)

Your image is too big. It is 758 pixels high, and since the resize routine
needs an extra 200 pixels, that means that it needs 958 pixels to do the
resize. When the script tries to resize to larger than the height of the
screen (which I am guessing for you is 768 pixels), Safari ignores the
resize command. There is nothing my script can do about that; you will have
to use smaller images if you want it to work in Safari (or in fact if you
want it to work properly in other browsers, since they will get the pop-up
size wrong).


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.