Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions acer/autoplay demo2/cueslider - Copy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// Zepto/jQuery fadeLoop plugin for fade slide show effects
(function($){
$.extend($.fn,{
cueslider : function(options){
options = $.extend({
duration : 500,
autoPlay : false,
nextBtn : 'div.banner .next',
backBtn : 'div.banner .back',
autoPlayInterval : 3000,
transitionProperty : 'left top opacity'.split(' ')
}, options);


var iszep = !!window.Zepto,
slides = this,
cuePos = [];
slides.cuePos = cuePos;

slides.each(function(){ // store slide positions.
var p,obj = {};
for(var i in options.transitionProperty){
p=options.transitionProperty[i];
obj[p]=$(this).css(p);
}
cuePos.push(obj);
});

cuePos.shifc = function(revert){
if(revert){
this.unshift(this.pop());
}else{
this.push(this.shift());
}
};

slides.refresh = function(){
slides.each(function(i){
$(this).animate(cuePos[i],options.duration);
});
};

$(options.nextBtn).click(function(){
slides.cuenext();
});
$(options.backBtn).click(function(){
slides.cueback();
});

autoplay = function(){
if (options.flag) return;
t = setInterval(slides.cuenext/*???*/,options.autoPlayInterval);
}();//??

},

cuenext : function(){
this.cuePos.shifc();
this.refresh();
},

cueback : function(){
this.cuePos.shifc(true);
this.refresh();
},
});

})($);
34 changes: 34 additions & 0 deletions acer/autoplay demo2/demo2 - Copy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Cue Slider Demo 2</title>
<link rel="stylesheet" type="text/css" href="style - Copy.css">
<script type="text/javascript" src="../../zepto.js"></script>
<script type="text/javascript" src="cueslider - Copy.js"></script>
</head>
<body>
<div class="welcom"></div>
<div class="banner">
<ul>
<li style="left: -255px; top: 5px; opacity: 0; width: 236px; height: 253px;"><img src="../images/cueslider/iconia.png" width="85%" height="85%"/></li>
<li style="left: 43px; top: 0px; width: 236px; height: 253px;"><img src="../images/cueslider/iconia_tabA100.png" width="85%" height="85%"/></li>
<li style="left: 175px; top: -200px; width: 290px; height: 310px;"><img src="../images/cueslider/iconia_tabA200.png" width="85%" height="85%"/></li>
<li style="left: 480px; top: -205px; width: 236px; height: 253px;"><img src="../images/cueslider/iconia_tabA500.png" width="85%" height="85%"/></li>
<li style="left: 196px; top: 220px; opacity: 1; width: 220px; height: 235px;"><img src="../images/cueslider/iconia_tabA510.png" width="85%" height="85%"/></li>
<li style="left: 500px; top: 210px; width: 270px; height: 295px;"><img src="../images/cueslider/iconia_tabW500.png" width="85%" height="85%"/></li>
<li style="left: 609px; top: 12px; width: 245px; height: 262px;"><img src="../images/cueslider/iconia_tabA200.png" width="85%" height="85%"/></li>
<li style="left: 915px; top: 5px; opacity: 0; width: 236px; height: 253px;"><img src="../images/cueslider/iconia_tabW500.png" width="85%" height="85%"/></li>
</ul>
<div class="next"></div>
<div class="back"></div>
</div>
<script type="text/javascript">
$(function(){
$('div.banner > ul li').cueslider({
transitionProperty : 'left top opacity width height'.split(' ')
});
});
</script>
</body>
</html>
80 changes: 80 additions & 0 deletions acer/autoplay demo2/style - Copy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
*{
margin:0;
padding:0;
border:0;
}
body{
background : #FFF;
color : #eee;

background-image:url('../images/2.jpg');
background-repeat:no-repeat;
background-size:cover;
}

div.welcom{
background-image:url('../images/cueslider/claim.png');
width:750px;
height:75px;
margin:0 auto;
}

div.banner{
position:relative;
margin:200px auto 0;
width:900px;
}
div.banner ul{
margin-top:10px;
}
div.banner ul li{
display:block;
position:absolute;
}
div.banner ul li img{
display:block;
cursor:pointer;
-webkit-transition:all 0.5s;
}

div.banner ul li img:hover{
-webkit-transform: scale(1.3,1.3);
-moz-transform: scale(1.3,1.3);
-ms-transform: scale(1.3,1.3);
-o-transform: scale(1.3,1.3);
transform: scale(1.3,1.3);
}

div.banner .next{
width:40px;
height:40px;
display:block;
position:absolute;
right:0;
top:110px;
background-image:url('../images/cueslider/next.png');
background-repeat:no-repeat;
}

div.banner .back{
width:40px;
height:40px;
display:block;
position:absolute;
left:0;
top:110px;
background-image:url('../images/cueslider/prev.png');
background-repeat:no-repeat;
}

div.banner .ngallery{
left: 150px !important;
top: -48px !important;
background-image:url(../images/cueslider/gallery-nxt.png) !important;
}

