(keitai-l) Re: P502i image size

From: Juergen Specht <js_at_anima.de>
Date: 09/27/00
Message-ID: <39D131EE.992702C4@anima.de>
Renfield Kuroda wrote:
> Actually I change the graph size according the handset, too. So for NM502i
> the cgi sends a small black and white gif, but for D502 it sends color
> graph, and for N502 it sends a larger grayscale, so I cannot hardcode the
> w and h in the img tag...
You don't have to hardcode it. If you want dynamically changed
graphics with dynamically changed parameters, you need dynamically
changed pages, not static ones:

1. Check which handset 
2. define size of graphic and define $width / $height
3. generate page like this:

<img src="$image" width="$width" height="$height">

gotcha!

Good luck.

Juergen
Received on Wed Sep 27 02:25:56 2000