1 | <html> |
---|
2 | |
---|
3 | <head> |
---|
4 | <title>WindowStore example</title> |
---|
5 | <script type="text/javascript" src="../javascripts/prototype.js"> </script> |
---|
6 | <script type="text/javascript" src="../javascripts/effects.js"> </script> |
---|
7 | <script type="text/javascript" src="../javascripts/window.js"> </script> |
---|
8 | <script type="text/javascript" src="../javascripts/window_ext.js"> </script> |
---|
9 | <script type="text/javascript" src="../javascripts/debug.js"> </script> |
---|
10 | <link href="../themes/default.css" rel="stylesheet" type="text/css"> |
---|
11 | <!-- Add this to have a specific theme--> |
---|
12 | <link href="../themes/alphacube.css" rel="stylesheet" type="text/css"> |
---|
13 | |
---|
14 | |
---|
15 | </head> |
---|
16 | |
---|
17 | <body> |
---|
18 | <b>My personal configuration of the windows:</b><br> |
---|
19 | <br> |
---|
20 | <br> |
---|
21 | <br> |
---|
22 | <br> |
---|
23 | <br> |
---|
24 | <br> |
---|
25 | <center><a href="#" onclick="win1.show();">open window1</a></center> |
---|
26 | <center><a href="#" onclick="win2.show();">open window2</a></center> |
---|
27 | <center><a href="#" onclick="win3.show();">open window3</a></center> |
---|
28 | <center><a href="#" onclick="win4.show();">open window4</a></center> |
---|
29 | |
---|
30 | <script type="text/javascript"> |
---|
31 | |
---|
32 | |
---|
33 | win1 = new Window('1', {className: "alphacube", title: "Sample1", width:200, height:150, top:70, left:100}); win1.getContent().innerHTML = "<h1>1</h1>"; |
---|
34 | </script> |
---|
35 | |
---|
36 | <script type="text/javascript"> |
---|
37 | win2 = new Window('2', {className: "alphacube", title: "Sample2", width:200, height:150, top:270, left:100}); win2.getContent().innerHTML = "<h1>2</h1>"; |
---|
38 | </script> |
---|
39 | |
---|
40 | <script type="text/javascript"> |
---|
41 | win3 = new Window('3', {className: "alphacube", title: "Sample3", width:200, height:150, top:270, left:400}); win3.getContent().innerHTML = "<h1>3</h1>"; |
---|
42 | </script> |
---|
43 | |
---|
44 | <script type="text/javascript"> |
---|
45 | win4 = new Window('4', {className: "alphacube", title: "Sample4", width:200, height:150, top:70, left:800}); win4.getContent().innerHTML = "<h1>4</h1>"; |
---|
46 | WindowStore.show(win4); |
---|
47 | WindowStore.init(); |
---|
48 | </script> |
---|
49 | </body> |
---|
50 | |
---|
51 | </html> |
---|