1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
4 | <head> |
---|
5 | <title>script.aculo.us Effects functional test file</title> |
---|
6 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
---|
7 | <script src="../../lib/prototype.js" type="text/javascript"></script> |
---|
8 | <script src="../../src/scriptaculous.js" type="text/javascript"></script> |
---|
9 | <script src="../../src/unittest.js" type="text/javascript"></script> |
---|
10 | <body> |
---|
11 | <h1>script.aculo.us Effects functional test file</h1> |
---|
12 | |
---|
13 | <h2>Effect.Highlight</h2> |
---|
14 | |
---|
15 | <div id="debug"> </div> |
---|
16 | |
---|
17 | <a href="#" onclick="new Effect.SlideDown('d1'); return false;">asdasd</a> |
---|
18 | |
---|
19 | <div id="d1" onclick="new Effect.SlideUp('d1');" style="overflow:hidden;"><div style="background-color:#ff8080;"> |
---|
20 | |
---|
21 | (highlight to red) |
---|
22 | |
---|
23 | </div></div> |
---|
24 | |
---|
25 | <div id="d2" style="width:100px;height:100px;background-color:#80ff80;"> |
---|
26 | (highlight to greenish) |
---|
27 | </div> |
---|
28 | |
---|
29 | <div id="d3" style="width:100px;height:100px;background-color:#dde;"> |
---|
30 | (bottom-right-grow) |
---|
31 | </div> |
---|
32 | |
---|
33 | <div id="d4" style="width:100px;height:100px;background-color:#dde;" onclick="Effect.Shake(this)"> |
---|
34 | click to test shake |
---|
35 | </div> |
---|
36 | |
---|
37 | <div id="d5" style="width:100px;height:100px;background-color:#dde;" onclick="Effect.Puff(this)"> |
---|
38 | click to test puff |
---|
39 | </div> |
---|
40 | <a href="#" onclick="Element.show('d5'); return false;">show puff div again</a> |
---|
41 | |
---|
42 | <a href="#" onclick="Effect.Appear('d6')">test appear</a> |
---|
43 | <div id="d6" style="width:100px;height:100px;background-color:#dde;display:none"> |
---|
44 | appear |
---|
45 | </div> |
---|
46 | |
---|
47 | <a href="#" onclick="Effect.Grow('d7')">test grow</a> |
---|
48 | <div id="d7" style="width:100px;height:100px;background-color:#dde;display:none"> |
---|
49 | grow |
---|
50 | </div> |
---|
51 | |
---|
52 | <a href="#" onclick="Effect.Pulsate('d8')">test pulsate default times (5)</a> |
---|
53 | <a href="#" onclick="Effect.Pulsate('d8', {pulses: 2})">test pulsate 2 times</a> |
---|
54 | <div id="d8" style="width:100px;height:100px;background-color:#dde;"> |
---|
55 | pulsate |
---|
56 | </div> |
---|
57 | |
---|
58 | <script type="text/javascript" language="javascript" charset="utf-8"> |
---|
59 | // <![CDATA[ |
---|
60 | new Effect.Highlight("d2",{startcolor:"#000000"}); |
---|
61 | new Effect.Grow("d3",{duration:5.0,direction: 'bottom-right',opacityTransition:Effect.Transitions.linear}); |
---|
62 | new Effect.BlindDown("d1"); |
---|
63 | // ]]> |
---|
64 | </script> |
---|
65 | |
---|
66 | </body> |
---|
67 | </html> |
---|