File:  [Repository] / kupu / common / kupupopups / link.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Sep 15 13:06:00 2005 UTC (18 years, 9 months ago) by dwinter
CVS tags: MAIN, HEAD
Initial revision

<html>
<head>
<title>Kupu link box</title>
<script type="text/javascript">

function changeType(element) {
    if (element.value == "anchor") {
        element.form.url.setAttribute("disabled", "disabled");
        element.form.target.setAttribute("disabled", "disabled");
    } else {
        element.form.url.removeAttribute("disabled");
        element.form.target.removeAttribute("disabled");
    };
};

function saveLink() {
    var f = getFromSelector('linkform');
    var typeel = getFromSelector('anchorradio');
    var linktype =  (typeel.checked || typeel.getAttribute('checked')) ? 'anchor' : 'link';
    linktool.createLink(f.url.value, linktype, f.name.value, f.target.value);
    window.close();
};

</script>
<link type="text/css" rel="stylesheet" href="kupustyles.css" />
</head>

<body>
<center>
<form action="." method="POST" id="linkform">
<h3>Link details:</h3>
<table>
<tr>
<td>Type:</td>
<td>
<input type="radio" name="linktype" value="link" onclick="changeType(this)" checked="checked" />Link
<input type="radio" name="linktype" id="anchorradio" value="anchor" onclick="changeType(this)" />Anchor
</td>
</tr>
<tr>
<td>Url:</td>
<td><input type="text" name="url" value="http://" /></td>
</tr>
<tr>
<td>Target:</td>
<td><input type="text" name="target" value="_self" /></td>
</tr>
<tr>
<td>Name:</td>
<td><input type="text" name="name" /></td>
</tr>
</table>
<input type="button" onclick="window.close()" value="Cancel" />
<input type="button" onclick="saveLink()" value="Save link" />
</form>
</center>
</body>
</html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>