zoukankan      html  css  js  c++  java
  • Jquery仿FLASH特效超漂亮的CSS菜单

    代码简介:Jquery仿FLASH特效超漂亮的CSS菜单,很棒,类似一款WIN桌面的图标样式

    代码内容:

    <!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特效超漂亮的CSS菜单_网页代码站(www.webdm.cn)</title>
    <script type="text/javascript" src="http://www.webdm.cn/images/20100916/jquery.js"></script>
    <script type="text/javascript" src="http://www.webdm.cn/images/20100916/interface.js"></script>
    
    <style type="text/css">
        body {
    	font: 11px Arial, Helvetica, sans-serif;
    	background: #ffffff url(http://www.webdm.cn/images/20100916/main-bg.gif);
    	padding: 0;
    	margin: 0;
    }
    img {
    	border: none;
    }
    
    /* dock - top */
    .dock {
    	position: relative; 
    	height: 50px; 
    	text-align: center;
    }
    .dock-container {
    	position: absolute;
    	height: 50px;
    	background: url(http://www.webdm.cn/images/20100916/dock-bg2.gif);
    	padding-left: 20px;
    }
    a.dock-item {
    	display: block;
    	 40px;
    	color: #000;
    	position: absolute;
    	top: 0px;
    	text-align: center;
    	text-decoration: none;
    	font: bold 12px Arial, Helvetica, sans-serif;
    }
    .dock-item img {
    	border: none; 
    	margin: 5px 10px 0px; 
    	 100%; 
    }
    .dock-item span {
    	display: none; 
    	padding-left: 20px;
    }
    
    /* dock2 - bottom */
    #dock2 {
    	 100%;
    	bottom: 0px;
    	position: absolute;
    	left: 0px;
    }
    .dock-container2 {
    	position: absolute;
    	height: 50px;
    	background: url(http://www.webdm.cn/images/20100916/dock-bg.gif);
    	padding-left: 20px;
    }
    a.dock-item2 {
    	display: block; 
    	font: bold 12px Arial, Helvetica, sans-serif;
    	 40px; 
    	color: #000; 
    	bottom: 0px; 
    	position: absolute;
    	text-align: center;
    	text-decoration: none;
    }
    .dock-item2 span {
    	display: none;
    	padding-left: 20px;
    }
    .dock-item2 img {
    	border: none; 
    	margin: 5px 10px 0px; 
    	 100%; 
    }
    </style>
    
    <!--[if lt IE 7]>
     <style type="text/css">
     .dock img { behavior: url(iepngfix.htc) }
     </style>
    <![endif]-->
    
    </head>
    <body>
    <!--top dock -->
    <div class="dock" id="dock">
      <div class="dock-container">
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/home.png" alt="home" /><span>Home</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/email.png" alt="contact" /><span>Contact</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/portfolio.png" alt="portfolio" /><span>Portfolio</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/music.png" alt="music" /><span>Music</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/video.png" alt="video" /><span>Video</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/history.png" alt="history" /><span>History</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/calendar.png" alt="calendar" /><span>Calendar</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/rss.png" alt="rss" /><span>RSS</span></a>
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/rss.png" alt="rss" /><span>RSS</span></a> 
    	  <a class="dock-item" href="#"><img src="http://www.webdm.cn/images/20100916/rss2.png" alt="rss" /><span>RSS2</span></a>
      </div> 
    </div>
    
    <!--bottom dock -->
    <div class="dock" id="dock2">
      <div class="dock-container2">
    	  <a class="dock-item2" href="#"><span>Home</span><img src="http://www.webdm.cn/images/20100916/home.png" alt="home" /></a> 
    	  <a class="dock-item2" href="#"><span>Contact</span><img src="http://www.webdm.cn/images/20100916/email.png" alt="contact" /></a> 
    	  <a class="dock-item2" href="#"><span>Portfolio</span><img src="http://www.webdm.cn/images/20100916/portfolio.png" alt="portfolio" /></a> 
    	  <a class="dock-item2" href="#"><span>Music</span><img src="http://www.webdm.cn/images/20100916/music.png" alt="music" /></a> 
    	  <a class="dock-item2" href="#"><span>Video</span><img src="http://www.webdm.cn/images/20100916/video.png" alt="video" /></a> 
    	  <a class="dock-item2" href="#"><span>History</span><img src="http://www.webdm.cn/images/20100916/history.png" alt="history" /></a> 
    	  <a class="dock-item2" href="#"><span>Calendar</span><img src="http://www.webdm.cn/images/20100916/calendar.png" alt="calendar" /></a> 
    	  <a class="dock-item2" href="#"><span>Links</span><img src="http://www.webdm.cn/images/20100916/link.png" alt="links" /></a> 
    	  <a class="dock-item2" href="#"><span>RSS</span><img src="http://www.webdm.cn/images/20100916/rss.png" alt="rss" /></a> 
    	  <a class="dock-item2" href="#"><span>RSS2</span><img src="http://www.webdm.cn/images/20100916/rss2.png" alt="rss" /></a> 
      </div>
    </div>
    
    <p>
      <!--dock menu JS options -->
      <script type="text/javascript">
    	
    	$(document).ready(
    		function()
    		{
    			$('#dock').Fisheye(
    				{
    					maxWidth: 50,
    					items: 'a',
    					itemsText: 'span',
    					container: '.dock-container',
    					itemWidth: 40,
    					proximity: 90,
    					halign : 'center'
    				}
    			)
    			$('#dock2').Fisheye(
    				{
    					maxWidth: 60,
    					items: 'a',
    					itemsText: 'span',
    					container: '.dock-container2',
    					itemWidth: 40,
    					proximity: 80,
    					alignment : 'left',
    					valign: 'bottom',
    					halign : 'center'
    				}
    			)
    		}
    	);
    
    </script>
    </p>
    <p> </p>
    </body>
    </html>
    <br>
    <p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!</p>
    

    代码来自:http://www.webdm.cn/webcode/7c219f30-9a70-47fd-8c31-c58cad052700.html

  • 相关阅读:
    NetBeans 时事通讯(刊号 # 147 May 18, 2011)
    NetBeans 时事通讯(刊号 # 146 May 13, 2011)
    准备入职支付宝
    NetBeans 时事通讯(刊号 # 145 May 05, 2011)
    GAE 博客——B3log Solo 0.2.6 正式版发布了!
    用C语言实现一个简单的HTTP客户端(HTTP Client)
    Grack Ruby/Rack Git SmartHTTP Server Handler
    Cpy
    pyhttp 用Python演示Web服务器/客户端对HTTP协议的解析
    用C语法来写Python代码
  • 原文地址:https://www.cnblogs.com/webdm/p/2082298.html
Copyright © 2011-2022 走看看