jQuery图片自动滑动门效果特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jQuery图片自动滑动门效果特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jQuery图片自动滑动门效果特效代码

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>SlideDeck v.1.2.2 Lite Example</title>

        <!-- Include jQuery first. -->
		<script type="text/javascript" src="jquery-1.3.2.min.js"></script>

        <!-- Include the below script, Copyright 2010, Brandon Aaron (http://brandonaaron.net/) for scrollwheel support. -->
		<script type="text/javascript" src="jquery-mousewheel/jquery.mousewheel.min.js"></script>
		
		<link rel="stylesheet" type="text/css" href="slidedeck.skin.css" media="screen" />
        <!-- Styles for the skin that only load for Internet Explorer -->
        <!--[if lte IE 8]>
        <link rel="stylesheet" type="text/css" href="slidedeck.skin.ie.css" media="screen,handheld" />
        <![endif]-->
		
        <!-- Include the SlideDeck jQuery script. -->
		<script type="text/javascript" src="slidedeck.jquery.lite.pack.js"></script>
        
        <style type="text/css">
            #slidedeck_frame {
                width: 901px;
                height: 300px;
            }        
        </style>
	</head>
	<body>
		<div id="slidedeck_frame" class="skin-slidedeck">
			<dl class="slidedeck">
				<dt>Slide 1</dt>
				<dd><img src="images/1.jpg"/>Slide content</dd>
				<dt>Slide 2</dt>
				<dd><img src="images/2.jpg"/>Slide content</dd>
				<dt>Slide 3</dt>
				<dd><img src="images/3.jpg"/>Slide content</dd>
				<dt>Slide 4</dt>
				<dd><img src="images/4.jpg"/>Slide content</dd>
				<dt>Slide 5</dt>
				<dd><img src="images/5.jpg"/>Slide content</dd>
			</dl>
		</div>
		<script type="text/javascript">
			$('.slidedeck').slidedeck({
                autoPlay: true,
                cycle: true, 
                autoPlayInterval: 1000 
            });
		</script>
	    <!-- Help support SlideDeck! Place this noscript tag on your page when you deploy a SlideDeck to provide a link back! -->
	</body>
</html>

JS代码(slidedeck.jquery.lite.js):

