Hi,
Im currently doing a very tedious/time consuming process for an images section on a site.
All of the thumb nails of images, once clicked will load a larger version in a seperate browser window. The images are all different sizes and theres loads of them!!
Is there a way of telling the new window to stretch to fit the image automatically?
Ive seen sites that have even more images in a similar way and surely someone didnt hand code each one individually!!!
Please help!
Thanks,
Matt.
'Open browser window' behaviour
Started by getoffmyland, Sep 25 2005 03:39 PM
4 replies to this topic
#1
Posted 25 September 2005 - 03:39 PM
#2
Posted 25 September 2005 - 03:57 PM
Well, it'd be nice to know what language you're working with. But if it's javascript/html, just have the window open to the size of the screen.
#3
Posted 25 September 2005 - 04:05 PM
im working in DW MX 2004.
Simply using the basic behaviours to get where i am at the moment. Are there any PHP scripts that i could use? The site will be uploaded to a server that uses PHP.
Thanks,
Matt
Simply using the basic behaviours to get where i am at the moment. Are there any PHP scripts that i could use? The site will be uploaded to a server that uses PHP.
Thanks,
Matt
#4
Posted 25 September 2005 - 04:14 PM
Well, it doesn't matter what you're using to code it. Personally, i've never dealt with behaviours in the 8 months i've used DW.
If you know anything about html, make the link to open up your images this
You could also try using php's GD library functions. http://php.net/manua...etimagesize.php
Although, you'd have to modify the code above and take out "screen.width" and "screen.height" and replace them with the corresponding php variables.
If you know anything about html, make the link to open up your images this
<a href="javascript:window.open('URL', 'obj', 'width='+screen.width+',height='+screen.height);">IMAGE</a>
Where URL = the path to the image, and IMAGE = the thumbnailYou could also try using php's GD library functions. http://php.net/manua...etimagesize.php
Although, you'd have to modify the code above and take out "screen.width" and "screen.height" and replace them with the corresponding php variables.
#5
Posted 25 September 2005 - 04:16 PM
thanks for the advice, il give it a go!
Matt
Matt
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
