0

Hi am stuck trying to find out why this will not work.

<html>
<head>

<title>Untitled Page</title>

<style type="text/css">
#ImageMap1
{
   border: 0px #000000 solid;
}
</style>

</head>
<body>
<div id="wb_ImageMap1" style="position:absolute;left:0px;top:0px;width:600px;height:600px;z-index:0;">

<img src="images/black.bmp" id="ImageMap1" alt="" usemap="#ImageMap1_map" border="0" style="width:600px;height:600px;">

<map name="ImageMap1_map">

   <?php 
$x = 1; $y = 1; $z = 1;$output = '';
    for($x=1;$x<79;$x++)
    {
    for($y=1;$y<79;$y++)
{
    $string = $x .','.$y.','.$z;
    $output .= '<area shape="circle" coords="'. $string . '"href="./index.html" target="_blank" alt="" yellow="">'

    echo $output;
}
}
?>
</map>
</div>
</body>
</html>

i am getting "Parse error: syntax error, unexpected T_ECHO" is there like a foreach statment missing or something ?

2
Contributors
2
Replies
16
Views
4 Years
Discussion Span
Last Post by Kniggles_1
1

To answer your question about the T_ECHO error, your code is missing a semicolon at the end of line 28.

0

this is sort of working with the added ";" However it is taking an age to load, is there a way to section it up so it loads quicker ?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.