How about this:

<body
onload="window.resizeTo(document.getElementById('myImg').width),document
getElementById('myImg').height));">

No cf at all!

Matthew Walker
http://www.matthewwalker.net.nz/



> -----Original Message-----
> From: Bob Haroche [mailto:spambait@;onpointsolutions.com]
> Sent: Thursday, 14 November 2002 9:31 a.m.
> To: CF-Talk
> Subject: Dynamically adjust window based on image size?
> 
> 
> I'm working on a feature where a visitor can click on a link for "more
> photos". That triggers a pop up window which displays the first of X
> images in a slideshow. The list of images is created from a db query.
> 
> The images will be uploaded by the client and may not be all the same
> dimensions. I'd like to have the slideshow window dynamically adjust
> to expand or contract around each image currently being displayed.
> 
> I know this had to be done at some time so I'm looking for a good
> custom tag or script to start with.
> 
> Two questions:
> 
> 1. Any recommendations for such a script?
> 
> 2. Using CF5 how would one grab an image's width and height?
> 
> Thanks.
> 
> -------------
> Regards,
> Bob Haroche
> O n P o i n t  S o l u t i o n s
> www.OnPointSolutions.com
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to