source: trunk/plugins/InsertMarquee/popups/insert_marquee.html @ 210

Last change on this file since 210 was 210, checked in by gocher, 15 years ago

new plugin insert InsertMarquee?

File size: 2.8 KB
Line 
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
9var fields = ["f_name", "f_text", "f_direction", "f_behavior", "f_bgcolor", "f_width", "f_height", "f_scrollamount", "f_scrolldelay"];
10
11function 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
22function 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(required[i]);
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
43function onCancel() {
44  __dlg_close(null);
45  return false;
46};
47
48</script>
49
50</head>
51<body onload="Init()">
52<div class="title">Marquee Editor</div>
53<form>
54  <div class="fr">Name/ID:</div>
55  <input type="text" name="name" id="f_name" size="20" title="Name" value="" />
56  <p />
57  <div class="fr">Direction:</div>
58  <select id="f_direction" name="direction">
59          <option value="">Left</option>
60          <option value="right">Right</option>
61  </select>
62  <p />
63  <div class="fr">Behavior:</div>
64  <select id="f_behavior" name="behavior">
65        <option value="">Continuous</option>
66        <option value="slide">Slide</option>
67        <option value="alternate">Alternate</option>
68  </select>
69  <p />
70  <div class="fr">Text:</div>
71  <input type="text" id="f_text" name="text" value="" size="30" />
72  <p />
73  <div class="fr"><nobr>Background-Color:</nobr></div>
74  <input type="text" id="f_bgcolor" name="bgcolor" value="" size="30" />
75  <p />
76  <div class="fr">Width:</div>
77  <input type="text" id="f_width" name="width" value="100" size="5" maxlength="4" />
78  <p />
79  <div class="fr">Height:</div>
80  <input type="text" id="f_height" name="height" value="100" size="5" maxlength="4" />
81  <p />
82  <fieldset>
83  <legend>Speed Control</legend>
84    <div class="fr"><nobr>Scroll Amount:</nobr></div>
85    <input type="text" id="f_scrollamount" name="scrollamount" value="100" maxlength="4" />
86    <p />
87    <div class="fr">Scroll Delay:</div>
88    <input type="text" id="f_scrolldelay" name="scrolldelay" value="100" maxlength="4" />
89    <p />
90  </fieldset> 
91<div id="buttons">
92   <button type="submit" name="ok" onclick="return onOK();">OK</button>
93   <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
94</div>
95</form>
96</body>
97</html>
Note: See TracBrowser for help on using the repository browser.