⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 link.htm

📁 本文件包基于asp.net + javascript方式
💻 HTM
字号:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>插入超级链接</TITLE>
<link rel="stylesheet" type="text/css" href="../css/tools.css"> 
<script src="../common/common.js"></script>

<script language="javascript">
function returnvar()
{
	var url=sys_url.value ;
	var urlTag;
	if(url!=""){
		var color=sys_linkColor.options [sys_linkColor.selectedIndex].style.backgroundColor
		if(url.substring(0,7).toLowerCase()!="http://")
			url="http://"+url;
		if(sys_urlTag.value !="")  urlTag=sys_urlTag.value ;
		else	
			urlTag=url;
		window.returnValue="<a href=\""+ url +"\"target=\"_blank\" style=\"color:"+ color +"\">" + urlTag + "</a>";
		window.close ();
	}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>

<BODY bgColor="#d6d3ce" leftMargin="2" topMargin="12" marginheight="2" marginwidth="2">
  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="6">
    <tr>
      <td align="right">超级链接地址</td>
      <td><input type="text" id=sys_url style="width:200px" onFocus="this.select()"></td>
      <td><input type="button" id=sys_submit value="确定" onClick="returnvar()"></td>
    </tr>
    <tr>
      <td align="right">显示内容</td>
      <td><input type="text" id=sys_urlTag style="width:200px" onFocus="this.select()"></td>
      <td><input type="button" id=sys_cancel value="取消" onclick="window.close()"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>
      <select style="width: 100px" id=sys_linkColor name=select2>
			<option style="color: #000000; background: #000000">默认字体颜色
			<option style="color: #000000; background: #000000">Black
			<option style="color: #0000FF; background: #0000FF">Blue 1
			<option style="color: #2222FF; background: #2222FF">Blue 2
			<option style="color: #4444FF; background: #4444FF">Blue 3
			<option style="color: #6666FF; background: #6666FF">Blue 4
			<option style="color: #333333; background: #333333">Gray 1
			<option style="color: #666666; background: #666666">Gray 2
			<option style="color: #999999; background: #999999">Gray 3
			<option style="color: #EEEEEE; background: #EEEEEE">Gray 4
			<option style="color: #004000; background: #004000">Green 1
			<option style="color: #006000; background: #006000">Green 2
			<option style="color: #008000; background: #008000">Green 3
			<option style="color: #00A000; background: #00A000">Green 4
			<option style="color: #FF0000; background: #FF0000">Red 1
			<option style="color: #FF2222; background: #FF2222">Red 2
			<option style="color: #FF4444; background: #FF4444">Red 3
			<option style="color: #FF6666; background: #FF6666">Red 4
			<option style="color: #FFFF00; background: #FFFF00">Yellow 1
			<option style="color: #FFFF33; background: #FFFF33">Yellow 2
			<option style="color: #FFFF66; background: #FFFF66">Yellow 3
			<option style="color: #FFFF99; background: #FFFF99">Yellow 4
			</select>
      </td>
    </tr>
  </table>
</BODY>

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -