Jquery控制項jrumble

來源:互聯網
上載者:User

標籤:rip   jrumble   sheet   pos   function   bsp   ges   ota   1.7   

<!DOCTYPE HTML>
<html>
 <head>
  <title>demo.html</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="css/style.css" />
  <link rel="stylesheet" href="css/prettify.css" />
  <script src="js/jquery-1.7.2.min.js"></script>
  <script src="js/jquery.jrumble.1.3.min.js"></script>
  <script src="js/prettify.js"></script>
  <script type="text/javascript">
   $(function(){
    /*========================================================*/
    /* Ranges
    /*========================================================*/
    $(‘#demo1‘).jrumble({
     x: 2,
     y: 2,
     rotation: 1
    });
    
    $(‘#demo2‘).jrumble({
     x: 10,
     y: 10,
     rotation: 4
    });
    
    $(‘#demo3‘).jrumble({
     x: 4,
     y: 0,
     rotation: 0
    });
    
    $(‘#demo4‘).jrumble({
     x: 0,
     y: 0,
     rotation: 5
    });
    
    $(‘#demo1, #demo2, #demo3, #demo4‘).hover(function(){
     $(this).trigger(‘startRumble‘);
    }, function(){
     $(this).trigger(‘stopRumble‘);
    });
   });
  </script>
 </head>

 <body onLoad="prettyPrint()">
 <div id="content">
  <div class="demo-box">
   <h4>x: 2<br/>y: 2<br/>rotation: 1</h4>
   <div id="demo1">1</div>
  </div>
  <div class="demo-box">
   <h4>x: 10<br/>y: 10<br/>rotation: 4</h4>
   <div id="demo2">2</div>
  </div>
  
  <div class="demo-box">
   <h4>x: 4<br/>y: 0<br/>rotation: 0</h4>
   <div id="demo3">3</div>
  </div>
  
  <div class="demo-box last">
   <h4>x: 0<br/>y: 0<br/>rotation: 5</h4>
   <div id="demo4">4</div>
  </div>
 </div>
 </body>
</html>

Jquery控制項jrumble

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.