| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. The ASF licenses this file to You |
| under the Apache License, Version 2.0 (the "License"); you may not |
| use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. For additional information regarding |
| copyright in this work, please see the NOTICE file in the top level |
| directory of this distribution. |
| --> |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
| <html>
|
| <head>
|
| <title>Insert Link</title>
|
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
| <script language="JavaScript" type="text/javascript">
|
| <!--
|
| function AddLink() {
|
| var oForm = document.linkForm;
|
|
|
| //validate form
|
| if (oForm.url.value == '') {
|
| alert('Please enter a url.');
|
| return false;
|
| }
|
| if (oForm.linkText.value == '') {
|
| alert('Please enter link text.');
|
| return false;
|
| }
|
|
|
| var html = '<a href="' + document.linkForm.url.value + '" target="' + document.linkForm.linkTarget.options[document.linkForm.linkTarget.selectedIndex].value + '">' + document.linkForm.linkText.value + '</a>';
|
|
|
| window.opener.insertHTML(html);
|
| window.close();
|
| return true;
|
| }
|
| //-->
|
| </script>
|
| </head>
|
|
|
| <body style="margin: 10px; background: #D3D3D3;">
|
|
|
| <form name="linkForm" onSubmit="return AddLink();">
|
| <table cellpadding="4" cellspacing="0" border="0">
|
| <tr><td colspan="2"><span style="font-style: italic; font-size: x-small;"><b>Tip:</b> To insert an email link, start your URL with "mailto:"</span></td></tr>
|
| <tr>
|
| <td align="right">URL:</td>
|
| <td><input name="url" type="text" id="url" size="40"></td>
|
| </tr>
|
| <tr>
|
| <td align="right">Text:</td>
|
| <td><input name="linkText" type="text" id="linkText" size="40"></td>
|
| </tr>
|
| <tr>
|
| <td align="right">Target:</td>
|
| <td align="left">
|
| <select name="linkTarget" id="linkTarget">
|
| <option value="_blank">_blank</option>
|
| <option value="_parent">_parent</option>
|
| <option value="_self" selected>_self</option>
|
| <option value="_top">_top</option>
|
| </select>
|
| </td>
|
| </tr>
|
| <tr>
|
| <td colspan="3" align="center">
|
| <input type="submit" value="Insert Link" />
|
| <input type="button" value="Cancel" onClick="window.close();" />
|
| </td>
|
| </tr>
|
| </table>
|
|
|
| </form>
|
|
|
| </body>
|
| </html>
|