<li><a href="/plus/list.php?tid=1" onmouseover="mopen('m1')" onmouseout="mclosetime()">关于我们</a>
<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="01.jpg" width="200" height="100" target="centerFrame" >第一选项</a>
<a href="02.jpg" width="200" height="100" target="centerFrame">第二选项</a>
<a href="3.jpg" width="200" height="100" target="displayFrame" >第三选项</a>
<a href="4.jpg" width="200" height="100" target="displayFrame" >第四选项</a>
<a href="5.jpg" width="200" height="100" target="displayFrame" >第五选项</a>
</div>
</li>
上面这个是它原本的导航菜单的其中一部分,是先点击"关于我们"后出来第一到第五五个选项,然后最好的是五个选项各自点击后链接到的图片能进行叠加,组合成一个新图,当然最少也是点击其中的两项能够叠加,本人试过无数次方法都没成功,求大神指点一二,谢过了
<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="01.jpg" width="200" height="100" target="centerFrame" >第一选项</a>
<a href="02.jpg" width="200" height="100" target="centerFrame">第二选项</a>
<a href="3.jpg" width="200" height="100" target="displayFrame" >第三选项</a>
<a href="4.jpg" width="200" height="100" target="displayFrame" >第四选项</a>
<a href="5.jpg" width="200" height="100" target="displayFrame" >第五选项</a>
</div>
</li>
上面这个是它原本的导航菜单的其中一部分,是先点击"关于我们"后出来第一到第五五个选项,然后最好的是五个选项各自点击后链接到的图片能进行叠加,组合成一个新图,当然最少也是点击其中的两项能够叠加,本人试过无数次方法都没成功,求大神指点一二,谢过了
还是将图片组装成一个大图片(可用GD实现)
<script type="text/javascript">
var z = 0;
function set(o){
document.getElementById("show").innerHTML += '<img style="position:absolute;z-index:' + z + '" src="' + o.getAttribute('pic') + '">';
z++;
}
</script>
<div id="show">
<a href="javascript:void(o)" pic="1.jpg" width="300" height="200" onclick="set(this)">第一选项</a>
<a href="javascript:void(o)" pic="2.jpg" width="200" height="200" onclick="set(this)">第二选项</a>
</div>
再帮我看看这个代码哪有问题,怎么实现不了,多谢了
<head>
<style>
.div1{
background-color: black;
width:200px;
height:400px;
}
.div2{
background-color: pink;
width:100px;
height:100px;
top:80px;
left:55px;
position: absolute;
}
.div3{
background-color: blue;
width:100px;
height:100px;
top:220px;
left:55px;
position: absolute;
}
</style>
</head><body>
<div class="div2"></div>
<div class="div3"></div>
<div class="div1"></div>
</body>
</html>看下解决你问题了米有
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>图片测试</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<frameset cols="240,*">
<frame src="temp1.html" name="navigationFrame" scrolling="Yes" noresize="noresize" title="导航" />
<frame src="" name="displayFrame" id="displayFrame" title="显示" marginwidth="0" marginheight="0"/>
</frameset>
<noframes>
<body></body>
</noframes>
</html>
我现在的导航菜单就是temp1.html,加里面就不行了,不知道还有没有别的方法