相册图片展示
XML/HTML Code
<!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 type="text/css">
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0}
fieldset,img{border:0}
:focus{outline:0}
address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:normal;font-weight:normal}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
abbr,acronym{border:0;font-variant:normal}
input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit}
code,kbd,samp,tt{font-size:100%}
input,button,textarea,select{*font-size:100%}
body{line-height:1.5}
ol,ul{list-style:none}
table{border-collapse:collapse;border-spacing:0}
caption,th{text-align:left}sup,sub{font-size:100%;vertical-align:baseline}
:link,:visited,ins{text-decoration:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
.clearfix{display:inline-block}
*html .clearfix{height:1%}
.clearfix{display:block}
h1{display:none}
a,a:link,a:visited{color:#333;text-decoration:none}
a:hover{color:#f60;text-decoration:underline}
body{font-size:12px;font-family:"Microsoft Yahei",Tahoma,"SimSun";color:#333;background:url(images/douyan_bg.jpg) center top
no-repeat #000;}
/* slide */
.slide{width:680px;height:345px;overflow:hidden;margin:0 auto;background:#000;border-top:1px solid #d21bd4}
.slide_box{width:169px;height:345px;overflow:hidden;position:relative;float:left;border-right:1px solid #999;cursor:pointer;background-repeat:no-repeat}
.slide_box.last{border-right-width:0}
.slide .bg1 .navbox{width:169px}
.slide #box_1{position:absolute;left:0;bottom:0}
.slide #box_1 .navtitle{width:169px;height:45px;line-height:45px;overflow:hidden;font-size:20px;text-align:center}
.slide #box_1 .navsumary{padding:10px;margin-bottom:3px;font-size:12px;line-height:26px}
.slide #box_2{position:absolute;left:0;bottom:45px}.slide #box_2 .navtitle{width:169px;height:45px;line-height:45px;overflow:hidden;font-size:20px;text-align:center}
.slide #box_2 .navsumary{padding:10px;margin-bottom:3px;font-size:12px;line-height:26px}
.slide #box_3{position:absolute;left:0;bottom:90px}
.slide #box_3 .navtitle{width:169px;height:45px;line-height:45px;overflow:hidden;font-size:20px;text-align:center}
.slide #box_3 .navsumary{padding:10px;margin-bottom:3px;font-size:12px;line-height:26px}
.slide #box_4{position:absolute;left:0;bottom:45px}
.slide #box_4 .navtitle{width:169px;height:45px;line-height:45px;overflow:hidden;font-size:20px;text-align:center}
.slide #box_4 .navsumary{padding:10px;margin-bottom:3px;font-size:12px;line-height:26px}
.slide .navbox .navsumary{color:#fff;display:none;padding:10px}
.navtitle img{display:none}
.slide .navbox .navtitle a,.slide .navbox .navtitle a:link,.slide .navbox .navtitle a:visited{color:#fff;text-decoration:none}
.slide .navbox .navtitle a:hover{color:#fff;text-decoration:underline}
.slide .navtitle,.slide .navsumary{position:relative}
.slide div.bg{position:absolute;width:100%;height:100%;z-index:1;left:0;top:0}
.slide div.txt{position:relative;z-index:2}
.slide div.bg{filter:alpha(opacity=60);opacity:.6}
.slide #box_1 div.bg{background-color:#00ffea}
.slide #box_2 div.bg{background-color:#9d9d9d}
.slide #box_3 div.bg{background-color:#c020e8}
.slide #box_4 div.bg{background-color:#e4ff00}
.more{position:absolute;right:30px;top:500px;font-size:18px;color:#fff;}
.more a:link,.more a:visited{color:#fff;}
.bg1{background-image:url(../freejs.jpg)}
.bg2{background-image:url(../zhoushan.jpg)}
.bg3{background-image:url(../xianggang.jpg)}
.bg4{background-image:url(../sanya.jpg)}
</style>
<!--[if lt IE 7]>
<style type="text/css">
.slide #box_1 .navsumary,.slide #box_2 .navsumary,.slide #box_3 .navsumary,.slide #box_4 .navsumary,.slide .navbox .navsumary{padding:0;width:169px;height:90px;overflow:hidden}
.slide .navsumary div.txt{padding:10px;width:224px;}
</style>
<![endif]-->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function(){
// 幻灯片图片滑动
$("html,body").animate({scrollTop:$("#slide").offset().top},800);
var a =0;
$("#slide>.slide_box").click(function(){
var a = $(this).find(".navbox>.navtitle a").attr("href");
window.open(a);
return !1
}),
$("#slide>.slide_box").mouseover(function(){
var b =$(this).index();
if(b!= a){
$("#slide .navsumary").hide();
$(this).find(".navbox>.navsumary").show();
var c = "bg" + (b + 1);
b < a && ($.browser.msie?(
$(".slide_box").stop().animate({backgroundPositionX: "680px"}, 0).removeClass("bg1 bg2 bg3 bg4").addClass(c),
$("#box_1").parent().stop().animate({backgroundPositionX: "0"}, 100),
$("#box_2").parent().stop().animate({backgroundPositionX:"-170px"},200),
$("#box_3").parent().stop().animate({backgroundPositionX: "-340px"},300),
$("#box_4").parent().stop().animate({backgroundPositionX: "-510px"},400,
function(){
$(".slide_box,#slide").removeClass("bg1 bg2 bg3 bg4").addClass(c);
}
)):(
$(".slide_box").stop().animate({backgroundPosition:"680px 0"},0).removeClass("bg1 bg2 bg3 bg4").addClass(c),
$("#box_1").parent().stop().animate({backgroundPosition:"0 0"},100),
$("#box_2").parent().stop().animate({backgroundPosition:"-170px 0"},200),
$("#box_3").parent().stop().animate({backgroundPosition:"-340px 0"},300),
$("#box_4").parent().stop().animate({backgroundPosition: "-510px 0"},400,
function(){
$(".slide_box,#slide").removeClass("bg1 bg2 bg3 bg4").addClass(c)
}
)), a = b),b > a &&($.browser.msie?(
$(".slide_box").stop().animate({backgroundPositionX: "-680px" },0).removeClass("bg1 bg2 bg3 bg4").addClass(c),
$("#box_1").stop().parent().animate({backgroundPositionX:"0"},400,
function(){
$(".slide_box,#slide").removeClass("bg1 bg2 bg3 bg4").addClass(c)
}
),
$("#box_2").parent().stop().animate({ backgroundPositionX: "-170px" }, 300),
$("#box_3").parent().stop().animate({backgroundPositionX: "-340px"}, 200),
$("#box_4").parent().stop().animate({backgroundPositionX: "-510px"}, 100)):($(".slide_box").stop().animate({backgroundPosition:"-680px 0"},0).removeClass("bg1 bg2 bg3 bg4").addClass(c),
$("#box_1").stop().parent().animate({backgroundPosition:"0 0"},400,
function(){
$(".slide_box,#slide").removeClass("bg1 bg2 bg3 bg4").addClass(c)
}
),
$("#box_2").parent().stop().animate({backgroundPosition:"-170px 0"}, 300),
$("#box_3").parent().stop().animate({backgroundPosition:"-340px 0"},200),
$("#box_4").parent().stop().animate({backgroundPosition: "-510px 0"},100)
), a = b)
}
});
});
</script>
</head>
<body>
<div class="slide clearfix bg1" id="slide">
<div class="slide_box bg1" style="background-position:0 0;">
<div id="box_1" class="navbox">
<div class="navsumary" style="display:block">
<div class="bg"></div>
<div class="txt">freejs.net 演示</div>
</div>
<div class="navtitle">
<div class="bg"></div>
<div class="txt"><a href="http://www.freejs.net/"><img src="../freejs.jpg" alt="" />freejs</a></div>
</div>
</div>
</div>
<div class="slide_box bg1" style="background-position:-170px 0;">
<div id="box_2" class="navbox">
<div class="navsumary">
<div class="bg"></div>
<div class="txt">freejs.net 演示</div>
</div>
<div class="navtitle">
<div class="bg"></div>
<div class="txt"><a href="http://www.freejs.net/"><img src="../zhoushan.jpg" alt="" />舟山</a></div>
</div>
</div>
</div>
<div class="slide_box bg1" style="background-position:-340px 0;">
<div id="box_3" class="navbox">
<div class="navsumary">
<div class="bg"></div>
<div class="txt">freejs.net 演示</div>
</div>
<div class="navtitle">
<div class="bg"></div>
<div class="txt"><a href="http://www.freejs.net/"><img src="../xianggang.jpg" alt="" />香港</a></div>
</div>
</div>
</div>
<div class="slide_box bg1 last" style="background-position:-510px 0;">
<div id="box_4" class="navbox">
<div class="navsumary">
<div class="bg"></div>
<div class="txt">freejs.net 演示</div>
</div>
<div class="navtitle">
<div class="bg"></div>
<div class="txt"><a href="http://www.freejs.net/"><img src="../sanya.jpg" alt="" />三亚</a></div>
</div>
</div>
</div>
</div><!--slide end-->
</div>
</body>
</html>
>更多相关文章
首页推荐
佛山市东联科技有限公司一直秉承“一切以用户价值为依归
- 01-11全球最受赞誉公司揭晓:苹果连续九年第一
- 12-09罗伯特·莫里斯:让黑客真正变黑
- 12-09谁闯入了中国网络?揭秘美国绝密黑客小组TA
- 12-09警示:iOS6 惊现“闪退”BUG
- 12-05亚马逊推出新一代基础模型 任意模态生成大模
- 12-05OpenAI拓展欧洲业务 将在苏黎世设立办公室
- 12-05微软质疑美国联邦贸易委员会泄露信息 督促其
- 12-05联交所取消宝宝树上市地位 宝宝树:不会对公
- 12-04企业微信致歉:文档打开异常已完成修复
相关文章
24小时热门资讯
24小时回复排行
热门推荐
最新资讯
操作系统
黑客防御