| 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 | <script type="text/javascript" charset="utf-8"> |
|---|
| 11 | Position.includeScrollOffsets = true; |
|---|
| 12 | </script> |
|---|
| 13 | <body> |
|---|
| 14 | <h1>script.aculo.us Effects functional test file</h1> |
|---|
| 15 | |
|---|
| 16 | <h2>Effect.Puff</h2> |
|---|
| 17 | |
|---|
| 18 | <div id="p1" style="width:100px;height:100px;background-color:#dde;" onclick="Effect.Puff(this)"> |
|---|
| 19 | click to test puff, no position set |
|---|
| 20 | </div> |
|---|
| 21 | |
|---|
| 22 | <div id="p2" style="float:right;width:100px;height:100px;background-color:#dde;" onclick="Effect.Puff(this)"> |
|---|
| 23 | click to test puff, floats |
|---|
| 24 | </div> |
|---|
| 25 | |
|---|
| 26 | <div id="p3" style="position:absolute;left:200px;top:100px;width:100px;height:100px;background-color:#dde;" onclick="Effect.Puff(this)"> |
|---|
| 27 | click to test puff, absolute position set |
|---|
| 28 | </div> |
|---|
| 29 | |
|---|
| 30 | <h3>Floating inside a container</h3> |
|---|
| 31 | |
|---|
| 32 | <div style="width:300px;height:300px;border:1px solid red"> |
|---|
| 33 | <div style="float:left;width:100px;height:100px;background-color:#888;" onclick="Effect.Puff(this)"> |
|---|
| 34 | click to puff |
|---|
| 35 | </div> |
|---|
| 36 | <div style="float:left;width:100px;height:100px;background-color:#999;" onclick="Effect.Puff(this)"> |
|---|
| 37 | click to puff |
|---|
| 38 | </div> |
|---|
| 39 | <div style="float:left;width:100px;height:100px;background-color:#aaa;" onclick="Effect.Puff(this)"> |
|---|
| 40 | click to puff |
|---|
| 41 | </div> |
|---|
| 42 | <div style="float:left;width:100px;height:100px;background-color:#bbb;" onclick="Effect.Puff(this)"> |
|---|
| 43 | click to puff |
|---|
| 44 | </div> |
|---|
| 45 | <div style="float:left;width:100px;height:100px;background-color:#ccc;" onclick="Effect.Puff(this)"> |
|---|
| 46 | click to puff |
|---|
| 47 | </div> |
|---|
| 48 | <div style="float:left;width:100px;height:100px;background-color:#ddd;" onclick="Effect.Puff(this)"> |
|---|
| 49 | click to puff |
|---|
| 50 | </div> |
|---|
| 51 | <div style="float:left;width:100px;height:100px;background-color:#eee;" onclick="Effect.Puff(this)"> |
|---|
| 52 | click to puff |
|---|
| 53 | </div> |
|---|
| 54 | <div style="float:left;width:100px;height:100px;background-color:#777;" onclick="Effect.Puff(this)"> |
|---|
| 55 | click to puff |
|---|
| 56 | </div> |
|---|
| 57 | <div style="float:left;width:100px;height:100px;background-color:#666;" onclick="Effect.Puff(this)"> |
|---|
| 58 | click to puff |
|---|
| 59 | </div> |
|---|
| 60 | </div> |
|---|
| 61 | |
|---|
| 62 | </div> |
|---|
| 63 | |
|---|
| 64 | </body> |
|---|
| 65 | </html> |
|---|