带小图标jQuery图片切换特效代码

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

以下是 带小图标jQuery图片切换特效代码 的示例演示效果:

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

部分效果截图:

带小图标jQuery图片切换特效代码

HTML代码(index.html):

<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>带小图标jQuery图片切换特效</title>	
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" type="text/css" href="css/default.css">
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<!--[if IE]>
	<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<header class="cd-header">

	<nav class="cd-primary-nav">
		<ul>
			<li><a href="#0">Home</a></li>
			<li><a href="#0">Portfolio</a></li>
			<li><a href="#0">Contact</a></li>
		</ul>
	</nav> <!-- .cd-primary-nav -->
</header>

<section class="cd-hero">
	<ul class="cd-hero-slider">

		<li class="selected">
			<div class="cd-half-width">
				<h2>Slide title here</h2>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. In consequatur cumque natus!</p>
				<a href="#0" class="cd-btn">Start</a>
				<a href="#" class="cd-btn secondary">Learn More</a>
			</div> <!-- .cd-half-width -->

			<div class="cd-half-width cd-img-container">
				<img src="assets/tech-1.jpg" alt="tech 1">
			</div> <!-- .cd-half-width.cd-img-container -->
		</li>

		<li>
			<div class="cd-half-width cd-img-container">
				<img src="assets/tech-2.jpg" alt="tech 2">
			</div> <!-- .cd-half-width.cd-img-container -->

			<div class="cd-half-width">
				<h2>Slide title here</h2>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. In consequatur cumque natus!</p>
				<a href="#0" class="cd-btn">Start</a>
				<a href="#" class="cd-btn secondary">Learn More</a>
			</div> <!-- .cd-half-width -->
			
		</li>

		<li class="cd-bg-video">
			<div class="cd-full-width">
				<h2>Slide title here</h2>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, explicabo.</p>
				<a href="#" class="cd-btn">Learn more</a>
			</div> <!-- .cd-full-width -->

			<div class="cd-bg-video-wrapper" data-video="assets/video/video">
				<!-- video element will be loaded using jQuery -->
			</div> <!-- .cd-bg-video-wrapper -->
		</li>

		<li>
			<div class="cd-full-width">
				<h2>Slide title here</h2>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, explicabo.</p>
				<a href="#0" class="cd-btn">Start</a>
				<a href="#" class="cd-btn secondary">Learn More</a>
			</div> <!-- .cd-full-width -->
		</li>
	</ul> <!-- .cd-hero-slider -->

	<div class="cd-slider-nav">
		<nav>
			<span class="cd-marker item-1"></span>
			
			<ul>
				<li class="selected"><a href="#0">Intro</a></li>
				<li><a href="#0">Tech 1</a></li>
				<li><a href="#0">Tech 2</a></li>
				<li><a href="#0">Video</a></li>
				<li><a href="#0">Image</a></li>
			</ul>
		</nav> 
	</div> <!-- .cd-slider-nav -->
</section> <!-- .cd-hero -->

<script src="js/jquery-2.1.1.js"></script>
<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>





JS代码(main.js):

jQuery(document).ready(function($){
	//on mobile - open/close primary navigation clicking/tapping the menu icon$('.cd-primary-nav').on('click',function(event){
	if($(event.target).is('.cd-primary-nav')) $(this).children('ul').toggleClass('is-visible');
}
);
	//upload videos if not on mobileuploadVideo($('.cd-hero-slider'));
	//change visible slide$('.cd-slider-nav li').on('click',function(event){
	event.preventDefault();
	var selectedItem = $(this);
	if(!selectedItem.hasClass('selected')){
	// if it's not already selectedvar selectedPosition = selectedItem.index(),activePosition = $('.cd-hero-slider .selected').index();
	if( activePosition < selectedPosition){
	nextSlide($('.cd-hero-slider'),$('.cd-slider-nav'),selectedPosition);
}
else{
	prevSlide($('.cd-hero-slider'),$('.cd-slider-nav'),selectedPosition);
}
updateNavigationMarker(selectedPosition+1);
}
}
);
	function nextSlide(container,pagination,n){
	var visibleSlide = container.find('.selected'),navigationDot = pagination.find('.selected');
	visibleSlide.removeClass('selected from-left from-right').addClass('is-moving').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(){
	visibleSlide.removeClass('is-moving');
}
);
	container.children('li').eq(n).addClass('selected from-right').prevAll().addClass('move-left');
	navigationDot.removeClass('selected')pagination.find('li').eq(n).addClass('selected');
	checkVideo(visibleSlide,container,n);
}
function prevSlide(container,pagination,n){
	var visibleSlide = container.find('.selected'),navigationDot = pagination.find('.selected');
	visibleSlide.removeClass('selected from-left from-right').addClass('is-moving').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(){
	visibleSlide.removeClass('is-moving');
}
);
	container.children('li').eq(n).addClass('selected from-left').removeClass('move-left').nextAll().removeClass('move-left');
	navigationDot.removeClass('selected');
	pagination.find('li').eq(n).addClass('selected');
	checkVideo(visibleSlide,container,n);
}
function uploadVideo(container){
	container.find('.cd-bg-video-wrapper').each(function(){
	var videoWrapper = $(this);
	if( videoWrapper.is(':visible') ){
	// if visible - we are not on a mobile devicevarvideoUrl = videoWrapper.data('video'),video = $('<video loop><source src="'+videoUrl+'.mp4" type="video/mp4" /><source src="'+videoUrl+'.webm" type="video/webm" /></video>');
	video.appendTo(videoWrapper);
}
}
);
}
function checkVideo(hiddenSlide,container,n){
	//check if a video outside the viewport is playing - if yes,pause itif( hiddenSlide.find('video').length > 0 ) hiddenSlide.find('video').get(0).pause();
	//check if the select slide contains a video element - if yes,play the videoif( container.children('li').eq(n).find('video').length > 0 ) container.children('li').eq(n).find('video').get(0).play();
}
function updateNavigationMarker(n){
	$('.cd-marker').removeClassPrefix('item').addClass('item-'+n);
}
$.fn.removeClassPrefix = function(prefix){
	//remove all classes starting with 'prefix' this.each(function(i,el){
	var classes = el.className.split(" ").filter(function(c){
	return c.lastIndexOf(prefix,0) !== 0;
}
);
	el.className = $.trim(classes.join(" "));
}
);
	return this;
}
;
}
);
	

JS代码(modernizr.js):

