source: ether_statistics/web/resources/js/windows_js_1.3/samples/window_store.html @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 1.8 KB
Line 
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
33win1 = 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">
37win2 = 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">
41win3 = 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">
45win4 = new Window('4', {className: "alphacube", title: "Sample4", width:200, height:150, top:70, left:800}); win4.getContent().innerHTML = "<h1>4</h1>"; 
46WindowStore.show(win4);
47WindowStore.init();
48</script>
49</body>
50
51</html>
Note: See TracBrowser for help on using the repository browser.