求助 dreamweaver高手 请问下网页中的选择性显示是通过层的可见性来实现的么?
比如给出一列字母ABCD点击A时显示的内容为abonnementappleanoyed点击B时显示的内容为buybunnyball以此类似。。。。。小妹先谢谢啦...
比如 给出一列字母 A B C D
点击A时 显示的内容 为 abonnement apple anoyed
点击B时 显示的内容 为 buy bunny ball
以此类似。。。。。
小妹 先谢谢啦 展开
点击A时 显示的内容 为 abonnement apple anoyed
点击B时 显示的内容 为 buy bunny ball
以此类似。。。。。
小妹 先谢谢啦 展开
1个回答
展开全部
<script type="text/javascript">
function mouseOver1()
{document.getElementById('b1').src ="images/weibo1hover.gif"}
function mouseOver2()
{document.getElementById('b2').src ="images/weibo2hover.gif"}
function mouseOver4()
{document.getElementById('b4').src ="images/weibo4hover.gif"}
function mouseOut1()
{document.getElementById('b1').src ="images/weibo1.gif"}
function mouseOut2()
{document.getElementById('b2').src ="images/weibo2.gif"}
function mouseOut4()
{document.getElementById('b4').src ="images/weibo4.gif"}
</script>
<div id="fen1"><a href="#" target="_blank" onmouseover="mouseOver1()" onmouseout="mouseOut1()">
<img src="images/weibo1.gif" name="b1" border="0" id="b1" ></a></div>
<div id="fen2"><a href="#" target="_blank" onmouseover="mouseOver2()" onmouseout="mouseOut2()">
<img src="images/weibo2.gif" name="b2" border="0" id="b2" ></a></div>
<div id="fen4"><a href="#" target="_blank" onmouseover="mouseOver4()" onmouseout="mouseOut4()">
<img src="images/weibo4.gif" name="b4" border="0" id="b4" ></a></div>
function mouseOver1()
{document.getElementById('b1').src ="images/weibo1hover.gif"}
function mouseOver2()
{document.getElementById('b2').src ="images/weibo2hover.gif"}
function mouseOver4()
{document.getElementById('b4').src ="images/weibo4hover.gif"}
function mouseOut1()
{document.getElementById('b1').src ="images/weibo1.gif"}
function mouseOut2()
{document.getElementById('b2').src ="images/weibo2.gif"}
function mouseOut4()
{document.getElementById('b4').src ="images/weibo4.gif"}
</script>
<div id="fen1"><a href="#" target="_blank" onmouseover="mouseOver1()" onmouseout="mouseOut1()">
<img src="images/weibo1.gif" name="b1" border="0" id="b1" ></a></div>
<div id="fen2"><a href="#" target="_blank" onmouseover="mouseOver2()" onmouseout="mouseOut2()">
<img src="images/weibo2.gif" name="b2" border="0" id="b2" ></a></div>
<div id="fen4"><a href="#" target="_blank" onmouseover="mouseOver4()" onmouseout="mouseOut4()">
<img src="images/weibo4.gif" name="b4" border="0" id="b4" ></a></div>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询