Name

image_button

Synopsis

print $
                     query->image_button('name','url' [,'align'])

Generates a clickable image map.

name

The name to use. When clicked, the x , yposition is returned as name . xand name . y, respectively.

url

The URL of the image for the image map.

align

The alignment type. May be TOP, BOTTOM, or MIDDLE. Using named parameters, the syntax is:

print $query->image_button(-name=>'name',
                           -src=>'url',
                           -align=>'align',
                           -onClick=>function);
-onClick=> function

Browser should execute function when the user clicks on the image

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.