div.banner .pgallery{
left: 70px !important;
top: 830px !important;
background-image:url(../images/cueslider/gallery-prv.png) !important;
}
60 changes: 60 additions & 0 deletions acer/cueslider.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Zepto/jQuery fadeLoop plugin for fade slide show effects
(function($){
$.extend($.fn,{
cueslider : function(options){
options = $.extend({
duration : 500,
autoPlay : false,
nextBtn : 'div.banner .next',
backBtn : 'div.banner .back',
autoPlayInterval : 3000,
transitionProperty : 'left top opacity'.split(' ')
}, options);

var iszep = !!window.Zepto,
slides = this,
cuePos = [];
slides.cuePos = cuePos;

slides.each(function(){ // store slide positions.
var p,obj = {};
for(var i in options.transitionProperty){
p=options.transitionProperty[i];
obj[p]=$(this).css(p);
}
cuePos.push(obj);
});

cuePos.shifc = function(revert){
if(revert){
this.unshift(this.pop());
}else{
this.push(this.shift());
}
};

slides.refresh = function(){
slides.each(function(i){
$(this).animate(cuePos[i],options.duration);
});
};

$(options.nextBtn).click(function(){
slides.cuenext();
});
$(options.backBtn).click(function(){
slides.cueback();
});
},

cuenext : function(){
this.cuePos.shifc();
this.refresh();
},

cueback : function(){
this.cuePos.shifc(true);
this.refresh();
}
});
})($);
35 changes: 35 additions & 0 deletions acer/demo2 - Copy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Cue Slider Demo 1</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="../zepto.js"></script>
<script type="text/javascript" src="cueslider.js"></script>
</head>
<body>
<div class="welcom"></div>
<div class="banner">
<ul>
<li style="left: -255px; top: 5px; opacity: 0; width: 236px; height: 253px;">
<img src="images/cueslider/iconia.png" width="85%" height="85%"/></li>
<li style="left: 60px; top: 0px; width: 236px; height: 253px;"><img src="images/cueslider/iconia_tabA100.png" width="85%" height="85%"/></li>
<li style="left: 175px; top: -200px; width: 290px; height: 310px;"><img src="images/cueslider/iconia_tabA200.png" width="85%" height="85%"/></li>
<li style="left: 480px; top: -205px; width: 236px; height: 253px;"><img src="images/cueslider/iconia_tabA500.png" width="85%" height="85%"/></li>
<li style="left: 196px; top: 220px; opacity: 1; width: 220px; height: 235px;"><img src="images/cueslider/iconia_tabA510.png" width="85%" height="85%"/></li>
<li style="left: 500px; top: 195px; width: 270px; height: 295px;"><img src="images/cueslider/iconia_tabW500.png" width="85%" height="85%"/></li>
<li style="left: 609px; top: 12px; width: 245px; height: 262px;"><img src="images/cueslider/iconia_tabA200.png" width="85%" height="85%"/></li>
<li style="left: 915px; top: 5px; opacity: 0; width: 236px; height: 253px;"><img src="images/cueslider/iconia_tabW500.png" width="85%" height="85%"/></li>
</ul>
<div class="next"></div>
<div class="back"></div>
</div>
<script type="text/javascript">
$(function(){
$('div.banner > ul li').cueslider({
transitionProperty : 'left top opacity width height'.split(' ')
});
});
</script>
</body>
</html>
Binary file added acer/images/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/claim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/gallery-nxt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/gallery-prv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/iconia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/iconia_tabA100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/iconia_tabA200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/iconia_tabA500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/iconia_tabA510.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/iconia_tabW500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added acer/images/cueslider/prev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions acer/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
*{
margin:0;
padding:0;
border:0;
}
body{
background : #FFF;
color : #eee;

background-image:url('images/2.jpg');
background-repeat:no-repeat;
background-size:cover;
}

div.welcom{
background-image:url('images/cueslider/claim.png');
width:750px;
height:75px;
margin:0 auto;
}

div.banner{
position:relative;
margin:200px auto 0;
width:900px;
}
div.banner ul{
margin-top:10px;
}
div.banner ul li{
display:block;
position:absolute;
}

div.banner ul li div{
width:100%;
height:100%;
background-image:url('images/cueslider/iconia.png');
}

div.banner ul li img{
display:block;
cursor:pointer;
-webkit-transition:all 0.5s;
}

div.banner ul li img:hover{
-webkit-transform: scale(1.3,1.3);
-moz-transform: scale(1.5,1.5);
-ms-transform: scale(1.5,1.5);
-o-transform: scale(1.5,1.5);
transform: scale(1.3,1.3);
}

div.banner .next{
width:40px;
height:40px;
display:block;
position:absolute;
right:0;
top:110px;
background-image:url('images/cueslider/next.png');
background-repeat:no-repeat;
}

div.banner .back{
width:40px;
height:40px;
display:block;
position:absolute;
left:0;
top:110px;
background-image:url('images/cueslider/prev.png');
background-repeat:no-repeat;
}

div.banner .ngallery{
left: 150px !important;
top: -48px !important;
background-image:url(images/cueslider/gallery-nxt.png) !important;
}

div.banner .pgallery{
left: 70px !important;
top: 830px !important;
background-image:url(images/cueslider/gallery-prv.png) !important;
}