![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to achieve the following - can anyone help? Before you jump on me for wanting to interfere with the user's windows - it's' for a corporate intranet where we can and will dictate what they see and how they see it. I have a popup which displays an image (not that it matters much I guess, but entire site is in ASP). I want the window to resize itself on opening to 'hug' the image. However, some images will be bigger than the screen, so I want a maximum which it will resize to if the image is bigger than the specified maximum. Also, to confuse matters - some users have varying screen-resolutions, so an added bonus would be to detect the users screen size and set the maximum resize value according to this. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thank you However, is this possible ith javascript or client-side vbscript? I am not familiar with PHP at all. I would like to open the window which will contain an ASP page with the image on. It has to be this way as there is other ASP code running when the image opens. |
#5
| |||
| |||
|
|
I'm totally ignorant of ASP, but I imagine there's some sort of equivalent of the PHP example I'm gonna use. |
|
$size = getimagesize("$image"); //get the actual size of the picture in an array |
#6
| |||
| |||
|
|
Previously in alt.html, Karl Core <karl (AT) NOSPAMkarlcore (DOT) com> said: I'm totally ignorant of ASP, but I imagine there's some sort of equivalent of the PHP example I'm gonna use. snip $size = getimagesize("$image"); //get the actual size of the picture in an array This is the only bit that I can see which doesn't have an ASP equivalent - ASP doesn't have a built in function for getting the dimensions of an image. There are a couple of add-on components that can do it though. ASPImage http://www.serverobjects.com/products.htm#aspimage ImageSize |
![]() |
| Thread Tools | |
| Display Modes | |
| |