<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Fixed Header/Footer Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script>
$(function(){
var t = n = 0; count = $(".img_content a").size();
var st=0;
var play = ".play";
var playText = ".play .text";
var playNum = ".play .num a";
var playConcent = ".play .img_content a";
$(playConcent + ":not(:first)").hide();
$(playText).html($(playConcent + ":first").find("img").attr("alt"));
$(playNum + ":first").addClass("on");
$(playNum).click(function() {
var i = $(this).text() - 1;
n = i;
if (i >= count) return;
$(playText).html($(playConcent).eq(i).find("img").attr('alt'));
// $(playText).unbind().click(function(){window.open($(playConcent).eq(i).attr('href'), "_blank")})
$(playConcent).filter(":visible").hide().parent().children().eq(i).fadeIn("fast");
$(this).removeClass("on").siblings().removeClass("on");
$(this).removeClass("on2").siblings().removeClass("on2");
$(this).addClass("on").siblings().addClass("on2");
});
/*
$(playConcent).click(function(){
var i;
if(n==0){
i=1;
n=1;
}else{
i=n+1;
n++;
}
//alert(i);
//alert(n);
if(i>=count){
i=0;
n=0;
}
$(playText).html($(playConcent).eq(i).find("img").attr('alt'));
//$(playText).unbind().click(function(){window.open($(playConcent).eq(i).attr('href'), "_blank")})
$(playConcent).filter(":visible").hide().parent().children().eq(i).fadeIn(1200);
$(".num a").eq(n).removeClass("on").siblings().removeClass("on");
$(".num a").eq(n).removeClass("on2").siblings().removeClass("on2");
$(".num a").eq(n).addClass("on").siblings().addClass("on2");
})
*/
t = setInterval(function(){
if(st==1){
n = n <= (count - 1) ? --n :5;
}else{
n = n >= (count - 1) ? 0 : ++n;
}
$(".num a").eq(n).trigger('click');
},1000);
$(playConcent).bind("swiperight",function(){clearInterval(t)},function(){
var i;
st=0;
if(n==0){
i=1;
n=1;
}else{
i=n+1;
n++;
}
//alert(i);
//alert(n);
if(i>=count){
i=0;
n=0;
}
$(playText).html($(playConcent).eq(i).find("img").attr('alt'));
//$(playText).unbind().click(function(){window.open($(playConcent).eq(i).attr('href'), "_blank")})
$(playConcent).filter(":visible").hide().parent().children().eq(i).fadeIn(1200);
$(".num a").eq(n).removeClass("on").siblings().removeClass("on");
$(".num a").eq(n).removeClass("on2").siblings().removeClass("on2");
$(".num a").eq(n).addClass("on").siblings().addClass("on2");
})
$(playConcent).bind("swipeleft",function(){clearInterval(t)},function(){
var i;
st=1;
if(n==0){
i=5;
n=5;
}else{
i=n-1;
n--;
}
$(playText).html($(playConcent).eq(i).find("img").attr('alt'));
//$(playText).unbind().click(function(){window.open($(playConcent).eq(i).attr('href'), "_blank")})
$(playConcent).filter(":visible").hide().parent().children().eq(i).fadeIn(1200);
$(".num a").eq(n).removeClass("on").siblings().removeClass("on");
$(".num a").eq(n).removeClass("on2").siblings().removeClass("on2");
$(".num a").eq(n).addClass("on").siblings().addClass("on2");
})
$(play).hover(function(){clearInterval(t)}, function(){t = setInterval(function(){
if(st==1){
n = n <= (count - 1) ? --n :5;
}else{
n = n >= (count - 1) ? 0 : ++n;
}
$(".num a").eq(n).trigger('click');
}, 1000);});
})
</script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<style>
body,h1,h2,h3,h4,h5,h6,p,ul,li,dl,dt,dd{padding:0;margin:0;font-size:12px;font-family:Arial,Verdana, Helvetica, sans-serif;word-break:break-all;word-wrap:break-word;}
li{list-style:none;}img{border:none;}em{font-style:normal;}
a{color:#555;text-decoration:none;outline:none;blr:this.onFocus=this.blur();}
a:hover{color:#000;text-decoration:underline;}
.clear{height:0;overflow:hidden;clear:both;}
.play_content{
padding:0px;
overflow:hidden;
width:98%;
margin:auto;
}
.play{width:98%;height:230px;border:#ccc 1px solid; text-align:center; margin:auto;overflow:hidden;position:absolute;}
.textbg{margin-top:200px;z-index:1;filter:alpha(opacity=40);opacity:0.4;width:100%;height:30px;position:absolute;background:#000;}
.text{margin-top:200px;z-index:2;padding-left:10px;font-size:14px;font-weight:bold;width:40%;color:#fff;line-height:30px; overflow:hidden;position:absolute;cursor:pointer;}
.num{margin:205px 1% 0 55%;z-index:3;width:45%; text-align:right;position:absolute;height:25px;float:right;}
.num a{margin:0 2px;width:20px;height:20px;font-size:14px; font-weight:bold;line-height:20px;cursor:pointer;color:#000;padding:0 5px;background:#D7D6D7;text-align:center}
.num a.on{background:#FFD116;color:#A8471C;}
.num a.on2{background:#D7D6D7;color:#000;}
.img_content img{width:100%;height:230px;}
</style>
</head>
<body>
<div data-role="page">
<div data-role="content" class="play_content">
<div class="play">
<ul>
<li class="textbg"></li>
<li class="text"></li>
<li class="num" ><a>1</a><a>2</a><a>3</a><a>4</a><a>5</a><a>6</a></li>
<li class="img_content">
<a href="javascript:void(0);" ><img src="./images/wall1.jpg" alt="澳大利亚:体验蓝山风光,感受澳洲风情" /></a>
<a href="javascript:void(0);" ><img src="./images/wall2.jpg" alt="九月抄底旅游,马上行动" /></a>
<a href="javascript:void(0);" ><img src="./images/wall3.jpg" alt="港澳旅游:超值特价,奢华享受" /></a>
<a href="javascript:void(0);" ><img src="./images/wall4.jpg" alt="炎炎夏日哪里去,途牛带你海滨游" /></a>
<a href="javascript:void(0);" ><img src="./images/wall5.jpg" alt="定途牛旅游线路,优惠购买乐相册" /></a>
<a href="javascript:void(0);" ><img src="./images/wall6.jpg" alt="三亚自助游" /></a>
</li>
</ul>
</div>
</div>
</div>
</body>

ren123
- 粉丝: 0
最新资源
- 全国统一建筑工程基础定额之钢筋工程(含基价表).doc
- 浅析高校档案管理信息化建设.docx
- 1.9-与本工程有关的其它问题.doc
- 第七章---施工工艺说明及工艺框图.doc
- 海尔mp2a、mp3a电子膨胀阀节流装置培训资料.doc
- 12--维生素C的定量测定.ppt
- 工程重大事故报告和调查程序规定.doc
- 中空玻璃幕墙设计计算书.doc
- 共享经济背景下基于双边网络效应的知识变现付费问答模式研究.docx
- 客户挖掘技巧(用友软件)..ppt
- 几种外墙内保温构造的施工方法.doc
- 河南省网络文化发展态势分析.docx
- 普工安全操作技术交底.doc
- 第二章第1-3节-神经毒剂的作用机理.ppt
- 动物营养学猪的营养需要英.ppt
- 汽车行业数字化信息化解决方案.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



- 1
- 2
- 3
- 4
- 5
- 6
前往页