Annotation of kupuMPIWG/common/kupupopups/link.html, revision 1.1.1.1
1.1 dwinter 1: <html>
2: <head>
3: <title>Kupu link box</title>
4: <script type="text/javascript">
5:
6: function changeType(element) {
7: if (element.value == "anchor") {
8: element.form.url.setAttribute("disabled", "disabled");
9: element.form.target.setAttribute("disabled", "disabled");
10: } else {
11: element.form.url.removeAttribute("disabled");
12: element.form.target.removeAttribute("disabled");
13: };
14: };
15:
16: function saveLink() {
17: var f = getFromSelector('linkform');
18: var typeel = getFromSelector('anchorradio');
19: var linktype = (typeel.checked || typeel.getAttribute('checked')) ? 'anchor' : 'link';
20: linktool.createLink(f.url.value, linktype, f.name.value, f.target.value);
21: window.close();
22: };
23:
24: </script>
25: <link type="text/css" rel="stylesheet" href="kupustyles.css" />
26: </head>
27:
28: <body>
29: <center>
30: <form action="." method="POST" id="linkform">
31: <h3>Link details:</h3>
32: <table>
33: <tr>
34: <td>Type:</td>
35: <td>
36: <input type="radio" name="linktype" value="link" onclick="changeType(this)" checked="checked" />Link
37: <input type="radio" name="linktype" id="anchorradio" value="anchor" onclick="changeType(this)" />Anchor
38: </td>
39: </tr>
40: <tr>
41: <td>Url:</td>
42: <td><input type="text" name="url" value="http://" /></td>
43: </tr>
44: <tr>
45: <td>Target:</td>
46: <td><input type="text" name="target" value="_self" /></td>
47: </tr>
48: <tr>
49: <td>Name:</td>
50: <td><input type="text" name="name" /></td>
51: </tr>
52: </table>
53: <input type="button" onclick="window.close()" value="Cancel" />
54: <input type="button" onclick="saveLink()" value="Save link" />
55: </form>
56: </center>
57: </body>
58: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>