📄 insertword.asp
字号:
<html>
<head>
<title>插入文件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function insertword(wordtext,url){
if (url=="") {
alert("请提供文件路径!");
return false
}
if (wordtext=="") {
alert("请提供连接文字!");
return false
}
var sel,RangeType
opener.Composition.focus();
sel = opener.Composition.document.selection.createRange();
sel.pasteHTML("<a href=" + url + " target=_blank>" + wordtext + "</a>");
sel.select();
window.close();
}
</script>
<style type="text/css">
td {font-size: 9pt}
body {font-size: 9pt}
button {width:5em}
</style>
</head>
<body bgcolor="#f6f6f6">
<form name="form1" method="post" action="">
<table width="390" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="25">
<div align="center">插入WORD文档选项</div>
</td>
</tr>
</table><br>
<table width="390" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> 显示文字:
<input type="text" name="wordtext" size="20">
<input type="button" name="Button" value="确定" onClick="insertword(document.form1.wordtext.value,document.form1.url.value)">
<input type="button" value="上传文件" onClick='upload();' name="button">
<script>
function upload()
{
var str;
var arr_image=new Array();
str=window.showModalDialog("form_word.html","","dialogWidth:20;dialogHeight:13");
if (!str) return false;
arr_image=str.split("||");
document.form1.url.value=arr_image[0];
document.form1.bigurl.value=arr_image[1];
document.form1.url.focus();
return true;
}
</script>
<input type="hidden" name="bigurl">
</td>
</tr>
<tr>
<td>文件来源:
<input type="text" name="url" size="39" value="<%=session("wordpath1")%>">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -