jQuery實現Flash效果上下翻動的中英文導航菜單代碼
更新時間:2015年09月22日 10:10:28 作者:企鵝
這篇文章主要介紹了jQuery實現Flash效果上下翻動的中英文導航菜單代碼,實例分析了jQuery基于鼠標hover事件控制頁面元素動畫效果的相關技巧,具有一定參考借鑒價值,需要的朋友可以參考下
本文實例講述了jQuery實現Flash效果上下翻動的中英文導航菜單代碼。分享給大家供大家參考。具體如下:
這是一款jQuery實現Flash效果鼠標感應式的翻動導航菜單,支持中英文切換,所使用的jQuery類庫版本為1.3.2。
運行效果截圖如下:

在線演示地址如下:
http://demo.jb51.net/js/2015/jquery-flash-style-sx-cha-chen-menu-codes/
具體代碼如下:
<!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>jQuery仿Flash鼠標感應式翻動的導航菜單</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<style type="text/css">
body{width:100%;height:100%;margin:0;padding:0;background:url(images/bg.gif) repeat-x top center;font-size:12px;color:#616161;}
a,a:link,a:visited,a:active{color:#616161;text-decoration:none;}
a:hover{text-decoration:underline;color:#710075;}
#body{ width:100%;float:left;}
.index_top{width:930px;height:126px;position:relative;z-index:1;}
no-repeat 0 0;position:absolute;top:46px;left:41px;z-index:50;}
#index_nav{margin:82px 0;float:left;display:inline;}
#index_nav ul{float:left;height:34px;display:inline;margin:0 0 0 0px;list-style-type:none;}
#index_nav li{float:left;height:34px;width:100px;font-size:13px;font-family:Verdana;line-height:34px;text-align:center;cursor:pointer;color:#fff;}
#index_nav_cases a,#index_nav_cases a:link,#index_nav_cases a:visited,#index_nav_cases a:active{color:#fff;}
#index_nav_cases a:hover{text-decoration:none;}
#index_nav li div{height:34px;width:100px;overflow:hidden;position:relative;}
#index_nav li div .n1,#index_nav li div .n2{display:block;height:34px;width:100px;position:absolute;top:0px;left:0px;cursor:pointer;}
#index_nav li div .n1{z-index:12;background:url(images/nav_bg.gif) repeat-x top center;font-size:13px;}
#index_nav li div .n2{z-index:11;background:url(images/nav_bg.gif) repeat-x top center;}
#index_nav li div a{color:#fff;}
#index_nav li div a:hover{text-decoration:none;}
</style>
<script type="text/javascript" src="jquery1.3.2.js"></script>
<script type="text/javascript">
jQuery(function(){
jQuery('#index_nav li').hover(
function(){
jQuery(this).find('.n1').stop().animate({opacity:'0',top:'43px'});
},
function(){
jQuery(this).find('.n1').stop().animate({opacity:'1',top:'0px'});
}
);
});
</script>
</head>
<body>
<span style="color:#FFFFFF;"> 友情提示:若提示網頁有錯或看不到效果,請刷新網頁后再試!</span><br>
<div id="body">
<div id="index_content">
<div class="index_top">
<div id="index_nav">
<ul>
<li id="index_nav_about"><div><span class="n1">關 于</span><span class="n2">About</span></div></li>
<li id="index_nav_service"><div><span class="n1">服 務</span><span class="n2">Services</span></div></li>
<li id="index_nav_cases"><div><a href="#"><span class="n1">案 例</span><span class="n2">Cases</span></a></div></li>
<li id="index_nav_adva"><div><span class="n1">優(yōu) 勢</span><span class="n2">Advantages</span></div></li>
<li id="index_nav_contact"><div><span class="n1">聯 系</span><span class="n2">Contact</span></div></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
希望本文所述對大家的jQuery程序設計有所幫助。
您可能感興趣的文章:
- PHP結合JQueryJcrop實現圖片裁切實例詳解
- 基于jQuery的圖片剪切插件
- jquery imgareaselect 使用利用js與程序結合實現圖片剪切
- php+flash+jQuery多圖片上傳源碼分享
- jQuery模擬完美實現經典FLASH導航動畫效果【附demo源碼下載】
- jquery+easeing實現仿flash的載入動畫
- 基于jQuery的仿flash的廣告輪播代碼
- JQuery上傳插件Uploadify使用詳解及錯誤處理
- Jquery插件之多圖片異步上傳
- Jquery ajaxsubmit上傳圖片實現代碼
- jQuery Ajax文件上傳(php)
- jQuery實現模擬flash頭像裁切上傳功能示例
相關文章
JQuery中判斷一個元素下面是否有內容或者有某個標簽的判斷代碼
網站開發(fā)時,我們時常需要把沒有內容的標簽隱藏或者去掉。在用JQ有兩種好的解決辦法2012-02-02
兩種方法基于jQuery實現IE瀏覽器兼容placeholder效果
這篇文章主要介紹了兩種方法基于jQuery實現IE瀏覽器兼容placeholder效果,需要的朋友可以參考下2014-10-10
jQuery獲取所有父級元素及同級元素及子元素的方法(推薦)
這篇文章主要介紹了jQuery獲取所有父級元素及同級元素及子元素的方法,本文給大家介紹的非常詳細,具有參考借鑒價值 ,需要的朋友可以參考下2018-01-01

