> I want to write a php script wich shows the user a large picture showing a
> lattice. every field of this lattice should be "clickable" & every field
> should have his own link. is this possible (generating an imagemap e.g.?)

(shrug) sure... I don't understand the need to do
it dynamically, but it can be done.


client-side image map syntax:

<img src='myimage.gif' usemap='#mapname'>
<map name='mapname'>
    <area [shape='shapename'] COORDS='x,y,...' [href='linkURL' | nohref]>
    ...
</map>

shape can be rect, circle, or poly; default is rect.
    for rect, coords are left,top,right,bottom
    for circle coords are x,y,radius
    for poly, coords are x1,y1,x2,y2,....

href is the link to go to; nohref means do nothing (this
can be useful for putting 'cutout' areas in the image map).

any number of areas can be defined, with earlier ones
taking precedence in case of overlap.


So you have to figure out the corner coordinates of
each section of the lattice and generate <area ...>
tags as needed.

Note: it's probably a good plan to include text links
or link to a text-based alternate page while you're
at it.



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

Reply via email to