-3
任何人都可以看到我搞乱了吗?加载时代码不会运行
我期待的输出是一个78像素x 78像素的盒子,每个像素都有一个链接到另一个页面,此刻只有第一个像素有效。
该代码加载在页面上,可以在图像下看到,这是怎么回事?
<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">
foreach ($string){
$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>
EER我加了一个PHP的标签..但这个不是PHP? – mkoryak
看起来像PHP给我。 –