1 | <html>
|
---|
2 | <head>
|
---|
3 | <title>Marquee Editor</title>
|
---|
4 | <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
|
---|
5 | <script type="text/javascript" src="../../../popups/popup.js"></script>
|
---|
6 |
|
---|
7 | <script type="text/javascript">
|
---|
8 |
|
---|
9 | var fields = ["f_name", "f_text", "f_direction", "f_behavior", "f_bgcolor", "f_width", "f_height", "f_scrollamount", "f_scrolldelay"];
|
---|
10 |
|
---|
11 | function Init() {
|
---|
12 | window.resizeTo(350, 380);
|
---|
13 | __dlg_translate('InsertMarquee');
|
---|
14 | __dlg_init();
|
---|
15 | var param = window.dialogArguments;
|
---|
16 | for (var i in fields) {
|
---|
17 | document.getElementById(fields[i]).value = param[fields[i]];
|
---|
18 | }
|
---|
19 | document.getElementById("f_name").focus();
|
---|
20 | }
|
---|
21 |
|
---|
22 | function onOK() {
|
---|
23 | var required = {
|
---|
24 | "f_name": "You must enter the form name"
|
---|
25 | };
|
---|
26 | for (var i in required) {
|
---|
27 | var el = document.getElementById(i);
|
---|
28 | if (!el.value) {
|
---|
29 | alert(HTMLArea._lc(required[i], 'InsertMarquee'));
|
---|
30 | el.focus();
|
---|
31 | return false;
|
---|
32 | }
|
---|
33 | }
|
---|
34 | // pass data back to the calling window
|
---|
35 | var param = new Object();
|
---|
36 | for (var i in fields) {
|
---|
37 | param[fields[i]] = document.getElementById(fields[i]).value;
|
---|
38 | }
|
---|
39 | __dlg_close(param);
|
---|
40 | return false;
|
---|
41 | }
|
---|
42 |
|
---|
43 | function onCancel() {
|
---|
44 | __dlg_close(null);
|
---|
45 | return false;
|
---|
46 | }
|
---|
47 |
|
---|
48 | </script>
|
---|
49 | <style rel="stylesheet" type="text/css">
|
---|
50 | .fr { width: 9em; float: left; padding: 2px 5px; text-align: right; }
|
---|
51 | </style>
|
---|
52 | </head>
|
---|
53 | <body class="dialog" onload="Init()">
|
---|
54 | <div class="title">Marquee Editor</div>
|
---|
55 | <form>
|
---|
56 | <div class="fr">Name/ID:</div>
|
---|
57 | <input type="text" name="name" id="f_name" size="20" title="Name" value="" />
|
---|
58 | <p />
|
---|
59 | <div class="fr">Direction:</div>
|
---|
60 | <select id="f_direction" name="direction">
|
---|
61 | <option value="">Left</option>
|
---|
62 | <option value="right">Right</option>
|
---|
63 | </select>
|
---|
64 | <p />
|
---|
65 | <div class="fr">Behavior:</div>
|
---|
66 | <select id="f_behavior" name="behavior">
|
---|
67 | <option value="">Continuous</option>
|
---|
68 | <option value="slide">Slide</option>
|
---|
69 | <option value="alternate">Alternate</option>
|
---|
70 | </select>
|
---|
71 | <p />
|
---|
72 | <div class="fr">Text:</div>
|
---|
73 | <input type="text" id="f_text" name="text" value="" size="30" />
|
---|
74 | <p />
|
---|
75 | <div class="fr">Background-Color:</div>
|
---|
76 | <input type="text" id="f_bgcolor" name="bgcolor" value="" size="30" />
|
---|
77 | <p />
|
---|
78 | <div class="fr">Width:</div>
|
---|
79 | <input type="text" id="f_width" name="width" value="100" size="5" maxlength="4" />
|
---|
80 | <p />
|
---|
81 | <div class="fr">Height:</div>
|
---|
82 | <input type="text" id="f_height" name="height" value="100" size="5" maxlength="4" />
|
---|
83 | <p />
|
---|
84 | <fieldset>
|
---|
85 | <legend>Speed Control</legend>
|
---|
86 | <div class="fr">Scroll Amount:</div>
|
---|
87 | <input type="text" id="f_scrollamount" name="scrollamount" value="100" maxlength="4" />
|
---|
88 | <p />
|
---|
89 | <div class="fr">Scroll Delay:</div>
|
---|
90 | <input type="text" id="f_scrolldelay" name="scrolldelay" value="100" maxlength="4" />
|
---|
91 | <p />
|
---|
92 | </fieldset>
|
---|
93 | <div id="buttons">
|
---|
94 | <button type="submit" name="ok" onclick="return onOK();">OK</button>
|
---|
95 | <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
|
---|
96 | </div>
|
---|
97 | </form>
|
---|
98 | </body>
|
---|
99 | </html> |
---|