Jump to content

[SOLVED] Variable Coords in Image Map


sarkocreme

Recommended Posts

www.finalnod.com/testmap.php

 

The full code of that file is:

<?

echo"<IMG SRC='map.php' border='0' usemap='#shapes'>

<map name='shapes'>";

 

for($a=0; $a<=40; $a++)

{

for($b=0; $b<=40; $b++)

{

echo "<area shape='rect' coords='".($a*6).",".($b*6).",".($a*6+5).",".($b*6+5)."' href='move.php' title='".$a.",".$b."'><area shape='default' nohref>";

}

}

echo '</map>';

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.