?? hyperlink.php
字號:
target = document.getElementById('web_target').value;
title = document.getElementById('web_title').value;
} else {
window.close();
return false;
}
parentWindow.wp_hyperlink(obj,address,target,title);
top.window.close();
return false;
}
function localLink(page) {
if (document.getElementById('placeonthissite').style.display == 'block') {
document.getElementById('site_address').value=page;
} else if (document.getElementById('placeonthispage').style.display == 'block') {
document.getElementById('page_address').value=page;
}
preview(page)
}
function preview(url) {
if (document.getElementById('placeonthissite').style.display == 'block') {
var previewPane = 'site_preview';
} else if (document.getElementById('external').style.display == 'block') {
var previewPane = 'web_preview';
} else {
return true;
}
if (url == "") {
nopreview = true;
} else if (url.substring(0,1) == "#") {
nopreview = true;
} else if (url.substring(0,5) == "file:") {
nopreview = true;
} else if (url.substring(0,4) == "ftp:") {
nopreview = true;
} else if (url.substring(0,7) == "gopher:") {
nopreview = true;
} else if (url.substring(0,7) == "mailto:") {
nopreview = true;
} else if (url.substring(0,5) == "news:") {
nopreview = true;
} else if (url.substring(0,5) == "wais:") {
nopreview = true;
} else if (url.substring(0,5) == "http:") {
nopreview = false;
} else if (url.substring(0,6) == "https:") {
nopreview = false;
} else {
nopreview = false;
}
url = make_url_with_base (url);
if (nopreview) {
if (wp_is_ie) {
document.frames(previewPane).location.replace('<?php echo WP_WEB_DIRECTORY; ?>no_preview.php?lang=<?php echo $lang_include; ?>');
} else {
document.getElementById(previewPane).contentWindow.location.replace('<?php echo WP_WEB_DIRECTORY; ?>no_preview.php?lang=<?php echo $lang_include; ?>');
}
} else if (wp_is_ie) {
document.frames(previewPane).location.replace(url);
} else {
document.getElementById(previewPane).contentWindow.location.replace(url);
}
}
function showLinks() {
document.getElementById('site_button').className = 'tbuttonDown';
document.getElementById('placeonthissite').style.display = 'block';
document.getElementById('placeonthispage').style.display = 'none';
document.getElementById('email').style.display = 'none';
document.getElementById('external').style.display = 'none';
}
function showAnchors() {
document.getElementById('page_button').className = 'tbuttonDown';
document.getElementById('placeonthissite').style.display = 'none';
document.getElementById('placeonthispage').style.display = 'block';
document.getElementById('email').style.display = 'none';
document.getElementById('external').style.display = 'none';
}
function showEmail() {
document.getElementById('email_button').className = 'tbuttonDown';
document.getElementById('placeonthissite').style.display = 'none';
document.getElementById('placeonthispage').style.display = 'none';
document.getElementById('email').style.display = 'block';
document.getElementById('external').style.display = 'none';
}
function showWeb() {
document.getElementById('web_button').className = 'tbuttonDown';
document.getElementById('placeonthissite').style.display = 'none';
document.getElementById('placeonthispage').style.display = 'none';
document.getElementById('email').style.display = 'none';
document.getElementById('external').style.display = 'block';
}
//-->
</script>
</head>
<body scroll="no" onLoad="initialize(); hideLoadMessage();">
<?php include('./includes/load_message.php'); ?>
<form name="form1" id="form1" onSubmit="return linkit();">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td valign="top" width="90" align="center"><p><?php echo $lang['link_to']; ?></p>
<div id="outlookbar">
<div class="tbuttonUp" id="site_button" style="display:none">
<p><img src="<?php echo WP_WEB_DIRECTORY; ?>images/spacer.gif" width="1" height="3" alt=""><br>
<img src="<?php echo WP_WEB_DIRECTORY; ?>images/file_on_this_site.gif" width="22" height="23" alt=""></p>
<p><?php echo $lang['place_on_website']; ?></p>
</div>
<div class="tbuttonUp" id="page_button" style="display:none">
<p><img src="<?php echo WP_WEB_DIRECTORY; ?>images/spacer.gif" width="1" height="3" alt=""><br>
<img src="<?php echo WP_WEB_DIRECTORY; ?>images/place_on_this_page.gif" width="22" height="23" alt=""></p>
<p><?php echo $lang['place_in_document']; ?></p>
</div>
<div class="tbuttonUp" id="email_button" style="display:block">
<p><img src="<?php echo WP_WEB_DIRECTORY; ?>images/spacer.gif" width="1" height="3" alt=""><br>
<img src="<?php echo WP_WEB_DIRECTORY; ?>images/email_address.gif" width="22" height="23" alt=""></p>
<p><?php echo $lang['email_address']; ?></p>
</div>
<div class="tbuttonUp" id="web_button" style="display:block">
<p><img src="<?php echo WP_WEB_DIRECTORY; ?>images/spacer.gif" width="1" height="3" alt=""><br>
<img src="<?php echo WP_WEB_DIRECTORY; ?>images/external_link.gif" width="22" height="23" alt=""></p>
<p><?php echo $lang['web_location']; ?></p>
</div>
</div></td>
<td><div id="placeonthissite" style="display:none">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td> <div id="links" style="width:250px; height:223px; background-color:#FFFFFF; border: 2px inset threedface; overflow:auto; padding:5px 5px">
<!-- a list of links to pages on your site should be generated below: -->
</div></td>
<td> <iframe id="site_preview" class="previewWindow" security="restricted" frameborder="0" width="250" height="221" src="<?php echo WP_WEB_DIRECTORY; ?>blank.php?lang=<?php echo $lang_include; ?>"></iframe>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="3" cellpadding="1">
<tr>
<td><?php echo $lang['address']; ?></td>
<td><input type="text" size="50" name="site_address" id="site_address" value="" onChange="preview(this.value)" title="Example: /folder/document.html"></td>
</tr>
<tr>
<td width="60"><?php echo $lang['title']; ?></td>
<td> <input type="text" size="50" name="site_title" id="site_title" value="" title="Creates a pop-up message like what you are reading now.">
</td>
</tr>
<tr>
<td width="60"><?php echo $lang['window']; ?></td>
<td> <select name="site_target_list" id="site_target_list" onChange="document.getElementById('site_target').value=this.options[this.selectedIndex].value">
<option value="" selected="selected"><?php echo $lang['default']; ?></option>
<option value="_self"><?php echo $lang['same_window']; ?></option>
<option value="_blank"><?php echo $lang['new_window']; ?></option>
<option value="_parent"><?php echo $lang['parent_window']; ?></option>
<option value="_top"><?php echo $lang['top_window']; ?></option>
</select> <input type="text" size="23" name="site_target" id="site_target" value=""></td>
</tr>
</table>
</div>
<div id="placeonthispage" style="display:none">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td> <div id="anchors" style="width:500px; height:250px; background-color:#FFFFFF; border: 2px inset threedface; overflow:auto; padding:5px 5px">
<!-- a list of bookmarks in this page will be generated below: -->
</div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="3" cellpadding="1">
<tr>
<td><?php echo $lang['address']; ?></td>
<td><input type="text" size="50" name="page_address" id="page_address" value="" onChange="preview(this.value)" title="<?php echo $lang['example']; ?> #bookmarkName"></td>
</tr>
<tr>
<td width="60"><?php echo $lang['title']; ?></td>
<td> <input type="text" size="50" name="page_title" id="page_title" value="" title="<?php echo $lang['creates_popup_message']; ?>">
</td>
</tr>
</table>
</div>
<div id="email" style="display:none">
<table width="100%" border="0" cellspacing="3" cellpadding="1">
<tr>
<td width="100"><?php echo $lang['email_address2']; ?></td>
<td><input type="text" size="50" name="email_address" id="email_address" value="" onChange="preview(this.value)" title="<?php echo $lang['example']; ?> me@mycompany.com"></td>
</tr>
<tr>
<td width="100"><?php echo $lang['subject']; ?></td>
<td><input type="text" size="50" name="email_subject" id="email_subject" value="" title="<?php echo $lang['type_a_subject']; ?>"></td>
</tr>
<tr>
<td width="100"><?php echo $lang['title']; ?></td>
<td> <input type="text" size="50" name="email_title" id="email_title" value="" title="<?php echo $lang['creates_popup_message']; ?>">
</td>
</tr>
</table>
</div>
<div id="external" style="display:none">
<iframe id="web_preview" class="previewWindow" security="restricted" frameborder="0" width="500" height="228" src="<?php echo WP_WEB_DIRECTORY; ?>blank.php?lang=<?php echo $lang_include; ?>"></iframe>
<table width="100%" border="0" cellspacing="3" cellpadding="1">
<tr>
<td><?php echo $lang['address']; ?></td>
<td><input type="text" size="50" name="web_address" id="web_address" value="" title="<?php echo $lang['example']; ?> http://www.website.com/about/index.html"><button class="chooseImage" type="button" onClick="preview(document.getElementById('web_address').value)" title="<?php echo $lang['preview']; ?>"><img src="<?php echo WP_WEB_DIRECTORY; ?>images/view.gif" width="16" height="16" align="absmiddle" title="<?php echo $lang['preview']; ?>" alt="<?php echo $lang['preview']; ?>"></button>
</tr>
<tr>
<td width="60"><?php echo $lang['title']; ?></td>
<td> <input type="text" size="50" name="web_title" id="web_title" value="" title="<?php echo $lang['creates_popup_message']; ?>">
</td>
</tr>
<tr>
<td width="60"><?php echo $lang['window']; ?></td>
<td> <select name="web_target_list" id="web_target_list" onChange="document.getElementById('web_target').value=this.options[this.selectedIndex].value">
<option value="" selected="selected"><?php echo $lang['default']; ?></option>
<option value="_self"><?php echo $lang['same_window']; ?></option>
<option value="_blank"><?php echo $lang['new_window']; ?></option>
<option value="_parent"><?php echo $lang['parent_window']; ?></option>
<option value="_top"><?php echo $lang['top_window']; ?></option>
</select> <input type="text" size="23" name="web_target" id="web_target" value=""></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br>
<div align="center">
<button type="submit"><?php echo $lang['ok']; ?></button>
<button type="button" onClick="top.window.close();"><?php echo $lang['cancel']; ?></button>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -