effects_test.html

来自「这是一款js组建」· HTML 代码 · 共 67 行

HTML
67
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>  <title>script.aculo.us Effects functional test file</title>  <meta http-equiv="content-type" content="text/html; charset=utf-8" />  <script src="../../lib/prototype.js" type="text/javascript"></script>  <script src="../../src/scriptaculous.js" type="text/javascript"></script>  <script src="../../src/unittest.js" type="text/javascript"></script><body><h1>script.aculo.us Effects functional test file</h1><h2>Effect.Highlight</h2><div id="debug"> </div><a href="#" onclick="new Effect.SlideDown('d1'); return false;">asdasd</a><div id="d1" onclick="new Effect.SlideUp('d1');" style="overflow:hidden;"><div  style="background-color:#ff8080;">  (highlight to red)</div></div><div id="d2" style="width:100px;height:100px;background-color:#80ff80;">  (highlight to greenish)</div><div id="d3" style="width:100px;height:100px;background-color:#dde;">  (bottom-right-grow)</div><div id="d4" style="width:100px;height:100px;background-color:#dde;" onclick="Effect.Shake(this)">  click to test shake</div><div id="d5" style="width:100px;height:100px;background-color:#dde;" onclick="Effect.Puff(this)">  click to test puff</div><a href="#" onclick="Element.show('d5'); return false;">show puff div again</a><a href="#" onclick="Effect.Appear('d6')">test appear</a><div id="d6" style="width:100px;height:100px;background-color:#dde;display:none">  appear</div><a href="#" onclick="Effect.Grow('d7')">test grow</a><div id="d7" style="width:100px;height:100px;background-color:#dde;display:none">  grow</div><a href="#" onclick="Effect.Pulsate('d8')">test pulsate default times (5)</a><a href="#" onclick="Effect.Pulsate('d8', {pulses: 2})">test pulsate 2 times</a><div id="d8" style="width:100px;height:100px;background-color:#dde;">  pulsate</div>      <script type="text/javascript" language="javascript" charset="utf-8">// <![CDATA[  new Effect.Highlight("d2",{startcolor:"#000000"});  new Effect.Grow("d3",{duration:5.0,direction: 'bottom-right',opacityTransition:Effect.Transitions.linear});  new Effect.BlindDown("d1");// ]]></script>    </body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?