js代码
<script src='js/jquery.wobblewindow.min.js'></script> <script> $( document ).ready( function() { //------------------------------------------------------------------------ //Settings - params for WobbleWindow var settings = { name: 'window_1', depth: 1, offsetX: 0, offsetY: 0, moveTypeIn: 'move', moveTypeOut: 'wobble', wobbleFactor: 0.9, wobbleSpeed: 0.1, moveSpeed: 3, lineWidth: 1, lineColor: '', bodyColor: '#FFF', numberOfXPoints: 7, numberOfYPoints: 5, movementLeft: true, movementRight: true, movementTop: true, movementBottom: true, debug: false }; var wobbleWindow = new WobbleWindow( document.getElementById( 'window' ), settings ); } ); </script>