search
HomeWeb Front-endJS Tutorialjsp js move the mouse to the specified area to display the tab and hide it when leaving the example

-1. The complete code of the pop-up navigation menu on the right

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf8" /> 
<title>右侧弹出导航菜单--柯乐义</title> 
<style type="text/css"> 
.my_left_category{ 
width:150px; 
font-size:12px; 
font-family:arial,sans-serif; 
letter-spacing:2px; 
} 
.my_left_category h1{ 
background-image:url(http://www.keleyi.com/keleyi/phtml/rightmenu/top.gif); 
height:20px; 
background-repeat:no-repeat; 
font-size:14px; 
font-weight:bold; 
padding-left:15px; 
padding-top:8px; 
margin:0px; 
color:#FFF; 
} 
.my_left_category .my_left_cat_list{ 
width:148px; 
border-color:#b60134; 
border-style:solid; 
border-width:0px 1px 1px 1px; 
line-height:13.5pt; 
} 
.my_left_category .my_left_cat_list h2 { 
margin:0px; 
padding:3px 5px 0px 9px; 
} 
.my_left_category .my_left_cat_list h2 a { 
color:#d6290b; 
font-weight:bold; 
font-size:14px; 
line-height:22px; 
} 
.my_left_category .my_left_cat_list h2 a:hover { 
color:#d6290b; 
font-weight:bold; 
font-size:14px; 
line-height:22px; 
} 
.my_left_category .h2_cat{ 
width:148px; 
height:26px; 
background-image:url(http://www.keleyi.com/keleyi/phtml/rightmenu/right.gif); 
background-repeat:no-repeat; 
line-height:26px; 
font-weight:normal; 
color:#333333; 
position:relative; 
} 
.my_left_category .h2_cat_1{ 
width:148px; 
height:26px; 
background-image:url(http://www.keleyi.com/keleyi/phtml/rightmenu/line.gif); 
background-repeat:no-repeat; 
line-height:26px; 
font-weight:normal; 
color:#333333; 
position:relative; 
} 
.my_left_category a{ 
font:12px; 
text-decoration:none; 
color:#333333; 
} 
.my_left_category a:hover{ 
text-decoration:underline; 
color:#ff3333; 
} 
.my_left_category h3{ 
margin:0px; 
padding:0px; 
height:26px; 
font-size:12px; 
font-weight:normal; 
display:block; 
padding-left:8px; 
} 
.my_left_category h3 span{color:#999999; width:145px; float:right;} 
.my_left_category h3 a{ line-height:26px;} 
.my_left_category .h3_cat{ 
display:none; 
width:204px; 
position:absolute; 
left:123px; 
margin-top:-26px; 
cursor:auto; 
} 
.my_left_category .shadow{ 
position:inherit; 
background:url(http://www.keleyi.com/keleyi/phtml/rightmenu/back.gif) left top; 
width:204px; 
} 
.my_left_category .shadow_border{ 
position:inherit; 
width:200px; 
border:1px solid #959595; margin-top:1px; 
border-left-width:0px; 
background:url(http://www.keleyi.com/keleyi/phtml/rightmenu/height.gif) no-repeat 0px 21px; 
background-color:#ffffff; 
margin-bottom:3px 
} 
.my_left_category .shadow_border ul{margin:0; padding:0; margin-left:15px} 
.my_left_category .shadow_border ul li { 
list-style:none; 
padding-left:10px; 
background-image:url(http://www.keleyi.com/keleyi/phtml/rightmenu/justright.gif); 
background-repeat:no-repeat; 
background-position:0px 8px; 
float:left; 
width:75px; 
height:26px; 
overflow:hidden; 
letter-spacing:0px; 
} 
.my_left_category .active_cat{ z-index:99;background-position:0 -25px;cursor:pointer;} 
.my_left_category .active_cat h3 { font-weight:bold} 
.my_left_category .active_cat h3 span{ display:none;} 
.my_left_category .active_cat div{display:block;} 
</style> 
</head> 
<body> 
<div class="my_left_category"> 
<h1 id="分类导航">分类导航</h1> 
<div class="my_left_cat_list"> 
<h2 id="a-nbsp-href-按网站类别-a"><a href="#">按网站类别</a></h2> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-企业建站-a"><a href="#">企业建站</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">LOGO设计</a></li> 
<li><a href="#">网站设计</a></li> 
<li><a href="#">网站广告</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="http://www.keleyi.com">柯乐义</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="#">SEO</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-韩国男装-a"><a href="#">韩国男装</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">LOGO设计</a></li> 
<li><a href="#">网站设计</a></li> 
<li><a href="#">网站广告</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="#">SEO</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-韩国童装-a"><a href="#">韩国童装</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">LOGO设计</a></li> 
<li><a href="#">网站设计</a></li> 
<li><a href="http://www.keleyi.com">网站广告</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="http://www.keleyi.com">SEO</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<!-- again --> 
<h2 id="a-nbsp-href-按品牌选货-a"><a href="#">按品牌选货</a></h2> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-nbsp-style-color-ff-热销推荐-a"><a href="#" style="color:#ff3333;">热销推荐</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">柯乐义</a></li> 
<li><a href="#">网站设计</a></li> 
<li><a href="#">网站广告</a></li> 
<li><a href="http://www.keleyi.com">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="#">SEO</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-http-www-keleyi-com-网站建设-a"><a href="http://www.keleyi.com">网站建设</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">LOGO设计</a></li> 
<li><a href="#">网站设计</a></li> 
<li><a href="#">网站广告</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="#">SEO</a></li> 
<li><a href="#">网站制作</a></li> 
<li><a href="#">LOGO设计</a></li> 
<li><a href="#">网站设计</a></li> 
<li><a href="#">网站广告</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="#">SEO</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="#">LOGO设计</a></li> 
<li><a href="#">网站设计网站设计网站设计网站设计</a></li> 
<li><a href="#">网站广告</a></li> 
<li><a href="#">推广</a></li> 
<li><a href="#">建网站</a></li> 
<li><a href="#">网站推广</a></li> 
<li><a href="#">网站建设</a></li> 
<li><a href="#">SEOqqqqqqqqeeeeqqqqqqq</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-网站程序-a"><a href="#">网站程序</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">PHP</a></li> 
<li><a href="#">ASP</a></li> 
<li><a href="#">JSP</a></li> 
<li><a href="#">ASP.Net</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<div class="h2_cat_1" onmouseover="this.className=&#39;h2_cat_1 active_cat&#39;" onmouseout="this.className=&#39;h2_cat_1&#39;"> 
<h3 id="a-nbsp-href-其他网站-a"><a href="#">其他网站</a></h3> 
</div> 
<!-- again --> 
<h2 id="a-nbsp-href-按价格选货-a"><a href="#">按价格选货</a></h2> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-低端价位-a"><a href="#">低端价位</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">50元以下</a></li> 
<li><a href="#">50-100元</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<div class="h2_cat" onmouseover="this.className=&#39;h2_cat active_cat&#39;" onmouseout="this.className=&#39;h2_cat&#39;"> 
<h3 id="a-nbsp-href-http-www-keleyi-com-中高端价位-a"><a href="http://www.keleyi.com">中高端价位</a></h3> 
<div class="h3_cat"> 
<div class="shadow"> 
<div class="shadow_border"> 
<ul> 
<li><a href="#">100-150元</a></li> 
<li><a href="#">150-200元</a></li> 
<li><a href="#">200-300元</a></li> 
<li><a href="#">300元以上</a></li> 
</ul> 
</div> 
</div> 
</div> 
</div> 
<!-- again --> 
<h2 id="a-nbsp-href-超值特价区-a"><a href="#">超值特价区</a></h2> 
<h2 id="a-nbsp-href-现货区-a"><a href="#">现货区</a></h2> 
</div> 
</div> 
</body> 
</html> 

0、下方弹出导航菜单代码 
复制代码代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>css+div+js下拉菜单导航--柯乐义</title> 
<style type="text/css"> 
*{margin:0;padding:0;list-style-type:none;} 
body{padding:0;margin:0;font-size:12px;color:#fff;font-family:arial, helvetica, sans-serif;background:#fff;} 
#nav{left:0px;right:0px;width:600px;position:fixed;margin-left:auto;margin-right:auto;top:175px;height:30px;} 
#nav li{float:left;text-align:center;} 
#nav li a{float:left;width:100px;color:#336601;text-decoration:none;padding:3px 5px 0 5px;} 
#nav li a:hover{float:left;width:88px;color:#fff;background:#539d26;text-decoration:none;padding:3px 3px 0 20px;} 
.list{font-weight:normal;line-height:20px;text-align:left;padding:4px;} 
.menu1{border:#9cdd75 1px solid;overflow-y:hidden;margin:6px 4px 0px 0px;width:120px;cursor:pointer;color:#336601;padding-top:6px;background:#f1fbec;moz-opacity:0.7;filter:alpha(opacity=70);opacity:0.7;} 
.menu2{border:#eee8dd 1px solid;overflow-y:hidden;margin:6px 4px 0px 0px;width:120px;cursor:pointer;color:#999;padding-top:6px;height:18px;background:#f5f5f5;} 
</style> 
</head> 
<body> 
<div style="position:fixed;top:0px;"><script type="text/javascript"><!-- 
google_ad_client = "ca-pub-7740261255677392"; 
google_ad_slot = "8839078091"; 
google_ad_width = 728; 
google_ad_height = 90; 
//--> 
</script> 
<script type="text/javascript" 
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 
</script> 
</div> 
<div id="nav"> 
<ul> 
<li onmouseout="this.className=&#39;menu2&#39;" onmouseover="this.className=&#39;menu1&#39;" class="menu2">Javascript 
<div class="list"> 
<a href="http://www.keleyi.com/a/bjac/687f154f53ab3aef.htm" target="_blank">js中substring</a><br /> 
<a href="http://www.keleyi.com/a/bjac/ff33a0656183eba.htm" target="_blank">客户端代码着色</a><br /> 
<a href="http://www.keleyi.com/a/bjac/6e893bbacf5184f3.htm" target="_blank">js实现代码着色</a><br /> 
<a href="http://www.keleyi.com/a/bjac/21e2e5321077656f.htm" target="_blank">11个js技巧</a><br /> 
<a href="http://www.keleyi.com/a/bjac/d32ac9822ef75ef9.htm" target="_blank">tab切换样式</a><br /> 
<a href="http://www.keleyi.com/a/bjac/fca5ac722271d2d5.htm" target="_blank">js获取可见域宽</a><br /> 
<a href="http://www.keleyi.com/a/bjac/ade2f3941bd75ba.htm" target="_blank">js导航菜单</a> 
</div> 
</li> 
<li onmouseout="this.className=&#39;menu2&#39;" onmouseover="this.className=&#39;menu1&#39;" class="menu2">jQuery 
<div class="list"> 
<a href="http://www.keleyi.com/a/bjac/13639353acde40c.htm" target="_blank">左侧可弹出div</a><br /> 
<a href="http://www.keleyi.com/a/bjac/d863921ed93d03ff.htm" target="_blank">jquery修改a标签</a><br /> 
<a href="http://www.keleyi.com/a/bjac/6f008786225269ac.htm" target="_blank">纯文本返回顶部</a><br /> 
<a href="http://www.keleyi.com/a/bjac/ac398357acb82782.htm" target="_blank">jquery倒计时</a><br /> 
<a href="http://www.keleyi.com/a/bjac/88af29335890a287.htm" target="_blank">div(tab)切换</a><br /> 
<a href="http://www.keleyi.com/a/bjac/2041333085cb032d.htm" target="_blank">选项卡切换</a><br /> 
<a href="http://www.keleyi.com/a/bjac/768f469b95b61487.htm" target="_blank">单行文字滚动</a><br /> 
<a href="http://www.keleyi.com/a/bjac/ed5eb8c2959c619e.htm" title="滚动页面时DIV到达顶部时固定在顶部" target="_blank">DIV到顶固定</a><br /> 
<a href="http://www.keleyi.com/a/bjac/a6d651710217f7a0.htm" title="使用jQuery UI修饰title属性的气泡悬浮框" target="_blank">修饰title气泡</a> 
</div> 
</li> 
<li onmouseout="this.className=&#39;menu2&#39;" onmouseover="this.className=&#39;menu1&#39;" class="menu2">C# 
<div class="list"> 
<a href="http://www.keleyi.com/a/bjac/e3ce4526c3fcaf8f.htm" target="_blank">删除文本空白行</a><br /> 
<a href="http://www.keleyi.com/a/bjac/94190f87387a868a.htm" target="_blank">生成图片验证码</a><br /> 
<a href="http://www.keleyi.com/a/bjac/954abc0d69092dc1.htm" title=".NET生成固定长度的唯一字符串(以8位为例)" target="_blank">生成唯一字符串</a><br /> 
<a href="http://www.keleyi.com/a/bjac/c4dd6879a4a4fb36.htm" target="_blank">向文件写入文本</a><br /> 
<a href="http://www.keleyi.com/a/bjac/d09a76fa32100d7.htm" target="_blank">用IgnoreRoute忽略路径</a><br /> 
<a href="http://www.keleyi.com/a/bjac/84d4e8554b88f61.htm" target="_blank">RouteCollection类</a><br /> 
<a href="http://www.keleyi.com/a/bjac/c8e988b2eb520f4b.htm" target="_blank">柯乐义图片压缩类</a> 
</div> 
</li> 
<li onmouseout="this.className=&#39;menu2&#39;" onmouseover="this.className=&#39;menu1&#39;" class="menu2">CMS 
<div class="list"><a href="http://www.keleyi.com/a/bjac/9d5534156d5814fc.htm" target="_blank">KeleyiCMS更新</a><br /> 
<a href="http://www.keleyi.com/a/bjac/2916901353b081f1.htm" target="_blank">柯乐义留言板介绍</a> 
</div> 
</li> 
</ul> 
</div> 
</body> 
</html>
1.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>无标题文档</title> 
<style> 
*{ 
padding:0; 
margin:0; 
} 
#tab 
{ 
width:400px; 
position:relative; 
margin:0 auto; 
margin-top:100px; 
} 
#tab div 
{ 
display:none;/*让选项卡内容在没有激活的时候不显示*/ 
position:absolute; 
top:24px;/*选项卡标题的高度是24px*/ 
left:0; 
width:398px; 
border:solid #d4d3d3; 
border-width:0 1px 1px; 
} 
#tab .blank 
{ 
display:block; 
padding-bottom:10px;/*让激活的选项卡内容区域最低端的文字不贴着元素底部*/ 
} 
#tab h3 
{ 
width:98px; 
float:left; 
height:24px; 
border:1px solid #cccccc; 
text-align:center; 
font-size:14px; 
font-weight:normal; 
line-height:24px; 
background:url(images/51.jpg) no-repeat; 
cursor:pointer;/*让鼠标移动到选项卡标题上的时候变成手的形状*/ 
} 
#tab .up 
{ 
background:url(images/61.jpg) no-repeat; 
} 
#tab ul 
{ 
margin:15px 0 0;/*让列表项文字离选项卡标题的下端远一点*/ 
padding:0; 
} 
#tab ul,#tab li 
{ 
list-style:none; 
} 
#tab li 
{ 
width:47.9%;/*这里用百分比的作用可以解决IE6中的宽度解析问题*/ 
height:22px; 
line-height:22px;/*这两行的作用是设置li的高度,并将li中的文字内容上下居中显示*/ 
float:left; 
margin:0 1%; 
border-bottom:1px dashed #cccccc; 
text-indent:10px; 
display:inline;/*修改IE6中的双倍间距的bug问题*/ 
white-space:nowrap; 
text-overflow:ellipsis; 
overflow: hidden;/*这三行的作用是,如果li中的文字内容超过li的大小,则超出的部分用省略号显示*/ } 
#tab li a 
{ 
font-size:12px; 
text-decoration:none; 
color:#333333; 
text-indent:10px; 
} 
#tab li a:hover 
{ 
text-decoration:underline; 
color:red; 
} 
#tab a:hover h3 
{ 
border:1px solid #cccccc; 
border-bottom:0px; 
} 
</style> 
</head><body> 
<div id="tab"> 
<!--选项卡标题开始--> 
<h3 id="选项一">选项一</h3> 
<!--选项卡标题结束--> 
<!--选项卡内容开始--> 
<div class="blank"> 
<ul> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
<li><a href="#" title="超银行利率4倍不受保护">超银行利率4倍不受保护</a></li> 
</ul> 
</div> 
<!--选项卡内容结束--> 
<!--选项卡标题开始--> 
<h3 id="选项二">选项二</h3> 
<!--选项卡标题结束--> 
<!--选项卡内容开始--> 
<div> 
<ul> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
<li><a href="#" title="欧洲央行前副行长出任希腊总理今日就职">欧洲央行前副行长出任希腊总理今日就职</a></li> 
</ul> 
</div> 
<!--选项卡内容结束--> 
<!--选项卡标题开始--> 
<h3 id="选项三">选项三</h3> 
<!--选项卡标题结束--> 
<!--选项卡内容开始--> 
<div> 
<ul> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
<li><a href="#" title="新观察:底层社会我们了解多少">新观察:底层社会我们了解多少</a></li> 
</ul> 
</div> 
<!--选项卡内容结束--> 
<!--选项卡标题开始--> 
<h3 id="选项四">选项四</h3> 
<!--选项卡标题结束--> 
<!--选项卡内容开始--> 
<div> 
<ul> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
<li><a href="#" title="俄罗斯将于明夏加入世界贸易">俄罗斯将于明夏加入世界贸易组织</a></li> 
</ul> 
</div> 
<!--选项卡内容结束--> 
</div> 
<script type="text/javascript"> 
<!-- 
var h=document.getElementById("tab").getElementsByTagName("h3"); 
var d=document.getElementById("tab").getElementsByTagName("div"); 
function go_to(ao) 
{ 
for(var i=0;i<h.length;i++) 
{ 
if(ao-1==i) 
{ 
h[i].className="up"; 
d[i].className="blank"; 
} 
else 
{ 
h[i].className=" "; 
d[i].className=" "; 
} 
} 
} 
//--> 
</script> 
</body> 
</html>

2. For the tab, use

  • the first one
  • < ;li>Second
<script language="javascript" type="text/javascript"> 
window.onload = function(){ 
var li = document.getElementById("myItem").getElementsByTagName("li"); 
for(var i=0;i<li.length;i++){ 
(function(){ 
li[a].onmouseover = function(){ 
this.style.display="block"; 
} 
li[a].onmouseout = function(){ 
this.style.display ="none"; 
} 
})(i); 
} 
} 
</script>


3、

<script type="text/javascript"> 
function displaySubMenu(ITstudy_cn) { 
var subMenu = document.getElementById(ITstudy_cn); 
subMenu.style.display = "block"; 
} 
function hideSubMenu(ITstudy_cn) { 
var subMenu = document.getElementById(ITstudy_cn); 
subMenu.style.display = "none"; 
} 
</script> 
<style> 
* { padding:0; margin:0;} 
body { text-align: center; font-family: "宋体",arial;border: 0; background: #FFF; font-size:12px; color:#000;} 
/* 页头下拉菜单 */ 
#navigation { 
margin:2px; 
} 
#navigation, #navigation li ul { 
list-style-type:none; 
} 
#navigation li { 
float:left; text-align:center; position:relative; 
} 
#navigation li a:link, #navigation li a:visited { 
display:block; text-decoration:none; 
} 
#navigation li a:hover { 
color:#fff; background:#2687eb; 
} 
#navigation li ul li a:hover { 
color:#990000; background:#d6ecfd; text-decoration:underline; 
} 
#navigation li ul { 
display:none; position:absolute; width:90px; 
top:13px; left:-45px; padding:5px; border:1px solid #d6ecfd;background-color:#f2f9fe; 
} 
</style> 
<ul id="navigation"> 
<li ><a href=" http://www.itstudy.cn">首页</a></li> 
<li>  |   </li> 
<li onMouseOver="displaySubMenu(&#39;fg&#39;)" onMouseOut="hideSubMenu(&#39;fg&#39;)" > 
<a href="javascript:void(0);" >风格</a> 
<ul id="fg"> 
<li><a href="javascript:" >恢复默认设置</a></li> 
<li><a href="javascript:" >深度空间风格</a></li> 
<li><a href="javascript:" >IT学习网风格</a></li> 
</ul> 
</li> 
<li>     </li> 
</ul>

More jsp js Move the mouse to the specified area to display the tab and hide it when leaving For examples related articles, please pay attention to the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
JavaScript's Core: Is It Built on C or C  ?JavaScript's Core: Is It Built on C or C ?May 05, 2025 am 12:07 AM

JavaScriptisnotbuiltonCorC ;it'saninterpretedlanguagethatrunsonenginesoftenwritteninC .1)JavaScriptwasdesignedasalightweight,interpretedlanguageforwebbrowsers.2)EnginesevolvedfromsimpleinterpreterstoJITcompilers,typicallyinC ,improvingperformance.

JavaScript Applications: From Front-End to Back-EndJavaScript Applications: From Front-End to Back-EndMay 04, 2025 am 12:12 AM

JavaScript can be used for front-end and back-end development. The front-end enhances the user experience through DOM operations, and the back-end handles server tasks through Node.js. 1. Front-end example: Change the content of the web page text. 2. Backend example: Create a Node.js server.

Python vs. JavaScript: Which Language Should You Learn?Python vs. JavaScript: Which Language Should You Learn?May 03, 2025 am 12:10 AM

Choosing Python or JavaScript should be based on career development, learning curve and ecosystem: 1) Career development: Python is suitable for data science and back-end development, while JavaScript is suitable for front-end and full-stack development. 2) Learning curve: Python syntax is concise and suitable for beginners; JavaScript syntax is flexible. 3) Ecosystem: Python has rich scientific computing libraries, and JavaScript has a powerful front-end framework.

JavaScript Frameworks: Powering Modern Web DevelopmentJavaScript Frameworks: Powering Modern Web DevelopmentMay 02, 2025 am 12:04 AM

The power of the JavaScript framework lies in simplifying development, improving user experience and application performance. When choosing a framework, consider: 1. Project size and complexity, 2. Team experience, 3. Ecosystem and community support.

The Relationship Between JavaScript, C  , and BrowsersThe Relationship Between JavaScript, C , and BrowsersMay 01, 2025 am 12:06 AM

Introduction I know you may find it strange, what exactly does JavaScript, C and browser have to do? They seem to be unrelated, but in fact, they play a very important role in modern web development. Today we will discuss the close connection between these three. Through this article, you will learn how JavaScript runs in the browser, the role of C in the browser engine, and how they work together to drive rendering and interaction of web pages. We all know the relationship between JavaScript and browser. JavaScript is the core language of front-end development. It runs directly in the browser, making web pages vivid and interesting. Have you ever wondered why JavaScr

Node.js Streams with TypeScriptNode.js Streams with TypeScriptApr 30, 2025 am 08:22 AM

Node.js excels at efficient I/O, largely thanks to streams. Streams process data incrementally, avoiding memory overload—ideal for large files, network tasks, and real-time applications. Combining streams with TypeScript's type safety creates a powe

Python vs. JavaScript: Performance and Efficiency ConsiderationsPython vs. JavaScript: Performance and Efficiency ConsiderationsApr 30, 2025 am 12:08 AM

The differences in performance and efficiency between Python and JavaScript are mainly reflected in: 1) As an interpreted language, Python runs slowly but has high development efficiency and is suitable for rapid prototype development; 2) JavaScript is limited to single thread in the browser, but multi-threading and asynchronous I/O can be used to improve performance in Node.js, and both have advantages in actual projects.

The Origins of JavaScript: Exploring Its Implementation LanguageThe Origins of JavaScript: Exploring Its Implementation LanguageApr 29, 2025 am 12:51 AM

JavaScript originated in 1995 and was created by Brandon Ike, and realized the language into C. 1.C language provides high performance and system-level programming capabilities for JavaScript. 2. JavaScript's memory management and performance optimization rely on C language. 3. The cross-platform feature of C language helps JavaScript run efficiently on different operating systems.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment