js制作的左侧上下滑动缩略图右侧渐显动.docx

上传人:b****8 文档编号:23883427 上传时间:2023-05-21 格式:DOCX 页数:44 大小:38.54KB
下载 相关 举报
js制作的左侧上下滑动缩略图右侧渐显动.docx_第1页
第1页 / 共44页
js制作的左侧上下滑动缩略图右侧渐显动.docx_第2页
第2页 / 共44页
js制作的左侧上下滑动缩略图右侧渐显动.docx_第3页
第3页 / 共44页
js制作的左侧上下滑动缩略图右侧渐显动.docx_第4页
第4页 / 共44页
js制作的左侧上下滑动缩略图右侧渐显动.docx_第5页
第5页 / 共44页
点击查看更多>>
下载资源
资源描述

js制作的左侧上下滑动缩略图右侧渐显动.docx

《js制作的左侧上下滑动缩略图右侧渐显动.docx》由会员分享,可在线阅读,更多相关《js制作的左侧上下滑动缩略图右侧渐显动.docx(44页珍藏版)》请在冰豆网上搜索。

js制作的左侧上下滑动缩略图右侧渐显动.docx

js制作的左侧上下滑动缩略图右侧渐显动

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

AnimatedPortfolioGallerywithjQuery

varCufon=(function(){varm=function(){returnm.replace.apply(null,arguments)};varx=m.DOM={ready:

(function(){varC=false,E={loaded:

1,complete:

1};varB=[],D=function(){if(C){return}C=true;for(varF;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!

window.opera&&document.readyState){(function(){E[document.readyState]?

D():

setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);returnfunction(F){if(!

arguments.length){D()}else{C?

F():

B.push(F)}}})(),root:

function(){returndocument.documentElement||document.body}};varn=m.CSS={Size:

function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){returnD/B*this.value};this.convertFrom=function(D){returnD/this.value*B};this.toString=function(){returnthis.value+this.unit}},addClass:

function(C,B){varD=C.className;C.className=D+(D&&"")+B;returnC},color:

j(function(C){varB={};B.color=C.replace(/^rgba\((.*?

),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});returnB}),fontStretch:

j(function(B){if(typeofB=="number"){returnB}if(/%$/.test(B)){returnparseFloat(B)/100}return{"ultra-condensed":

0.5,"extra-condensed":

0.625,condensed:

0.75,"semi-condensed":

0.875,"semi-expanded":

1.125,expanded:

1.25,"extra-expanded":

1.5,"ultra-expanded":

2}[B]||1}),getStyle:

function(C){varB=document.defaultView;if(B&&B.getComputedStyle){returnnewa(B.getComputedStyle(C,null))}if(C.currentStyle){returnnewa(C.currentStyle)}returnnewa(C.style)},gradient:

j(function(F){varG={id:

F,type:

F.match(/^-([a-z]+)-gradient\(/)[1],stops:

[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?

(#[a-f0-9]+|[a-z]+\(.*?

\)|[a-z]+)/ig);for(varE=0,B=C.length,D;E

j(function(E){varD=[],C=/\s*((["'])([\s\S]*?

[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}returnD}),recognizesMedia:

j(function(G){varE=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!

D.disabled;C.removeChild(E);returnB}),removeClass:

function(D,C){varB=RegExp("(?

:

^|\\s+)"+C+"(?

=\\s|$)","g");D.className=D.className.replace(B,"");returnD},supports:

function(D,C){varB=document.createElement("span").style;if(B[D]===undefined){returnfalse}B[D]=C;returnB[D]===C},textAlign:

function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=""+E}}else{if(B

j(function(F){if(F=="none"){returnnull}varE=[],G={},B,C=0;varD=/(#[a-f0-9]+|[a-z]+\(.*?

\)|[a-z]+)|(-?

[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);returnE}),textTransform:

(function(){varB={uppercase:

function(C){returnC.toUpperCase()},lowercase:

function(C){returnC.toLowerCase()},capitalize:

function(C){returnC.replace(/\b./g,function(D){returnD.toUpperCase()})}};returnfunction(E,D){varC=B[D.get("textTransform")];returnC?

C(E):

E}})(),whiteSpace:

(function(){varD={inline:

1,"inline-block":

1,"run-in":

1};varC=/^\s+/,B=/\s+$/;returnfunction(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){returnH}if(!

G.previousSibling){H=H.replace(C,"")}if(!

G.nextSibling){H=H.replace(B,"")}returnH}})()};n.ready=(function(){varB=!

n.recognizesMedia("all"),E=false;varD=[],H=function(){B=true;for(varK;K=D.shift();K()){}};varI=g("link"),J=g("style");functionC(K){returnK.disabled||G(K.sheet,K.media||"screen")}functionG(M,P){if(!

n.recognizesMedia(P||"all")){returntrue}if(!

M||M.disabled){returnfalse}try{varQ=M.cssRules,O;if(Q){search:

for(varL=0,K=Q.length;O=Q[L],L

break;case3:

if(!

G(O.styleSheet,O.media.mediaText)){returnfalse}break;default:

breaksearch}}}}catch(N){}returntrue}functionF(){if(document.createStyleSheet){returntrue}varL,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!

C(L)){returnfalse}}for(K=0;L=J[K];++K){if(!

C(L)){returnfalse}}returntrue}x.ready(function(){if(!

E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});returnfunction(K){if(B){K()}else{D.push(K)}}})();functions(D){varC=this.face=D.face,B={"\u0020":

1,"\u00a0":

1,"\u3000":

1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){varF=C.bbox.split(/\s+/);varE={minX:

parseInt(F[0],10),minY:

parseInt(F[1],10),maxX:

parseInt(F[2],10),maxY:

parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join("")};returnE})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){varO=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!

M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?

E:

0);K=M.k}P.total=F;returnP}}functionf(){varC={},B={oblique:

"italic",italic:

"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){varG=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!

G){returnnull}I={normal:

400,bold:

700}[I]||parseInt(I,10);if(G[I]){returnG[I]}varE={1:

1,99:

0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(varJinG){if(!

k(G,J)){continue}J=parseInt(J,10);if(!

F||J

D||J>D){D=J}K.push(J)}if(ID){I=D}K.sort(function(M,L){return(E?

(M>=I&&L>=I)?

M

M>L:

(M<=I&&L<=I)?

M>L:

M

-1:

1});returnG[K[0]]}}functionr(){functionD(F,G){if(F.contains){returnF.contains(G)}returnF.compareDocumentPosition(G)&16}functionB(G){varF=G.relatedTarget;if(!

F||D(this,F)){return}C(this,G.type=="mouseover")}functionE(F){C(this,F.type=="mouseenter")}functionC(F,G){setTimeout(function(){varH=d.get(F).options;m.replace(F,G?

h(H,H.hover):

H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}functionu(){varC=[],D={};functionB(H){varE=[],G;for(varF=0;G=H[F];++F){E[F]=C[D[G]]}returnE}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){varE=arguments.length?

B(arguments):

C,F;for(varG=0;F=E[G++];){m.replace(F[0],F[1],true)}}}functionA(){varD={},B=0;functionC(E){returnE.cufid||(E.cufid=++B)}this.get=function(E){varF=C(E);returnD[F]||(D[F]={})}}functiona(B){varD={},C={};this.extend=function(E){for(varFinE){if(k(E,F)){D[F]=E[F]}}returnthis};this.get=function(E){returnD[E]!

=undefined?

D[E]:

B[E]};this.getSize=function(F,E){returnC[F]||(C[F]=newn.Size(this.get(F),E))};this.isUsable=function(){return!

!

B}}functionq(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){returnD.call(C,window.event)})}}}functionv(C,B){varD=d.get(C);if(D.options){returnC}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;returnC}functionj(B){varC={};returnfunction(D){if(!

k(C,D)){C[D]=B.apply(null,arguments)}returnC[D]}}functionc(F,E){varB=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(varC=0;D=B[C];++C){if(i[D]){returni[D].get(E.get("fontStyle"),E.get("fontWeight"))}}returnnull}functiong(B){returndocument.getElementsByTagName(B)}functionk(C,B){returnC.hasOwnProperty(B)}functionh(){varC={},B,F;for(varE=0,D=arguments.length;B=arguments[E],E

n.textAlign(I[J],C,J,G):

I[J],C,N,F,D,J

M.textless[C];varB=n.getStyle(v(D,M)).extend(M);varF=c(D,B),G,K,I,H,L,J;if(!

F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}vart="".split(/\s+/).length==0;vard=newA();varb=newr();vary=newu();vare=false;varz={},i={},w={autoDetect:

false,engine:

null,forceHitArea:

false,hover:

false,hoverables:

{a:

true},ignore:

{applet:

1,canvas:

1,col:

1,colgroup:

1,head:

1,iframe:

1,map:

1,optgroup:

1,option:

1,script:

1,select:

1,style:

1,textarea:

1,title:

1,pre:

1},printable:

true,selector:

(window.Sizzle||(window.jQuery&&function(B){returnjQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return$$(B)})||(window.$&&function(B){return$(B)})||(document.querySelectorAll&&function(B){returndocument.querySelectorAll(B)})||g),separate:

"words",textless:

{dl:

1,html:

1,ol:

1,table:

1,tbody:

1,thead:

1,tfoot:

1,tr:

1,ul:

1},text

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 小学教育 > 英语

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1