/** * SlideDeck 1.2.5 Lite - 2011-06-01 * Copyright (c) 2011 digital-telepathy (http://www.dtelepathy.com) * * Support the developers by purchasing the Pro version at http://www.slidedeck.com/download * * This program is free software;
	you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation;
	either version 2 of the License,or * (at your option) any later version. * * This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY;
	without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program;
	if not,write to the Free Software * Foundation,Inc.,51 Franklin St,Fifth Floor,Boston,MA 02110-1301 USA * * More information on this project:* http://www.slidedeck.com/ * * Requires:jQuery v1.3+ * * Full Usage Documentation:http://www.slidedeck.com/usage-documentation * Usage:* $(el).slidedeck(opts);
	* * @param{
	HTMLObject}
el The <DL> element to extend as a SlideDeck * @param{
	Object}
opts An object to pass custom override options to */
var SlideDeck;
	var SlideDeckSkin ={
}
;
	(function($){
	window.SlideDeck = function(el,opts){
	var self = this,el = $(el);
	var VERSION = "1.2.5";
	this.options ={
	speed:500,transition:'swing',start:1,activeCorner:true,index:true,scroll:true,keys:true,autoPlay:false,autoPlayInterval:5000,hideSpines:false,cycle:false}
;
	this.classes ={
	slide:'slide',spine:'spine',label:'label',index:'index',active:'active',indicator:'indicator',activeCorner:'activeCorner',disabled:'disabled',vertical:'slidesVertical',previous:'previous',next:'next'}
;
	this.current = 1;
	this.deck = el;
	this.spines = el.children('dt');
	this.slides = el.children('dd');
	this.controlTo = 1;
	this.session = [];
	this.disabledSlides = [];
	this.pauseAutoPlay = false;
	this.isLoaded = false;
	var UA = navigator.userAgent.toLowerCase();
	this.browser ={
	chrome:UA.match(/chrome/) ? true:false,firefox:UA.match(/firefox/) ? true:false,firefox2:UA.match(/firefox\/2/) ? true:false,firefox30:UA.match(/firefox\/3\.0/) ? true:false,msie:UA.match(/msie/) ? true:false,msie6:(UA.match(/msie 6/) && !UA.match(/msie 7|8/)) ? true:false,msie7:UA.match(/msie 7/) ? true:false,msie8:UA.match(/msie 8/) ? true:false,msie9:UA.match(/msie 9/) ? true:false,chromeFrame:(UA.match(/msie/) && UA.match(/chrome/)) ? true:false,opera:UA.match(/opera/) ? true:false,safari:(UA.match(/safari/) && !UA.match(/chrome/)) ? true:false}
;
	for(var b in this.browser){
	if(this.browser[b] === true){
	this.browser._this = b;
}
}
if(this.browser.chrome === true && !this.browser.chromeFrame){
	this.browser.version = UA.match(/chrome\/([0-9\.]+)/)[1];
}
if(this.browser.firefox === true){
	this.browser.version = UA.match(/firefox\/([0-9\.]+)/)[1];
}
if(this.browser.msie === true){
	this.browser.version = UA.match(/msie ([0-9\.]+)/)[1];
}
if(this.browser.opera === true){
	this.browser.version = UA.match(/version\/([0-9\.]+)/)[1];
}
if(this.browser.safari === true){
	this.browser.version = UA.match(/version\/([0-9\.]+)/)[1];
}
var width;
	var height;
	var spine_inner_width,spine_outer_width,slide_width,spine_half_width;
	var FixIEAA = function(spine){
	if(self.browser.msie && !self.browser.msie9){
	var bgColor = spine.css('background-color');
	var sBgColor = bgColor;
	if(sBgColor == "transparent"){
	bgColor = "#ffffff";
}
else{
	if(sBgColor.match('#')){
	// Hex,convert to RGB if(sBgColor.length < 7){
	var t = "#" + sBgColor.substr(1,1) + sBgColor.substr(1,1) + sBgColor.substr(2,1) + sBgColor.substr(2,1) + sBgColor.substr(3,1) + sBgColor.substr(3,1);
	bgColor = t;
}
}
}
bgColor = bgColor.replace("#","");
	cParts ={
	r:bgColor.substr(0,2),g:bgColor.substr(2,2),b:bgColor.substr(4,2)}
;
	var bgRGB = "#";
	var hexVal = "01234567890ABCDEF";
	for(var k in cParts){
	cParts[k] = Math.max(0,(parseInt(cParts[k],16) - 1));
	cParts[k] = hexVal.charAt((cParts[k] - cParts[k]%16)/16) + hexVal.charAt(cParts[k]%16);
	bgRGB += cParts[k];
}
spine.find('.' + self.classes.index).css({
	'filter':'progid:DXImageTransform.Microsoft.BasicImage(rotation=1) chroma(color=' + bgRGB + ')',backgroundColor:bgRGB}
);
}
}
;
	/** * Visual Attribution "Bug" * * This is a visual "bug" that is placed in the lower right of the SlideDeck to give * visual recognition to SlideDeck and for us to see where any implementations that might * be worth placing in our community examples page reside. To help keep this plugin free * we ask (although we cannot force) you to keep this visual "bug" on the page since it * helps support the author. * * If you would like to remove the visual "bug",we recommend you comment out the * updateBug();
	function and remove any references to the updateBug();
	command. */
 var BUG ={
	id:"SlideDeck_Bug"+(Math.round(Math.random()*100000000)),styles:"position:absolute !important;
	height:"+13+"px !important;
	width:"+130+"px !important;
	display:block !important;
	margin:0 !important;
	overflow:hidden !important;
	visibility:visible !important;
	opacity:1 !important;
	padding:0 !important;
	z-index:20000 !important",width:130,height:13}
;
	var updateBug = function(){
	if(!document.getElementById(BUG.id)){
	var bugLink = document.createElement('A');
	bugLink.id = BUG.id;
	bugLink.href = "http://www.slidedeck.com/?utm_source=LiteUser&utm_medium=Link&utm_campaign=SDbug";
	bugLink.target = "_blank";
	var bugImg = document.createElement('IMG');
	bugImg.src = (document.location.protocol == "https:" ? "https:":"http:") + "//www.slidedeck.com/6885858486f31043e5839c735d99457f045affd0/" + VERSION + "/lite";
	bugImg.alt = "Powered by SlideDeck&trade;
	";
	bugImg.width = BUG.width;
	bugImg.height = BUG.height;
	bugImg.border = "0";
	bugLink.appendChild(bugImg);
	BUG.top = (el.offset().top + el.height() + 5);
	BUG.left = el.offset().left + el.width() - BUG.width;
	var s = document.createElement('STYLE');
	s.type = "text/css";
	var sText = '#' + BUG.id + '{
	top:' + BUG.top + 'px;
	left:' + BUG.left + 'px;
	' + BUG.styles + '}
' + '#' + BUG.id + ' img{
	top:0 !important;
	left:0 !important;
	' + BUG.styles + '}
';
	if(s.styleSheet){
	s.styleSheet.cssText = sText;
}
else{
	s.appendChild(document.createTextNode(sText));
}
$('head').append(s);
	if(Math.random() < 0.5){
	$(document.body).prepend(bugLink);
}
else{
	$(document.body).append(bugLink);
}
$(window).resize(function(){
	updateBug();
}
);
}
BUG.top = (el.offset().top + el.height() + 5);
	BUG.left = el.offset().left + el.width() - BUG.width;
	$('#' + BUG.id).css({
	top:BUG.top + "px",left:BUG.left + "px"}
);
}
;
	var autoPlay = function(){
	gotoNext = function(){
	if(self.pauseAutoPlay === false){
	if(self.options.cycle === false && self.current == self.slides.length){
	self.pauseAutoPlay = true;
}
else{
	self.next();
}
}
}
;
	setInterval(gotoNext,self.options.autoPlayInterval);
}
;
	var buildDeck = function(){
	if($.inArray(el.css('position'),['position','absolute','fixed'])){
	el.css('position','relative');
}
el.css('overflow','hidden');
	for(var i=0;
	i<self.slides.length;
	i++){
	var slide = $(self.slides[i]);
	if(self.spines.length > i){
	var spine = $(self.spines[i]);
}
var sPad ={
	top:parseInt(slide.css('padding-top'),10),right:parseInt(slide.css('padding-right'),10),bottom:parseInt(slide.css('padding-bottom'),10),left:parseInt(slide.css('padding-left'),10)}
;
	var sBorder ={
	top:parseInt(slide.css('border-top-width'),10),right:parseInt(slide.css('border-right-width'),10),bottom:parseInt(slide.css('border-bottom-width'),10),left:parseInt(slide.css('border-left-width'),10)}
;
	for(var k in sBorder){
	sBorder[k] = isNaN(sBorder[k]) ? 0:sBorder[k];
}
if(i < self.current){
	if(i == self.current - 1){
	if(self.options.hideSpines !== true){
	spine.addClass(self.classes.active);
}
slide.addClass(self.classes.active);
}
offset = i * spine_outer_width;
	if(self.options.hideSpines === true){
	if(i == self.current - 1){
	offset = 0;
}
else{
	offset = 0 - (self.options.start - i - 1) * el.width();
}
}
}
else{
	offset = i * spine_outer_width + slide_width;
	if(self.options.hideSpines === true){
	offset = (i + 1 - self.options.start) * el.width();
}
}
self.slide_width = (slide_width - sPad.left - sPad.right - sBorder.left - sBorder.right);
	slide.css({
	position:'absolute',left:offset,zIndex:1,height:(height - sPad.top - sPad.bottom - sBorder.top - sBorder.bottom) + "px",width:self.slide_width + "px",margin:0,paddingLeft:sPad.left + spine_outer_width + "px"}
).addClass(self.classes.slide).addClass(self.classes.slide + "_" + (i + 1));
	if (self.options.hideSpines !== true){
	var spinePad ={
	top:parseInt(spine.css('padding-top'),10),right:parseInt(spine.css('padding-right'),10),bottom:parseInt(spine.css('padding-bottom'),10),left:parseInt(spine.css('padding-left'),10)}
;
	for(var k in spinePad){
	if(spinePad[k] < 10 && (k == "left" || k == "right")){
	spinePad[k] = 10;
}
}
var spinePadString = spinePad.top + "px " + spinePad.right + "px " + spinePad.bottom + "px " + spinePad.left + "px";
	var spineStyles ={
	position:'absolute',zIndex:3,display:'block',left:offset,width:(height - spinePad.left - spinePad.right) + "px",height:spine_inner_width + "px",padding:spinePadString,rotation:'270deg','-webkit-transform':'rotate(270deg)','-webkit-transform-origin':spine_half_width + 'px 0px','-moz-transform':'rotate(270deg)','-moz-transform-origin':spine_half_width + 'px 0px','-o-transform':'rotate(270deg)','-o-transform-origin':spine_half_width + 'px 0px',textAlign:'right'}
;
	if( !self.browser.msie9 ){
	spineStyles.top = (self.browser.msie) ? 0:(height - spine_half_width) + "px";
	spineStyles.marginLeft = ((self.browser.msie) ? 0:(0 - spine_half_width)) + "px";
	spineStyles.filter = 'progid:DXImageTransform.Microsoft.BasicImage(rotation=3)';
}
spine.css( spineStyles ).addClass(self.classes.spine).addClass(self.classes.spine + "_" + (i + 1));
	if(self.browser.msie9){
	spine[0].style.msTransform = 'rotate(270deg)';
	spine[0].style.msTransformOrigin = Math.round(parseInt(el[0].style.height) / 2) + 'px ' + Math.round(parseInt(el[0].style.height) / 2) + 'px';
}
}
else{
	if(typeof(spine) != "undefined"){
	spine.hide();
}
}
if(i == self.slides.length-1){
	slide.addClass('last');
	if(self.options.hideSpines !== true){
	spine.addClass('last');
}
}
// Add slide active corners if(self.options.activeCorner === true && self.options.hideSpines === false){
	var corner = document.createElement('DIV');
	corner.className = self.classes.activeCorner + ' ' + (self.classes.spine + '_' + (i + 1));
	spine.after(corner);
	spine.next('.' + self.classes.activeCorner).css({
	position:'absolute',top:'25px',left:offset + spine_outer_width + "px",overflow:"hidden",zIndex:"20000"}
).hide();
	if(spine.hasClass(self.classes.active)){
	spine.next('.' + self.classes.activeCorner).show();
}
}
if (self.options.hideSpines !== true){
	// Add spine indexes,will always be numerical if unlicensed var index = document.createElement('DIV');
	index.className = self.classes.index;
	if(self.options.index !== false){
	var textNode;
	if(typeof(self.options.index) != 'boolean'){
	textNode = self.options.index[i%self.options.index.length];
}
else{
	textNode = "" + (i + 1);
}
index.appendChild(document.createTextNode(textNode));
}
spine.append(index);
	spine.find('.' + self.classes.index).css({
	position:'absolute',zIndex:2,display:'block',width:spine_inner_width + "px",height:spine_inner_width + "px",textAlign:'center',bottom:((self.browser.msie) ? 0:(0 - spine_half_width)) + "px",left:((self.browser.msie) ? 5:20) + "px",rotation:"90deg",'-webkit-transform':'rotate(90deg)','-webkit-transform-origin':spine_half_width + 'px 0px','-moz-transform':'rotate(90deg)','-moz-transform-origin':spine_half_width + 'px 0px','-o-transform':'rotate(90deg)','-o-transform-origin':spine_half_width + 'px 0px'}
);
	if(self.browser.msie9){
	spine.find('.' + self.classes.index)[0].style.msTransform = 'rotate(90deg)';
}
FixIEAA(spine);
}
}
updateBug();
	if(self.options.hideSpines !== true){
	// Setup Click Interaction self.spines.bind('click',function(event){
	event.preventDefault();
	self.goTo(self.spines.index(this)+1);
}
);
}
// Setup Keyboard Interaction if(self.options.keys !== false){
	$(document).bind('keydown',function(event){
	if($(event.target).parents().index(self.deck) == -1){
	if(event.keyCode == 39){
	self.pauseAutoPlay = true;
	self.next();
}
else if(event.keyCode == 37){
	self.pauseAutoPlay = true;
	self.prev();
}
}
}
);
}
// Setup Mouse Wheel Interaction if(typeof($.event.special.mousewheel) != "undefined"){
	el.bind("mousewheel",function(event){
	if(self.options.scroll !== false){
	var delta = event.detail ? event.detail:event.wheelDelta;
	if(self.browser.msie || self.browser.safari || self.browser.chrome){
	delta = 0 - delta;
}
var internal = false;
	if($(event.originalTarget).parents(self.deck).length){
	if($.inArray(event.originalTarget.nodeName.toLowerCase(),['input','select','option','textarea']) != -1){
	internal = true;
}
}
if (internal !== true){
	if (delta > 0){
	switch (self.options.scroll){
	case "stop":event.preventDefault();
	break;
	case true:default:if (self.current < self.slides.length || self.options.cycle == true){
	event.preventDefault();
}
break;
}
self.pauseAutoPlay = true;
	self.next();
}
else{
	switch (self.options.scroll){
	case "stop":event.preventDefault();
	break;
	case true:default:if (self.current != 1 || self.options.cycle == true){
	event.preventDefault();
}
break;
}
self.pauseAutoPlay = true;
	self.prev();
}
}
}
}
);
}
$(self.spines[self.current - 2]).addClass(self.classes.previous);
	$(self.spines[self.current]).addClass(self.classes.next);
	if(self.options.autoPlay === true){
	autoPlay();
}
self.isLoaded = true;
}
;
	var getValidSlide = function(ind){
	ind = Math.min(self.slides.length,Math.max(1,ind));
	return ind;
}
;
	var slide = function(ind,params){
	ind = getValidSlide(ind);
	// Determine if we are moving forward in the SlideDeck or backward,// this is used to determine when the callback should be run var forward = true;
	if(ind < self.current){
	forward = false;
}
var classReset = [self.classes.active,self.classes.next,self.classes.previous].join(' ');
	self.current = ind;
	self.spines.removeClass(classReset);
	self.slides.removeClass(classReset);
	el.find('.' + self.classes.activeCorner).hide();
	$(self.spines[self.current - 2]).addClass(self.classes.previous);
	$(self.spines[self.current]).addClass(self.classes.next);
	for (var i = 0;
	i < self.slides.length;
	i++){
	var pos = 0;
	if(self.options.hideSpines !== true){
	var spine = $(self.spines[i]);
}
var slide = $(self.slides[i]);
	if (i < self.current){
	if (i == (self.current - 1)){
	slide.addClass(self.classes.active);
	if(self.options.hideSpines !== true){
	spine.addClass(self.classes.active);
	spine.next('.' + self.classes.activeCorner).show();
}
}
pos = i * spine_outer_width;
}
else{
	pos = i * spine_outer_width + slide_width;
}
if(self.options.hideSpines === true){
	pos = (i - self.current + 1) * el.width();
}
var animOpts ={
	duration:self.options.speed,easing:self.options.transition}
;
	slide.stop().animate({
	left:pos + "px",width:self.slide_width + "px"}
,animOpts);
	if(self.options.hideSpines !== true){
	FixIEAA(spine);
	if(spine.css('left') != pos+"px"){
	spine.stop().animate({
	left:pos + "px"}
,{
	duration:self.options.speed,easing:self.options.transition}
);
	spine.next('.' + self.classes.activeCorner).stop().animate({
	left:pos + spine_outer_width + "px"}
,{
	duration:self.options.speed,easing:self.options.transition}
);
}
}
}
updateBug();
}
;
	var setOption = function(opts,val){
	var newOpts = opts;
	if(typeof(opts) === "string"){
	newOpts ={
}
;
	newOpts[opts] = val;
}
for(var key in newOpts){
	val = newOpts[key];
	switch(key){
	case "speed":case "start":val = parseFloat(val);
	if(isNaN(val)){
	val = self.options[key];
}
break;
	case "scroll":case "keys":case "activeCorner":case "hideSpines":case "autoPlay":case "cycle":if(typeof(val) !== "boolean"){
	val = self.options[key];
}
break;
	case "transition":if(typeof(val) !== "string"){
	val = self.options[key];
}
break;
	case "complete":case "before":if(typeof(val) !== "function"){
	val = self.options[key];
}
break;
	case "index":if(typeof(val) !== "boolean"){
	if(!$.isArray(val)){
	val = self.options[key];
}
}
break;
}
self.options[key] = val;
}
}
;
	var setupDimensions = function(){
	height = el.height();
	width = el.width();
	el.css('height',height + "px");
	spine_inner_width = 0;
	spine_outer_width = 0;
	if(self.options.hideSpines !== true && self.spines.length > 0){
	spine_inner_width = $(self.spines[0]).height();
	spine_outer_width = $(self.spines[0]).outerHeight();
}
slide_width = width - spine_outer_width*self.spines.length;
	if(self.options.hideSpines === true){
	slide_width = width;
}
spine_half_width = Math.ceil(spine_inner_width/2);
}
;
	var initialize = function(opts){
	if((self.browser.opera && self.browser.version < "10.5") || self.browser.msie6 || self.browser.firefox2 || self.browser.firefox30){
	if(typeof(console) != "undefined"){
	if(typeof(console.error) == "function"){
	console.error("This web browser is not supported by SlideDeck. Please view this page in a modern,CSS3 capable browser or a current version of Inernet Explorer");
}
}
return false;
}
if(typeof(opts) != "undefined"){
	for(var key in opts){
	self.options[key] = opts[key];
}
}
if(self.spines.length < 1){
	self.options.hideSpines = true;
}
if(self.options.hideSpines === true){
	self.options.activeCorner = false;
}
self.current = Math.min(self.slides.length,Math.max(1,self.options.start));
	if(el.height() > 0){
	setupDimensions();
	buildDeck();
}
else{
	var startupTimer;
	startupTimer = setTimeout(function(){
	setupDimensions();
	if(el.height() > 0){
	clearInterval(startupTimer);
	setupDimensions();
	buildDeck();
}
}
,20);
}
}
;
	var loaded = function(func){
	var thisTimer;
	thisTimer = setInterval(function(){
	if(self.isLoaded == true){
	clearInterval(thisTimer);
	func();
}
}
,20);
}
;
	this.loaded = function(func){
	loaded(func);
	return self;
}
;
	this.next = function(params){
	var nextSlide = Math.min(self.slides.length,(self.current + 1));
	if(self.options.cycle === true){
	if(self.current + 1 > self.slides.length){
	nextSlide = 1;
}
}
slide(nextSlide,params);
	return self;
}
;
	this.prev = function(params){
	var prevSlide = Math.max(1,(self.current - 1));
	if(self.options.cycle === true){
	if(self.current - 1 < 1){
	prevSlide = self.slides.length;
}
}
slide(prevSlide,params);
	return self;
}
;
	this.goTo = function(ind,params){
	self.pauseAutoPlay = true;
	slide(Math.min(self.slides.length,Math.max(1,ind)),params);
	return self;
}
;
	this.setOption = function(opts,val){
	setOption(opts,val);
	return self;
}
;
	initialize(opts);
}
;
	$.fn.slidedeck = function(opts){
	var returnArr = [];
	for(var i=0;
	i<this.length;
	i++){
	if(!this[i].slidedeck){
	this[i].slidedeck = new SlideDeck(this[i],opts);
}
returnArr.push(this[i].slidedeck);
}
return returnArr.length > 1 ? returnArr:returnArr[0];
}
;
}
)(jQuery);
	

