in reply to Creating an image map using Perl code
Try printing your html:
Accessing an array element still needs a sigil: x_points[$secondcount] doesn't work, you meant to say $x_points[$secondcount].## Previous code to find x coordinates, y coordinates ## and website names my @x_points; my @y_points; my @websites; my $secondcount; print q( <IMG SRC="figure.gif" USEMAP="#mymap"> <MAP NAME="mymap"> ); for ($secondcount=1; $secondcount <= $webpage_no; $secondcount++) { print qq( <AREA SHAPE=circle COORDS="'$x_points[$secondcount],$y_ +points[$secondcount],1" HREF="'$websites[$secondcount]"> ); } print q( </MAP> );
Oh, and why do you start counting at 1?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating an image map using Perl code
by lampros21_7 (Scribe) on Apr 06, 2006 at 01:45 UTC | |
by rhesa (Vicar) on Apr 06, 2006 at 01:56 UTC | |
by ikegami (Patriarch) on Apr 06, 2006 at 03:09 UTC |