/* Modernizr 2.8.3 (Custom Build) | MIT & BSD * Build:http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load */
;
	window.Modernizr=function(a,b,c){
	function C(a){
	j.cssText=a}
function D(a,b){
	return C(n.join(a+";
	")+(b||""))}
function E(a,b){
	return typeof a===b}
function F(a,b){
	return!!~(""+a).indexOf(b)}
function G(a,b){
	for(var d in a){
	var e=a[d];
	if(!F(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}
return!1}
function H(a,b,d){
	for(var e in a){
	var f=b[a[e]];
	if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}
return!1}
function I(a,b,c){
	var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");
	return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),H(e,b,c))}
function J(){
	e.input=function(c){
	for(var d=0,e=c.length;
	d<e;
	d++)u[c[d]]=c[d]in k;
	return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}
("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){
	for(var d=0,e,f,h,i=a.length;
	d<i;
	d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;
	visibility:hidden;
	",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;
	return t}
("search tel url email datetime date month week time datetime-local number range color".split(" "))}
var d="2.8.3",e={
}
,f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={
}
.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={
	svg:"http://www.w3.org/2000/svg"}
,s={
}
,t={
}
,u={
}
,v=[],w=v.slice,x,y=function(a,c,d,e){
	var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");
	if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);
	return f=["&#173;
	",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i}
,z=function(){
	function d(d,e){
	e=e||b.createElement(a[d]||"div"),d="on"+d;
	var f=d in e;
	return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}
var a={
	select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"}
;
	return d}
(),A={
}
.hasOwnProperty,B;
	!E(A,"undefined")&&!E(A.call,"undefined")?B=function(a,b){
	return A.call(a,b)}
:B=function(a,b){
	return b in a&&E(a.constructor.prototype[b],"undefined")}
,Function.prototype.bind||(Function.prototype.bind=function(b){
	var c=this;
	if(typeof c!="function")throw new TypeError;
	var d=w.call(arguments,1),e=function(){
	if(this instanceof e){
	var a=function(){
}
;
	a.prototype=c.prototype;
	var f=new a,g=c.apply(f,d.concat(w.call(arguments)));
	return Object(g)===g?g:f}
return c.apply(b,d.concat(w.call(arguments)))}
;
	return e}
),s.flexbox=function(){
	return I("flexWrap")}
,s.canvas=function(){
	var a=b.createElement("canvas");
	return!!a.getContext&&!!a.getContext("2d")}
,s.canvastext=function(){
	return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")}
,s.webgl=function(){
	return!!a.WebGLRenderingContext}
,s.touch=function(){
	var c;
	return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{
	#modernizr{
	top:9px;
	position:absolute}
}
"].join(""),function(a){
	c=a.offsetTop===9}
),c}
,s.geolocation=function(){
	return"geolocation"in navigator}
,s.postmessage=function(){
	return!!a.postMessage}
,s.websqldatabase=function(){
	return!!a.openDatabase}
,s.indexedDB=function(){
	return!!I("indexedDB",a)}
,s.hashchange=function(){
	return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)}
,s.history=function(){
	return!!a.history&&!!history.pushState}
,s.draganddrop=function(){
	var a=b.createElement("div");
	return"draggable"in a||"ondragstart"in a&&"ondrop"in a}
,s.websockets=function(){
	return"WebSocket"in a||"MozWebSocket"in a}
,s.rgba=function(){
	return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")}
,s.hsla=function(){
	return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")}
,s.multiplebgs=function(){
	return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){
	3}
/.test(j.background)}
,s.backgroundsize=function(){
	return I("backgroundSize")}
,s.borderimage=function(){
	return I("borderImage")}
,s.borderradius=function(){
	return I("borderRadius")}
,s.boxshadow=function(){
	return I("boxShadow")}
,s.textshadow=function(){
	return b.createElement("div").style.textShadow===""}
,s.opacity=function(){
	return D("opacity:.55"),/^0.55$/.test(j.opacity)}
,s.cssanimations=function(){
	return I("animationName")}
,s.csscolumns=function(){
	return I("columnCount")}
,s.cssgradients=function(){
	var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));
	",c="linear-gradient(left top,#9f9,white);
	";
	return C((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),F(j.backgroundImage,"gradient")}
,s.cssreflections=function(){
	return I("boxReflect")}
,s.csstransforms=function(){
	return!!I("transform")}
,s.csstransforms3d=function(){
	var a=!!I("perspective");
	return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){
	#modernizr{
	left:9px;
	position:absolute;
	height:3px;
}
}
",function(b,c){
	a=b.offsetLeft===9&&b.offsetHeight===3}
),a}
,s.csstransitions=function(){
	return I("transition")}
,s.fontface=function(){
	var a;
	return y('@font-face{
	font-family:"font";
	src:url("https://")}
',function(c,d){
	var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";
	a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}
),a}
,s.generatedcontent=function(){
	var a;
	return y(["#",h,"{
	font:0/0 a}
#",h,':after{
	content:"',l,'";
	visibility:hidden;
	font:3px/1 a}
'].join(""),function(b){
	a=b.offsetHeight>=3}
),a}
,s.video=function(){
	var a=b.createElement("video"),c=!1;
	try{
	if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg;
	codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4;
	codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm;
	codecs="vp8,vorbis"').replace(/^no$/,"")}
catch(d){
}
return c}
,s.audio=function(){
	var a=b.createElement("audio"),c=!1;
	try{
	if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg;
	codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;
	").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav;
	codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;
	")||a.canPlayType("audio/aac;
	")).replace(/^no$/,"")}
catch(d){
}
return c}
,s.localstorage=function(){
	try{
	return localStorage.setItem(h,h),localStorage.removeItem(h),!0}
catch(a){
	return!1}
}
,s.sessionstorage=function(){
	try{
	return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}
catch(a){
	return!1}
}
,s.webworkers=function(){
	return!!a.Worker}
,s.applicationcache=function(){
	return!!a.applicationCache}
,s.svg=function(){
	return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect}
,s.inlinesvg=function(){
	var a=b.createElement("div");
	return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg}
,s.smil=function(){
	return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))}
