js代码贴出来
[html]<script type="text/javascript">
function ClickMenu(diving) {
//alert(diving);
if (document.getElementById(diving).style.display == "none") {
document.getElementById(diving).style.display = ‘block’;
}
else {
document.getElementById(diving).style.display = ‘none’;
}
}
</script>[/html]
div代码
[html]
<div class="banner2"><a onclick="ClickMenu(‘TreeNode0’)">点击文字</a></div>
<!– 下边是影藏点击显示的div –>
<div id="TreeNode0" class="bannermid" style="display:none">
<div class="banner30"><a href="media.php" target="Right">宣传片zhi</a></div> </div>
[/html]
原文链接:https://www.um80.com/385.htm,转载请注明出处。
评论0