[WEB4LIB] How do they do this: coloring page
Justin Rounds
jrounds at uchicago.edu
Wed Dec 22 11:45:35 EST 2004
I'm not sure what they're doing on the server-side to "color" the image,
but since the image-type input object (in this case the flag) by default
passes the mouse coordinates as form data, they are most likely using
the coordinates to determine which area is to be filled in. Exactly
*how* they are filling it in is a mystery to me, but something similar
could probably be done fairly easily with php and the gd library
(although since I have no experience working with gd I cannot say for sure).
Of course it would be easier to do it in flash or with a java applet,
but I think the server-side approach presents a much more interesting
challenge. ;)
_
j
Joan Graham wrote:
> http://www.coloring.com/working/begin.cdc?img=wavingflag
>
> New York Public Library links to this page for children to "color" by
> clicking on a color, then clicking in an area of the picture to fill
> in the color automatically. Our library would like to know how to do
> a page like this on our own. Do any of you know how they do it? TIA
>
> Joan K. Graham, Webmaster/Trainer Stark County District Library 715
> Market Ave North Canton Ohio 44702 (330) 458-3151 FAX: (330) 452-0403
> E-mail: jgraham at starklibrary.org Web site:
> http://www.starklibrary.org
>
>
>
>
>
--
-------------------------------------------
Justin Rounds
Graphic Design and Digital Media Specialist
Digital Library Development Center
University of Chicago
1100 East 57th Street
Chicago, Illinois 60637
(773)702-4391
-------------------------------------------
More information about the Web4lib
mailing list