,s.svgclippaths=function(){
	return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))}
;
	for(var K in s)B(s,K)&&(x=K.toLowerCase(),e[x]=s[K](),v.push((e[x]?"":"no-")+x));
	return e.input||J(),e.addTest=function(a,b){
	if(typeof a=="object")for(var d in a)B(a,d)&&e.addTest(d,a[d]);
	else{
	a=a.toLowerCase();
	if(e[a]!==c)return e;
	b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}
return e}
,C(""),i=k=null,function(a,b){
	function l(a,b){
	var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;
	return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}
function m(){
	var a=s.elements;
	return typeof a=="string"?a.split(" "):a}
function n(a){
	var b=j[a[h]];
	return b||(b={
}
,i++,a[h]=i,j[i]=b),b}
function o(a,c,d){
	c||(c=b);
	if(k)return c.createElement(a);
	d||(d=n(c));
	var g;
	return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}
function p(a,c){
	a||(a=b);
	if(k)return a.createDocumentFragment();
	c=c||n(a);
	var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;
	for(;
	e<g;
	e++)d.createElement(f[e]);
	return d}
function q(a,b){
	b.cache||(b.cache={
}
,b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){
	return s.shivMethods?o(c,a,b):b.createElem(c)}
,a.createDocumentFragment=Function("h,f","return function(){
	var n=f.cloneNode(),c=n.createElement;
	h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){
	return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'}
)+");
	return n}
")(s,b.frag)}
function r(a){
	a||(a=b);
	var c=n(a);
	return s.shivCSS&&!g&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{
	display:block}
mark{
	background:#FF0;
	color:#000}
template{
	display:none}
")),k||q(a,c),a}
var c="3.7.0",d=a.html5||{
}
,e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g,h="_html5shiv",i=0,j={
}
,k;
	(function(){
	try{
	var a=b.createElement("a");
	a.innerHTML="<xyz></xyz>",g="hidden"in a,k=a.childNodes.length==1||function(){
	b.createElement("a");
	var a=b.createDocumentFragment();
	return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}
()}
catch(c){
	g=!0,k=!0}
}
)();
	var s={
	elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p}
;
	a.html5=s,r(b)}
(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.hasEvent=z,e.testProp=function(a){
	return G([a])}
,e.testAllProps=I,e.testStyles=y,e.prefixed=function(a,b,c){
	return b?I(a,b,c):I(a,"pfx")}
,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}
(this,this.document),function(a,b,c){
	function d(a){
	return"[object Function]"==o.call(a)}
function e(a){
	return"string"==typeof a}
function f(){
}
function g(a){
	return!a||"loaded"==a||"complete"==a||"uninitialized"==a}
function h(){
	var a=p.shift();
	q=1,a?a.t?m(function(){
	("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)}
,0):(a(),h()):q=0}
function i(a,c,d,e,f,i,j){
	function k(b){
	if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){
	"img"!=a&&m(function(){
	t.removeChild(l)}
,50);
	for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}
}
var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={
	t:d,s:c,e:f,a:i,x:j}
;
	1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){
	k.call(this,r)}
,p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}
function j(a,b,c,d,f){
	return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}
function k(){
	var a=B;
	return a.loader={
	load:j,i:0}
,a}
var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={
}
.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){
	return"[object Array]"==o.call(a)}
,x=[],y={
}
,z={
	timeout:function(a,b){
	return b.length&&(a.timeout=b[0]),a}
}
,A,B;
	B=function(a){
	function b(a){
	var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={
	url:c,origUrl:c,prefixes:a}
,e,f,g;
	for(f=0;
	f<d;
	f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));
	for(f=0;
	f<b;
	f++)c=x[f](c);
	return c}
function g(a,e,f,g,h){
	var i=b(a),j=i.autoCallback;
	i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){
	k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2}
)))}
function h(a,b){
	function c(a,c){
	if(a){
	if(e(a))c||(j=function(){
	var a=[].slice.call(arguments);
	k.apply(this,a),l()}
),g(a,j,b,0,h);
	else if(Object(a)===a)for(n in m=function(){
	var b=0,c;
	for(c in a)a.hasOwnProperty(c)&&b++;
	return b}
(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){
	var a=[].slice.call(arguments);
	k.apply(this,a),l()}
:j[n]=function(a){
	return function(){
	var b=[].slice.call(arguments);
	a&&a.apply(this,b),l()}
}
(k[n])),g(a[n],j,b,n,h))}
else!c&&l()}
var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;
	c(h?a.yep:a.nope,!!i),i&&c(i)}
