惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
The Last Watchdog
The Last Watchdog
T
Tenable Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
A
Arctic Wolf
云风的 BLOG
云风的 BLOG
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
MyScale Blog
MyScale Blog
B
Blog
Spread Privacy
Spread Privacy
S
Schneier on Security
Project Zero
Project Zero
L
LINUX DO - 热门话题
M
MIT News - Artificial intelligence
F
Full Disclosure
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
Cyberwarzone
Cyberwarzone
AWS News Blog
AWS News Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
Security Latest
Security Latest
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tailwind CSS Blog
K
Kaspersky official blog
Recent Announcements
Recent Announcements
NISL@THU
NISL@THU
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
P
Privacy & Cybersecurity Law Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Exploit Database - CXSecurity.com
V
Visual Studio Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Webroot Blog
Webroot Blog

博客园 - chenping2008

连接远程数据库,得到数据插入本地表中 php复制目录 PHP删除目录 php统计目录大小 js秒数转换天时分秒 js 游览器log的记录 2个iframe中checkbox联动 JS Clone函数 JS普通递归的改进 JS随机数的产生方法 JS相等运算符(==)和等同运算符(===) silverlight树形结构区服选择 Mongodb的一些基本概念 Mongodb在Ubuntu下的安装 redis windows下使用及redis命令 相册功能 Node.js 系列翻译---console Node.js 系列翻译---概要 补充Silverlight中图片显示
JS切换图片
chenping2008 · 2013-01-06 · via 博客园 - chenping2008
<html>
	<head>
		<style>
			#banner {
				overflow: hidden;
				position: relative;
				height: 500px;
				}
			.banner-img {
				position: absolute;
				height: 500px;
				top: 0;
				right: 0;
				}
			.banner-tab {
				width: 639px;
				height: 57px;
				border-top-left-radius: 5px;
				border-top-right-radius: 5px;
				margin: -70px auto 0 auto;
				padding-top: 13px;
				position: relative;
				z-index: 2;
				overflow: hidden;
				}
			.banner-tab-wrap {
				position: relative;
				top: 70px;
				width: 639px;
				}
			.banner-tab-inner {
				margin: 0 auto;
				overflow: hidden;
				}
			.banner-item {
				float: left;
				height: 40px;
				width: 60px;
				border: 1px solid #5d5d5d;
				margin: 1px 11px;
				opacity: .3;
				cursor: pointer;
				position: relative;
				}
			.selected {
				border: 2px solid #444!important;
				margin: 0 10px;
				opacity: 1;
				}
			.show {
				z-index: 1;
				}
		</style>
		<script type="text/javascript" src="jquery-1.8.0.js"></script>
		<script>
			$(function(){
				$("#banner,#banner-tab").mouseover(function(){
					$(".banner-tab-wrap").css("top","0px");
				}).mouseout(function(){
					$(".banner-tab-wrap").attr("style","");
				});
				
				$("#banner-tab span").mouseover(function(){
					var index =  $(this).prevAll("span").length;
					$("#banner span").removeClass("show");
					$("#banner span").hide();
					$("#banner span").eq(index).show();
					$("#banner span").eq(index).addClass("show");
					
					$("#banner-tab span").removeClass("selected");
					$(this).addClass("selected");
				}).mouseout(function(){
					
				});
			});
		</script>
	</head>
	<body>
		<div id="banner">  
			<span class="banner-img show" style="background-image: url(http://img.baidu.com/img/iknow/openiknow/home/pic01.jpg); width: 1423px; background-position: 50% 50%; background-repeat: no-repeat no-repeat;"></span>    
			<span class="banner-img" style="background-image: url(http://img.baidu.com/img/iknow/openiknow/home/pic02.jpg); width: 1423px; display: none; background-position: 50% 50%; background-repeat: no-repeat no-repeat;"></span>    
			<span class="banner-img" style="background-image: url(http://img.baidu.com/img/iknow/openiknow/home/pic03.jpg); width: 1423px; display: none; background-position: 50% 50%; background-repeat: no-repeat no-repeat;"></span>    
			<span class="banner-img" style="background-image: url(http://img.baidu.com/img/iknow/openiknow/home/pic04.jpg); width: 1423px; display: none; background-position: 50% 50%; background-repeat: no-repeat no-repeat;"></span>   
		</div>
		<div id="banner-tab" class="banner-tab"> 
			<div class="banner-tab-wrap" > 
					<div class="banner-tab-bg"></div> 
					<div class="banner-tab-inner" style="width:340px">   
						<span class="banner-item selected"><img src="http://img.baidu.com/img/iknow/openiknow/home/lit_01.png"></span>   
						<span class="banner-item"><img src="http://img.baidu.com/img/iknow/openiknow/home/lit_02.png"></span>   
						<span class="banner-item"><img src="http://img.baidu.com/img/iknow/openiknow/home/lit_03.png"></span>   
						<span class="banner-item"><img src="http://img.baidu.com/img/iknow/openiknow/home/lit_04.png"></span>   
					</div> 
			</div> 
		</div>
	</body>
</html>

posted @ 2013-01-06 09:33  chenping2008  阅读(1336)  评论()    收藏  举报