jquery導(dǎo)航制件jquery鼠標(biāo)經(jīng)過變色效果示例
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>鼠標(biāo)移到導(dǎo)航上面 當(dāng)前的LI變色 處于當(dāng)前的位置</title>
<style type="text/css">
ul,li{list-style:none;}
#nav li{display:inline-block;margin:0 5px;background:#ccc;padding:0 10px; line-height:24px;font-size:12px;float:left;}
#nav li.h_nav_over{background:red;color:#fff;}
#nav li.h_nav_over a{color:#fff;}
a{text-decoration:none;}
</style>
<script type="text/javascript" src="/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("#nav>ul>li").mouseover(function(){
$("#nav>ul>li").each(function(i){
$(this).removeClass("h_nav_over");
});
$(this).addClass("h_nav_over");
}).mouseout(function(){
$(this).addClass("h_nav_over");
});
});
</script>
</head>
<body>
<div id="nav">
<ul>
<li><a href="http://www.dbjr.com.cn" >首頁</a></li><li><a href="http://www.dbjr.com.cn/a/" >品牌商機(jī)</a></li>
<li><a href="http://www.dbjr.com.cn/" >精品商機(jī)</a></li><li><a href="http://www.dbjr.com.cn/" >最新商機(jī)</a></li>
<li><a href="http://www.dbjr.com.cn/" >投資考察會</a></li><li><a href="http://www.dbjr.com.cn/" >在線交流區(qū)</a></li>
</ul>
</div>
</body>
</html>
相關(guān)文章
jquery 實現(xiàn)京東商城、凡客商城的圖片放大效果
京東商城、凡客商城的圖片放大效果很是吸引人2009-05-05jQuery實現(xiàn)鼠標(biāo)經(jīng)過提示信息的地圖熱點效果
這是一個升級版本,更新了一個在IE8里的小問題,加入了提示框的內(nèi)容自動換行處理(北京點上有演示)!估計差不多該是最后樣式了。IE6、IE8、谷歌、火狐、測試正常。2015-04-04jQuery oLoader實現(xiàn)的加載圖片和頁面效果
我們使用jQuery的ajax在頁面中就像使用iframe一樣加載其他頁面內(nèi)容,今天我給大家分享一個名叫jQuery oLoader的插件,該插件還集成了oPageLoader,可以輕松實現(xiàn)加載圖片和頁面的漂亮效果。2015-03-03