Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: how to set the image width property in percent


Message #1 by "Juergen Duttlinger" <duttlinger@b...> on Tue, 25 Sep 2001 13:59:58
document[picture].width = .2 * document[picture].width

Michael

----- Original Message -----
From: "Juergen Duttlinger" <duttlinger@b...>
To: "javascript" <javascript@p...>
Sent: Tuesday, September 25, 2001 1:59 PM
Subject: [javascript] how to set the image width property in percent


> I would like to set the image property width through the image object to
> 20 percent
>
> document[picture].width = 20%
>
> This didn't work. It will only work with e.g. 20 (for pixel)
>
> Is there a other way to do it. ?
>
>
> any help ?
> ---
> ** FREE DOWNLOAD - DETECT FLASH, CONNECTION SPEED, SCREEN SIZE & MORE **
> BrowserHawk 5.0 is here! This component makes it easy to build
cross-browser
> friendly web pages. Easily detect plug-ins, screen and browser window
size,
> *disabled* cookies/JavaScript/ActiveX, DHTML, CSS, XML, SSL key sizes, and
> DNS lookups. Detects hundreds of browsers, search engines and
WAP/i-Mode/PDA
> devices with 100+ properties. Even provides BROWSER STATISTICS and reports
> not available anywhere else. Click now for a live demo and your FREE
trial!!
> http://www.cyscape.com/free.asp?q=atdy-222

  Return to Index