国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
圖片圍成環(huán)形滾動(dòng),有空間感

圖片圍成環(huán)形滾動(dòng),有空間感

圖片圍成環(huán)形來回滾動(dòng)的圖片特效,有立體感,而且設(shè)計(jì)的也挺不錯(cuò),演示中源碼愛好者去除了部分圖片,為了讓頁面加載更快,如果你想用的話,你可以無限制添加下去,只要你的網(wǎng)頁很快哦。
 
<html>
 <head>
  <title>圖片環(huán)形滾動(dòng)</title>
<style>
html,body{background:#990000;margin:0px; }
#pics_3d{
 position:absolute;
 height:300px;
 width:100%;
 background:#000;
 top:120px;
 border-bottom:20px solid #420000;
 border-top:20px solid #420000;
}
img{
 position:absolute;
 background:#eee;
 left:0;top:0;
 border:5px solid #00CCFF;
}
</style>
 </head>
 <body>
 <div id="pics_3d">
   <img src="/jscss/demoimg/wall5.jpg" /> 
   <img src="/jscss/demoimg/wall6.jpg" /> 
   <img src="/jscss/demoimg/wall7.jpg" /> 
 </div>
 </body>
<script >
Item=function(UI){
 this.angle=0;
 this.UI=UI;
 this.update();
};
Item.ini={
 axle_w:400,
 axle_h:10,
 cen_x:500,
 cen_y:260
};
Item.prototype.update=function(){
 var J=this.UI.style,C=Item.ini,W=C.axle_w,H=C.axle_h,X=C.cen_x,Y=C.cen_y;
 var angle=this.angle/180*Math.PI;
 var left=Math.cos(angle)*W+X;
 var top=Math.sin(angle)*H+Y;
 var A=this.angle>270?this.angle-360:this.angle;
 var size=360-Math.abs(90-A)*3;
 this.UI.width=Math.max(size,120);
 var opacity=Math.max(10,size-180);
 J.filter='alpha(opacity='+opacity+')';
 J.opacity=opacity/100;
 J.left=(left-this.UI.offsetWidth/2)+'px';
 top=(top-this.UI.offsetHeight)+'px';
 J.top=top;
 J.zIndex=parseInt(size*100);
};
Nav_3D={
 items:[],
 dir:1,
 index:0,
 hover:false,
 add:function(item){
  this.items.push(item);
  item.index=this.items.length-1;
  item.UI.onclick=function (){
   var J=item.angle,M=Nav_3D;
   if(M.uping)return;
   if(J==90){
    return alert('goto new url..')
   };
   M.wheel_90(item);
   M.index=item.index;
  };
  item.UI.onmouseover=function (){
   if(item.angle==90){
    Nav_3D.hover=true;
    clearTimeout(Nav_3D.autoTimer);
   };
  };
  item.UI.onmouseout=function (){
   if(item.angle==90){
    Nav_3D.hover=false;
    Nav_3D.auto();
   };
  };
  return this;
 },
 wheel_90:function(hot){
  if(this.uping)return;
  this.uping=true;
  var This=this;
  this.timer=setInterval(function (){
   clearTimeout(This.autoTimer);
   var A=hot.angle;
   This.dir=A<270&&A>90?-1:1;
   if(A==90){
    clearInterval(This.timer);
    This.uping=false;
    This.onEnd(hot);
   }
   if(A>270)A-=360;
   var set=Math.ceil(Math.abs((90-A)*0.1));
   for (var i=0;i<This.items.length;i++ ) {
    var J=This.items[i];
    J.angle+= (set*This.dir);
    J.update();
    if(J.angle>360)J.angle-=360;
    if(J.angle<0)J.angle +=360;
   };
  },15);
 },
 ready:function(){
  var J=this.items,step=parseInt(360/J.length);
  for (var i=0;i<J.length;i++) {J[i].angle=i*step+90;}
  this.wheel_90(this.items[0]);
  Nav_3D.prevHot=this.items[0].UI;
  Nav_3D.setHot();
 },
 setHot:function(isHot){
  if(!this.prevHot)return;
  with(this.prevHot.style){
   borderColor=isHot!==false?'#CC0000':'#00CCFF';
   cursor=isHot!==false?'default':"pointer";
  };
  return this;
 },
 
 auto:function(){
  this.index--;
  if(this.index<0)this.index=this.items.length-1;
  var J=this.items[this.index];
  this.setHot(false).prevHot=J.UI;
  this.setHot();
  this.wheel_90(J);
 },
 onEnd:function(hot){
  if(this.hover){
   return setTimeout(function(){Nav_3D.onEnd();},100);
  }
  this.autoTimer=setTimeout(function(){Nav_3D.auto();},1500);
 }
};
var imgs=document.getElementById("pics_3d").getElementsByTagName("IMG");
for (var i=0;i<imgs.length;i++ ) {
 Nav_3D.add(new Item(imgs[i]))
}
Nav_3D.ready();
</script>
</html>
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
CKEditor 多圖片上傳插件(一) (二)
左右切換圖片的js源代碼
javascript+css實(shí)現(xiàn)3級導(dǎo)航菜單
帶關(guān)閉按鈕的懸浮層
XML to tree XML 樹
js/jQuery實(shí)現(xiàn)類似百度搜索功能
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服