1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
---|
6 | |
---|
7 | <title>Test</title> |
---|
8 | |
---|
9 | <script type="text/javascript" src="../javascripts/prototype.js"> </script> |
---|
10 | <script type="text/javascript" src="../javascripts/window.js"> </script> |
---|
11 | <script type="text/javascript" src="../javascripts/debug.js"> </script> |
---|
12 | <script type="text/javascript" src="../javascripts/effects.js"> </script> |
---|
13 | |
---|
14 | <link href="../themes/default.css" rel="stylesheet" type="text/css" > </link> |
---|
15 | <link href="../themes/alphacube.css" rel="stylesheet" type="text/css" > </link> |
---|
16 | <title>Test</title> |
---|
17 | <style> |
---|
18 | #master_content { |
---|
19 | position:relative; |
---|
20 | overflow:hidden; |
---|
21 | } |
---|
22 | a { |
---|
23 | color:#333; |
---|
24 | font-size: 16px; |
---|
25 | } |
---|
26 | </style> |
---|
27 | |
---|
28 | </head> |
---|
29 | <body> |
---|
30 | <div id="content" style="display:none"> |
---|
31 | <a href="#" onclick="insideWindow()">open a window inside this window</a><br/></br/> |
---|
32 | <a href="#" onclick="outsideWindow()">open a window outside this window</a> |
---|
33 | </div> |
---|
34 | |
---|
35 | <script> |
---|
36 | function openPopup(){ |
---|
37 | var master = new Window("master", {className: "alphacube", width:350, height:400,title:"Master Window"}); |
---|
38 | master.setContent("content"); |
---|
39 | master.setDestroyOnClose(); |
---|
40 | master.showCenter(); |
---|
41 | } |
---|
42 | |
---|
43 | function insideWindow() { |
---|
44 | var win = new Window("win1", {className: "alphacube", top:40, left:0, width:200, height:100,title:"Inside Window", |
---|
45 | maximizable: false, minimizable: false, parent: Windows.getWindow("master").getContent()}); |
---|
46 | win.setDestroyOnClose(); |
---|
47 | win.show(); |
---|
48 | } |
---|
49 | |
---|
50 | function outsideWindow() { |
---|
51 | var win = new Window("win2", {className: "alphacube", top:40, left:0, width:200, height:100, title:"Outside Window", |
---|
52 | maximizable: false, minimizable: false}); |
---|
53 | win.setDestroyOnClose(); |
---|
54 | win.show(); |
---|
55 | } |
---|
56 | |
---|
57 | openPopup(); |
---|
58 | |
---|
59 | </script> |
---|
60 | </body> |
---|
61 | </html> |
---|