googling also suggests that you can specify the height and width as arguments in the new Image() call itself.
myFoo = newImage(100,200); http://docs.sun.com/source/816-6408-10/image.htm On 1/11/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > also, try img.width = "200px"; > > not sure...just grasping at straws...but i'm fairly certin that Adrian > was right in suggesting the .width and .height properties. now it's > just a matter of finding the proper syntax for the values :) > > On 1/11/07, Josh Nathanson <[EMAIL PROTECTED]> wrote: > > Could be that you need to switch the order of the second and third lines, so > > you are assigning the width AFTER you set the src attribute. > > > > -- Josh > > > > > > ----- Original Message ----- > > From: "Rick Faircloth" <[EMAIL PROTECTED]> > > To: "CF-Talk" <cf-talk@houseoffusion.com> > > Sent: Thursday, January 11, 2007 12:17 PM > > Subject: RE: Any way to specify image size in this code? > > > > > > > Thanks for the reply, Adrian... > > > > > > I tried it like this... > > > > > > <SCRIPT LANGUAGE="JavaScript"><!-- > > > var img33641915#Get_New_Community.CurrentRow#=new Image(); > > > img33641915#Get_New_Community.CurrentRow#.width=200; > > > img33641915#Get_New_Community.CurrentRow#.src="#Website#/created_assets/phot > > > os/new_communities/#Get_New_Community.Community_Photo_1#"; > > > //--></SCRIPT> > > > > > > ....with your code stuck on the end of the second line, > > > but nothing's changing with the image size. > > > > > > Do I need to put it in another spot? > > > > > > Rick > > > > > > > > > > > > -----Original Message----- > > > From: Adrian Lynch [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, January 11, 2007 3:06 PM > > > To: CF-Talk > > > Subject: RE: Any way to specify image size in this code? > > > > > > Try: > > > > > > img33641915#Get_New_Community.CurrentRow#.width = 100; > > > img33641915#Get_New_Community.CurrentRow#.height = 100; > > > > > > Ade > > > > > > -----Original Message----- > > > From: Rick Faircloth [mailto:[EMAIL PROTECTED] > > > Sent: 11 January 2007 20:01 > > > To: CF-Talk > > > Subject: Any way to specify image size in this code? > > > > > > > > > Hi, all. > > > > > > I was wondering if there is any way to specify the image size in this > > > code: > > > > > > <SCRIPT LANGUAGE="JavaScript"><!-- > > > var img33641915#Get_New_Community.CurrentRow#=new Image(); > > > img33641915#Get_New_Community.CurrentRow#.src="#Website#/created_assets/phot > > > os/new_communities/#Get_New_Community.Community_Photo_1#"; > > > //--></SCRIPT> > > > > > > Thanks, > > > > > > Rick > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266309 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4