实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
AخA
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 特效 - .effect() 演示</title>
6
  <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
7
  <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
8
  <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
9
  <link rel="stylesheet" href="jqueryui/style.css">
10
  <style>
11
    .toggler { width: 500px; height: 200px; position: relative; }
12
    #button { padding: .5em 1em; text-decoration: none; }
13
    #effect { width: 240px; height: 135px; padding: 0.4em; position: relative; }
14
    #effect h3 { margin: 0; padding: 0.4em; text-align: center; }
15
    .ui-effects-transfer { border: 2px dotted gray; }
16
  </style>
17
  <script>
18
  $(function() {
19
    // 运行当前选中的特效
20
    function runEffect() {
21
      // 从中获取特效类型
22
      var selectedEffect = $( "#effectTypes" ).val();