茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    純js代碼制作的網(wǎng)頁(yè)時(shí)鐘特效
    來(lái)源:易賢網(wǎng) 閱讀:1294 次 日期:2016-07-14 16:24:01
    溫馨提示:易賢網(wǎng)小編為您整理了“純js代碼制作的網(wǎng)頁(yè)時(shí)鐘特效”,方便廣大網(wǎng)友查閱!

    純js代碼制作的網(wǎng)頁(yè)時(shí)鐘特效,需要的碼農(nóng)可以拿去看一下。給大家做個(gè)參考。

    <HTML><HEAD>

    <META http-equiv=Content-Type content="text/html; charset=gb2312">

    <META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>

    <BODY>

    <DIV

    style="LEFT: 155px; WIDTH: 400px; ZOOM: 1; POSITION: absolute; TOP: 133px; HEIGHT: 300px"> 

    <DIV id=bg

    style="LEFT: -22px; WIDTH: 150px; ZOOM: 1.5; POSITION: absolute; TOP: -57px; HEIGHT: 150px"><IMG

    style="Z-INDEX: 22; WIDTH: 129px; HEIGHT: 129px" src="http://files.jb51.net/upload/novelty.gif"> 

    </DIV> 

    <DIV id=h

    style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; WIDTH: 129px; PADDING-TOP: 5px; POSITION: absolute; HEIGHT: 129px"><IMG

    style="Z-INDEX: 22; WIDTH: 129px; HEIGHT: 129px" src="http://files.jb51.net/upload/novelty_h.gif"> 

    </DIV> 

    <DIV id=m

    style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; WIDTH: 129px; PADDING-TOP: 5px; POSITION: absolute; HEIGHT: 129px"><IMG

    style="Z-INDEX: 22; WIDTH: 129px; HEIGHT: 129px" src="http://files.jb51.net/upload/novelty_m.gif"> 

    </DIV> 

    <DIV id=s

    style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; WIDTH: 129px; PADDING-TOP: 5px; POSITION: absolute; HEIGHT: 129px"><IMG

    style="Z-INDEX: 22; WIDTH: 129px; HEIGHT: 129px" src="http://files.jb51.net/upload/novelty_s.gif"> 

    </DIV> 

    <DIV id=dot

    style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; WIDTH: 129px; PADDING-TOP: 5px; POSITION: absolute; HEIGHT: 129px"><IMG

    style="Z-INDEX: 22; WIDTH: 129px; HEIGHT: 129px" src="http://files.jb51.net/upload/novelty_dot.gif"> 

    </DIV> 

    <DIV> 

    <SCRIPT> 

    //oObj input requires that a matrix filter be applied. 

    //deg input defines the requested angle of rotation. 

    var deg2radians = Math.PI * 2 / 360; 

    function MatrixFilter(obj) 

    {  

     if(!obj.filters)return; 

     //alert(obj.filters.item(0)); 

     var Matrix; 

     for(p in obj.filters) 

     {  

      if(p=="DXImageTransform.Microsoft.Matrix")Matrix=obj.filters["DXImageTransform.Microsoft.Matrix"]; 

     } 

     if(!Matrix) 

     { 

      obj.style.filter+="progid:DXImageTransform.Microsoft.Matrix()"; 

     } 

     Matrix=obj.filters["DXImageTransform.Microsoft.Matrix"]; 

     this.equal=function(Matrix2D_x) 

     { 

      if(Matrix2D_x.M11)Matrix.M11 = Matrix2D_x.M11; 

      if(Matrix2D_x.M12)Matrix.M12 = Matrix2D_x.M12; 

      if(Matrix2D_x.M21)Matrix.M21 = Matrix2D_x.M21; 

      if(Matrix2D_x.M22)Matrix.M22 = Matrix2D_x.M22; 

     } 

     if(arguments[1])this.equal(arguments[1]); 

     this.Rotate=function(deg) 

     { 

      rad = deg * deg2radians; 

      costheta = Math.cos(rad); 

      sintheta = Math.sin(rad); 

      var d=new Matrix2D(costheta,-sintheta,sintheta,costheta); 

      this.equal(Matrix2D.Mul(Matrix,d)); 

     } 

     this.RotateTo=function(deg) 

     { 

      rad = deg * deg2radians; 

      costheta = Math.cos(rad); 

      sintheta = Math.sin(rad); 

      var d=new Matrix2D(costheta,-sintheta,sintheta,costheta); 

      this.equal(d); 

     } 

     this.RotateAt=function(deg,sx,sy) 

     { 

      rad = deg * deg2radians; 

      costheta = Math.cos(rad); 

      sintheta = Math.sin(rad); 

      var d=new Matrix2D(costheta,-sintheta,sintheta,costheta); 

      var x=sx-Matrix.Dx; 

      var y=sy-Matrix.Dy; 

      this.MoveTo(x*costheta+y*sintheta-x,-x*sintheta+y*costheta-y); 

      this.equal(Matrix2D.Mul(Matrix,d));  

     } 

     this.RotateToAt=function(deg,sx,sy) 

     { 

      rad = deg * deg2radians; 

      costheta = Math.cos(rad); 

      sintheta = Math.sin(rad); 

      var d=new Matrix2D(costheta,-sintheta,sintheta,costheta); 

      var x=sx; 

      var y=sy; 

      this.MoveTo(x-(x*costheta-y*sintheta),-(x*sintheta+y*costheta-x)); 

      this.equal(d); 

     } 

     this.MoveTo=function(sx,sy) 

     { 

      Matrix.Dx=sx; 

      Matrix.Dy=sy; 

     } 

     this.toMatrix2D=function() 

     { 

      return new Matrix2D(Matrix.M11,Matrix.M12,Matrix.M21,Matrix.M22); 

     } 

     this.ZoomBy=function(sx,sy) 

     { 

      var d=new Matrix2D(sx,0,0,sy); 

      this.equal(Matrix2D.Mul(Matrix,d)); 

     } 

     this.toString=function() 

     { 

      return ""+Matrix.M11+" "+Matrix.M12+"\n"+Matrix.M21+" "+Matrix.M22+"\n" 

     } 

     //Matrix.SizingMethod='clip to original'; 

     //this.fnSetRotation(30); 

     //alert(Matrix.M11); 

     //alert(obj.filters["DXImageTransform.Microsoft.Matrix"]); 

    function Matrix2D() 

     this.M11 = arguments[0]||1; 

     this.M12 = arguments[1]||0; 

     this.M21 = arguments[2]||0; 

     this.M22 = arguments[3]||1; 

     this.Mul_Matrix2D=function(Matrix2D_b) 

     { 

      var r=new Matrix2D(); 

      r=Matrix2D.Mul(this,Matrix2D_b);   

      return r;  

     } 

     this.toString=function() 

     { 

      return ""+this.M11+" "+this.M12+"\n"+this.M21+" "+this.M22+"\n" 

     } 

    Matrix2D.Mul=function(Matrix2D_a,Matrix2D_b) 

     var r=new Matrix2D(); 

     r.M11=Matrix2D_a.M11*Matrix2D_b.M11+Matrix2D_a.M12*Matrix2D_b.M21; 

     r.M12=Matrix2D_a.M11*Matrix2D_b.M12+Matrix2D_a.M12*Matrix2D_b.M22; 

     r.M21=Matrix2D_a.M21*Matrix2D_b.M11+Matrix2D_a.M22*Matrix2D_b.M21; 

     r.M22=Matrix2D_a.M21*Matrix2D_b.M12+Matrix2D_a.M22*Matrix2D_b.M22; 

     return r;  

    var ms=new MatrixFilter(s); 

    var mm=new MatrixFilter(m); 

    var mh=new MatrixFilter(h); 

    var i=1; 

    setInterval("ms.RotateToAt((new Date()).getSeconds()*6+6,69,69)",500); 

    setInterval("mm.RotateToAt((new Date()).getMinutes()*6+6,69,69)",500); 

    setInterval("mh.RotateToAt(((new Date()).getHours()+(new Date()).getMinutes()/60)*30,69,69)",500); 

    //mf.MoveTo(30,70); 

    //mf.ZoomBy(1.5,1.5); 

    //mf.ZoomBy(1.5,1.5); 

    //alert(mf.toMatrix2D()); 

    //alert(Matrix2D.Mul(m2d1,m2d2)); 

    //fnSetRotation(oDiv.filters.item(0),30); 

    </SCRIPT> 

    </DIV></DIV></BODY></HTML> 

    以上這篇純js代碼制作的網(wǎng)頁(yè)時(shí)鐘特效【附實(shí)例】就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考

    更多信息請(qǐng)查看網(wǎng)絡(luò)編程
    易賢網(wǎng)手機(jī)網(wǎng)站地址:純js代碼制作的網(wǎng)頁(yè)時(shí)鐘特效
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢(xún)回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門(mén)公布的正式信息和咨詢(xún)?yōu)闇?zhǔn)!

    2026上岸·考公考編培訓(xùn)報(bào)班

    • 報(bào)班類(lèi)型
    • 姓名
    • 手機(jī)號(hào)
    • 驗(yàn)證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡(jiǎn)要咨詢(xún) | 簡(jiǎn)要咨詢(xún)須知 | 新媒體/短視頻平臺(tái) | 手機(jī)站點(diǎn) | 投訴建議
    工業(yè)和信息化部備案號(hào):滇ICP備2023014141號(hào)-1 云南省教育廳備案號(hào):云教ICP備0901021 滇公網(wǎng)安備53010202001879號(hào) 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號(hào)
    云南網(wǎng)警備案專(zhuān)用圖標(biāo)
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢(xún)關(guān)注公眾號(hào):hfpxwx
    咨詢(xún)QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
    云南網(wǎng)警報(bào)警專(zhuān)用圖標(biāo)