CSS代码(slidedeck.skin.css):

/*Skin Name:SlideDeck Website SkinSkin URI:http://www.slidedeck.com/Description:The skin used at slidedeck.comVersion:1.5Author:digital-telepathyAuthor URI:http://www.dtelepathy.com/Tags:flexible,white,black,multi-color*/
/* * The frame surrounding the SlideDeck. * * Customize the width,height,padding and background to customize the area * surrounding your SlideDeck. */
.skin-slidedeck{position:relative;padding:11px 11px 24px;background:url('back.png') 0 0 #d7d7d7;border:14px solid #fff;box-shadow:0 0 5px rgba(0,0,0,0.2);-moz-box-shadow:0 0 5px rgba(0,0,0,0.2);-webkit-box-shadow:0 0 5px rgba(0,0,0,0.2);}
/* * The SlideDeck element itself. * * Customize the width and height to increase or decrease the size of * your SlideDeck. */
.skin-slidedeck dl.slidedeck{position:relative;width:100%;height:100%;margin:0;padding:0;}
/* * The SlideDeck slide area. * * You can specify a height for the slide area,but it is not required,width * will automatically be defined for the slide area and will vary depending on * how many slides you have in your SlideDeck. * * To add space between a slide and the next slide's spine (slide title bar),* increase the border-right definition. To remove the space,just remove the * border definition. * * SlideDeck slides are all given a unique class,so you can customize the * appearance of each slide individually by referencing a slide by its * numbered class name. For example:* .slidedeck dd.slide_1 * .slidedeck dd.slide_2 * .slidedeck dd.slide_3 * etc... */
.skin-slidedeck dl.slidedeck > dd{position:relative;height:294px;padding:10px 15px;margin:0;border-right:5px solid #d7d7d7;background:url('slides.png') bottom left #d7d7d7;/* Note:you should position the background with pixel measurements in IE7 as it improperly calculates the height of the DD element when containing vertical slides */
 overflow:hidden;}
/* * The SlideDeck spine (slide title bar). * * SlideDeck spines are rotated,so you will need to swap your directions. To * change the width of the spine,you will need to modify the spine height. * You will also need to make sure that any background imagery used is rotated * horizontally. * * Like slides,spines are also given a unique class allowing for custom * appearance for each spine. This follows a similar naming convention:* .slidedeck dt.slide_1 * .slidedeck dt.slide_2 * .slidedeck dt.slide_3 * etc... */
.skin-slidedeck dl.slidedeck > dt{position:relative;cursor:pointer;height:43px;line-height:38px;font-size:12px;font-weight:bold;font-family:"Futura Bold",Arial,Helvetica,sans-serif;text-transform:uppercase;letter-spacing:1px;background:url('spines.png') top left #d7d7d7;color:#505050;margin:0;padding:0;}
/* * The hovered state of a SlideDeck spine. */
.skin-slidedeck dl.slidedeck dt.spine:hover{color:#000;background-position:center left;}
/* * The active state of a SlideDeck spine. */
.skin-slidedeck dl.slidedeck dt.spine.active,.skin-slidedeck dl.slidedeck dt.spine.active:hover{cursor:default;color:#fff;background-position:bottom left;}
/* * The SlideDeck spine index labels. * * This is to style the numbers (or letters if you have customized it so) * that appear at the bottom of each SlideDeck spine. */
.skin-slidedeck dl.slidedeck dt.spine .index{margin-bottom:2px;font-size:24px;font-weight:normal;font-family:Arial,Helvetica,sans-serif;color:#505050;}
.skin-slidedeck dl.slidedeck dt.spine.active .index{margin-bottom:0;}
/* * The hovered state of a SlideDeck spine index label. */
.skin-slidedeck dl.slidedeck dt.spine:hover .index{color:#000000;}
/* * The active state of a SlideDeck spine index label. */
.skin-slidedeck dl.slidedeck dt.spine.active .index{color:#ffffff;}
/* * The SlideDeck "active corner". * * This is the small triangle that appears in the upper left of the active * slide. This can be made any size and positioned differently by modifying * the margin values. By default the left margin is inset to prevent any * gap from appearing as the SlideDeck animates. */
.skin-slidedeck dl.slidedeck .activeCorner{margin-left:-6px;background-image:url('corner.png');width:12px;height:25px;}
/* * The SlideDeck vertical slide style. * * Veritcal slides will take over the entire content area of a horizontal slide * automatically. Padding will automatically be accommodated for. You can also * eliminate the padding definition to have your vertical slide content line * up flush against the containing slide content area edges. */
.skin-slidedeck dl.slidedeck dd.slide ul.slidesVertical > li{overflow:hidden;padding:10px;}
/* * The SlideDeck vertical slide navigation container. * * This is the container for the vertical slide navigation. You can position * this anywhere you want within the containing slide's area. If you try to * position it outside of the slide area it will not appear. */
.skin-slidedeck dl.slidedeck ul.verticalSlideNav{height:70px;width:25px;background:none;position:relative;overflow:hidden;padding:15px 0 0;margin:0;top:0;left:125px;-webkit-transform:rotate(90deg);-webkit-transform-origin:-7px 0;-moz-transform:rotate(90deg);-moz-transform-origin:-7px 0;-o-transform:rotate(90deg);-o-transform-origin:-7px 0;}
/* * The SlideDeck vertical slide navigation link containers. * * This is the container for a navigation link in the vertical slide navigation * element. You can adjust the width and height of this element to accommodate * for a larger vertical navigation button. * * To increase the space between vertical navigation links,increase the bottom * and/or top padding of this element. */
.skin-slidedeck dl.slidedeck ul.verticalSlideNav li{position:relative;width:25px;height:12px;line-height:12px;padding:0;margin:0;overflow:hidden;float:left;clear:left;}
/* * The SlideDeck vertical slide position indicator. * * This is the element that slides behind the default navigation link list to * show which is the current vertical slide being viewed. This should be given * similar dimensions to the vertical slide navigation links. * * NOTE:This element is not used in this skin,so it is hidden */
.skin-slidedeck dl.slidedeck dd.slide ul.verticalSlideNav li.arrow{display:none;}
/* * The SlideDeck veritcal slide navigation links. * * These are the vertical slide navigation links. By default these are a small * square that uses a sprite background image replacement method to hide the * default text that is placed in the link ("Nav 1","Nav 2","Nav 3"). * * To change the appearance of the navigation elements,you will need to use a * background image replacement as the text for the links cannot be changed. * Each vertical slide navigation link is given a unique class so they can be * styled individually. For example:* dl.slidedeck dd.slide ul.verticalSlideNav li a.nav_1 * dl.slidedeck dd.slide ul.verticalSlideNav li a.nav_2 * dl.slidedeck dd.slide ul.verticalSlideNav li a.nav_3 * etc.... */
.skin-slidedeck dl.slidedeck ul.verticalSlideNav li a{position:relative;display:block;padding:12px 0 0 0;margin:0;width:25px;height:0;overflow:hidden;line-height:12px;background:url('vertical-nav.png') 0 0 no-repeat;}
/* Vertical slide navigation style for the currently active vertical slide navigation link */
.skin-slidedeck dl.slidedeck ul.verticalSlideNav li.active a{background-position:0 -24px;}
/* Vertical slide navigation link style when the parent horizontal slide is active */
.skin-slidedeck dl.slidedeck dt.active ul.verticalSlideNav li.active a{background-position:0 -12px;}
/* * The SlideDeck vertical slide navigation link hover state. */
dl.slidedeck dd.slide ul.verticalSlideNav li a:hover{opacity:0.75;-moz-opacity:0.75;-webkit-opacity:0.75;-khtml-opacity:0.75;-ms-filter:"Alpha(opacity=75)";filter:Alpha(opacity=75);}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
366.76 KB
Html Js 图片切换触摸4
最新结算
股权转让协议意向书模板
类型: .docx 金额: CNY 2.23¥ 状态: 待结算 详细>
股权转让协议意向书模板
类型: .docx 金额: CNY 0.28¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 2.39¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 0.3¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章