start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: hidden Chapter 10
The CGI.pm Module
Next: Reference: import_names
 

image_button

 
print
 
$query

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

Generates a clickable image map.

name

The name to use. When clicked, the x,y position is returned as name.x and 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.


Previous: Reference: hidden Perl in a Nutshell Next: Reference: import_names
Reference: hidden Book Index Reference: import_names

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.