简单问题相信大家一定知道

redkey 2004-01-14 11:15:51
在网页如何实现使用鼠标移动到某个菜单上出现下拉式菜单的效果?
...全文
79 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
yugona 2004-01-14
  • 打赏
  • 举报
回复
给你一个示例吧

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" bgcolor="#CCCCCC" onMouseOver="Layer1.style.visibility=''" onMouseOut="Layer1.style.visibility='hidden'">
<div id="Layer1" style="position:absolute; width:100px; height:60px; z-index:1; visibility: hidden;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#BCC0F8">
<tr>
<td height="20"> </td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td height="20"> </td>
</tr>
</table>
</div></td>
<td bgcolor="#CCCCCC"> </td>
</tr>
</table>
</body>
</html>
kjah 2004-01-14
  • 打赏
  • 举报
回复
去javascript版 搜吧~
就是用div层+鼠标事件~
dugang106 2004-01-14
  • 打赏
  • 举报
回复
好象是layer的效果吧,你到百度搜索一下,有不少这方面的特效

81,114

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