Hmmmm, I didn;t know you wanted to animate anything... but this could be
achieved through CSS/DHMTL.  And if you're going that way, the images
themselves could be replaced with dynamically sized DIVs.

DHTML isn't my thing though... check out some CSS newsgroups, and of course
be prepared for lack of browser support of DHTML :)


Justin French
--------------------
Creative Director
http://Indent.com.au
--------------------



on 12/04/02 12:54 PM, Ian ([EMAIL PROTECTED]) wrote:

> how do you then animate that?
> ----- Original Message -----
> From: "Justin French" <[EMAIL PROTECTED]>
> To: "Ian" <[EMAIL PROTECTED]>
> Sent: Thursday, April 11, 2002 7:29 PM
> Subject: Re: [PHP] Making graphics
> 
> 
>> If you take a single coloured pixle (1x1), you can stretch it to any size
>> via <IMG>'s height and width attributes.  No GC, no PHP, no JavaScript!!
>> 
>> <?
>> $bar1height = 80;
>> $bar2height = 25;
>> $bar3height = 49;
>> ?>
>> <IMG SRC="blue.gif" height="<?=$bar1height?>" width="20">
>> <IMG SRC="green.gif" height="<?=$bar2height?>" width="20">
>> <IMG SRC="red.gif" height="<?=$bar3height?>" width="20">
>> 
>> 
>> This would produce a three bar graph, and with the use of align and
> perhaps
>> tables, they could be arranged into a reasonable graph representation
> using
>> tiny images, and virtualy no server-side programming.
>> 
>> The height vars could be established via PHP calculations, values for a
>> table, etc etc.
>> 
>> 
>> Justin French
>> --------------------
>> Creative Director
>> http://Indent.com.au
>> --------------------
>> 
>> 
>> 
>> 
>> on 12/04/02 3:56 AM, Ian ([EMAIL PROTECTED]) wrote:
>> 
>>> modifying the width or height of an image in javascript works well
> also....i
>>> cant imagine why youd want to do this serverside....
>>> 
>>> 
>>> "Christoph Starkmann" <[EMAIL PROTECTED]> wrote in message
>>> B120D7EC8868D411A63D0050040EDA77111BEE@XCHANGE">news:B120D7EC8868D411A63D0050040EDA77111BEE@XCHANGE...
>>>> Hi Ron!
>>>> 
>>>>> Here is what I want to do.....
>>>>> 
>>>>> I am taking a poll and I would like to display the results in
>>>>> a bar graph
>>>>> format.  What is the best way to do this.....hopefully you
>>>>> will not say GD
>>>>> library!
>>>> 
>>>> If you don't like GD, why not try Flash instead? ;))
>>>> 
>>> 
>>> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to