var i,j,l=this.yepnope.loader;
	if(e(a))g(a,0,l,0);
	else if(w(a))for(i=0;
	i<a.length;
	i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);
	else Object(a)===a&&h(a,l)}
,B.addPrefix=function(a,b){
	z[a]=b}
,B.addFilter=function(a){
	x.push(a)}
,B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){
	b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"}
,0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){
	var k=b.createElement("script"),l,o,e=e||B.errorTimeout;
	k.src=a;
	for(o in d)k.setAttribute(o,d[o]);
	c=j?h:c||f,k.onreadystatechange=k.onload=function(){
	!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)}
,m(function(){
	l||(l=1,c(1))}
,e),i?k.onload():n.parentNode.insertBefore(k,n)}
,a.yepnope.injectCss=function(a,c,d,e,g,i){
	var e=b.createElement("link"),j,c=i?h:c||f;
	e.href=a,e.rel="stylesheet",e.type="text/css";
	for(j in d)e.setAttribute(j,d[j]);
	g||(n.parentNode.insertBefore(e,n),m(c,0))}
}
(this,document),Modernizr.load=function(){
	yepnope.apply(window,[].slice.call(arguments,0))}
;
	

CSS代码(default.css):

@import url(http://fonts.useso.com/css?family=Raleway:200,500,700,800);@font-face{font-family:'icomoon';src:url('../fonts/icomoon.eot?rretjt');src:url('../fonts/icomoon.eot?#iefixrretjt') format('embedded-opentype'),url('../fonts/icomoon.woff?rretjt') format('woff'),url('../fonts/icomoon.ttf?rretjt') format('truetype'),url('../fonts/icomoon.svg?rretjt#icomoon') format('svg');font-weight:normal;font-style:normal;}
[class^="icon-"],[class*=" icon-"]{font-family:'icomoon';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;/* Better Font Rendering =========== */
-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
body,html{font-size:100%;padding:0;margin:0;}
/* Reset */
*,*:after,*:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
/* Clearfix hack by Nicolas Gallagher:http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,.clearfix:after{content:" ";display:table;}
.clearfix:after{clear:both;}
body{background:#f9f7f6;color:#404d5b;font-weight:500;font-size:1.05em;font-family:"Segoe UI","Lucida Grande",Helvetica,Arial,"Microsoft YaHei",FreeSans,Arimo,"Droid Sans","wenquanyi micro hei","Hiragino Sans GB","Hiragino Sans GB W3","FontAwesome",sans-serif;}
a{color:#2fa0ec;text-decoration:none;outline:none;}
a:hover,a:focus{color:#74777b;}
.htmleaf-container{margin:0 auto;text-align:center;overflow:hidden;}
.htmleaf-content{font-size:150%;padding:1em 0;}
.htmleaf-content h2{margin:0 0 2em;opacity:0.1;}
.htmleaf-content p{margin:1em 0;padding:5em 0 0 0;font-size:0.65em;}
.bgcolor-1{background:#f0efee;}
.bgcolor-2{background:#f9f9f9;}
.bgcolor-3{background:#e8e8e8;}
/*light grey*/
.bgcolor-4{background:#2f3238;color:#fff;}
/*Dark grey*/
.bgcolor-5{background:#df6659;color:#521e18;}
/*pink1*/
.bgcolor-6{background:#2fa8ec;}
/*sky blue*/
.bgcolor-7{background:#d0d6d6;}
/*White tea*/
.bgcolor-8{background:#3d4444;color:#fff;}
/*Dark grey2*/
.bgcolor-9{background:#ef3f52;color:#fff;}
/*pink2*/
.bgcolor-10{background:#64448f;color:#fff;}
/*Violet*/
.bgcolor-11{background:#3755ad;color:#fff;}
/*dark blue*/
.bgcolor-12{background:#3498DB;color:#fff;}
/*light blue*/
/* Header */
.htmleaf-header{padding:1em 190px 1em;letter-spacing:-1px;text-align:center;}
.htmleaf-header h1{font-weight:600;font-size:2em;line-height:1;margin-bottom:0;font-family:"Segoe UI","Lucida Grande",Helvetica,Arial,"Microsoft YaHei",FreeSans,Arimo,"Droid Sans","wenquanyi micro hei","Hiragino Sans GB","Hiragino Sans GB W3","FontAwesome",sans-serif;}
.htmleaf-header h1 span{font-family:"Segoe UI","Lucida Grande",Helvetica,Arial,"Microsoft YaHei",FreeSans,Arimo,"Droid Sans","wenquanyi micro hei","Hiragino Sans GB","Hiragino Sans GB W3","FontAwesome",sans-serif;display:block;font-size:60%;font-weight:400;padding:0.8em 0 0.5em 0;color:#c3c8cd;}
/*nav*/
.htmleaf-demo a{color:#1d7db1;text-decoration:none;}
.htmleaf-demo{width:100%;padding-bottom:1.2em;}
.htmleaf-demo a{display:inline-block;margin:0.5em;padding:0.6em 1em;border:3px solid #1d7db1;font-weight:700;}
.htmleaf-demo a:hover{opacity:0.6;}
.htmleaf-demo a.current{background:#1d7db1;color:#fff;}
/* Top Navigation Style */
.htmleaf-links{position:relative;display:inline-block;white-space:nowrap;font-size:1.5em;text-align:center;}
.htmleaf-links::after{position:absolute;top:0;left:50%;margin-left:-1px;width:2px;height:100%;background:#dbdbdb;content:'';-webkit-transform:rotate3d(0,0,1,22.5deg);transform:rotate3d(0,0,1,22.5deg);}
.htmleaf-icon{display:inline-block;margin:0.5em;padding:0em 0;width:1.5em;text-decoration:none;}
.htmleaf-icon span{display:none;}
.htmleaf-icon:before{margin:0 5px;text-transform:none;font-weight:normal;font-style:normal;font-variant:normal;font-family:'icomoon';line-height:1;speak:none;-webkit-font-smoothing:antialiased;}
/* footer */
.htmleaf-footer{width:100%;padding-top:10px;}
.htmleaf-small{font-size:0.8em;}
.center{text-align:center;}
/****/
.related{color:#fff;background:#333;text-align:center;font-size:1.25em;padding:0.5em 0;overflow:hidden;}
.related > a{vertical-align:top;width:calc(100% - 20px);max-width:340px;display:inline-block;text-align:center;margin:20px 10px;padding:25px;font-family:"Segoe UI","Lucida Grande",Helvetica,Arial,"Microsoft YaHei",FreeSans,Arimo,"Droid Sans","wenquanyi micro hei","Hiragino Sans GB","Hiragino Sans GB W3","FontAwesome",sans-serif;}
.related a{display:inline-block;text-align:left;margin:20px auto;padding:10px 20px;opacity:0.8;-webkit-transition:opacity 0.3s;transition:opacity 0.3s;-webkit-backface-visibility:hidden;}
.related a:hover,.related a:active{opacity:1;}
.related a img{max-width:100%;opacity:0.8;border-radius:4px;}
.related a:hover img,.related a:active img{opacity:1;}
.related h3{font-family:"Microsoft YaHei",sans-serif;}
.related a h3{font-weight:300;margin-top:0.15em;color:#fff;}
/* icomoon */
.icon-htmleaf-home-outline:before{content:"\e5000";}
.icon-htmleaf-arrow-forward-outline:before{content:"\e5001";}
@media screen and (max-width:50em){.htmleaf-header{padding:3em 10% 4em;}
.htmleaf-header h1{font-size:2em;}
}
@media screen and (max-width:40em){.htmleaf-header h1{font-size:1.5em;}
}
@media screen and (max-width:30em){.htmleaf-header h1{font-size:1.2em;}
}

CSS代码(reset.css):

/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License:none (public domain)*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,main{display:block;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
table{border-collapse:collapse;border-spacing:0;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
281.64 KB
Html Js 图片切换触摸3
最新结算
股权转让协议意向书模板
类型: .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
打赏文章