📄 add.asp
字号:
<!--#include file="../Session.asp"-->
<%
if request("atcion")="add" and Request.form("EditorValue")<>"" then
dim Texts
Texts=Replace(Request.form("EditorValue"),"<P>","")
Texts=Replace(Request.form("EditorValue"),"</P>","")
conn.execute("Insert into HotPro(BigId,Texts,Links,TextId)values('"&request("BigId")&"','"&Texts&"','"&request("Links")&"',0)")
Response.redirect "Default.asp"
end if %>
<html>
<head>
<title>添加热点</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/site.css" rel="stylesheet" type="text/css">
</head>
<body>
<script language="JavaScript">
var errorString = "Sorry but this web page needs\nWindows95 and Internet Explorer 5 or above to view."
var Ok = "false";
var name = navigator.appName;
var version = parseFloat(navigator.appVersion);
var platform = navigator.platform;
if (platform == "Win32" && name == "Microsoft Internet Explorer" && version >= 4){
Ok = "true";
} else {
Ok= "false";
}
if (Ok == "false") {
alert(errorString);
}
function ColorPalette_OnClick(colorString){
cpick.bgColor=colorString;
document.all.colourp.value=colorString;
doFormat('ForeColor',colorString);
}
function initToolBar(ed) {
var eb = document.all.editbar;
if (ed!=null) {
eb._editor = window.frames['myEditor'];
}
}
function doFormat(what) {
var eb = document.all.editbar;
if(what == "FontName"){
if(arguments[1] != 1){
eb._editor.execCommand(what, arguments[1]);
document.all.font.selectedIndex = 0;
}
} else if(what == "FontSize"){
if(arguments[1] != 1){
eb._editor.execCommand(what, arguments[1]);
document.all.size.selectedIndex = 0;
}
} else {
eb._editor.execCommand(what, arguments[1]);
}
}
function swapMode() {
var eb = document.all.editbar._editor;
eb.swapModes();
}
function create() {
var eb = document.all.editbar;
eb._editor.newDocument();
}
function newFile(){
create();
}
function makeUrl(){
sUrl = document.all.what.value + document.all.url.value;
doFormat('CreateLink',sUrl);
}
function copyValue() {
var theHtml = "" + document.frames("myEditor").document.frames("textEdit").document.body.innerHTML + "";
document.all.EditorValue.value = theHtml;
}
function OnFormSubmit(){
//if(confirm("您确定您的彩色文字已经编辑完成了吗?")){
copyValue();
document.fHtmlEditor.submit();
}
//}
</script>
<form name="fHtmlEditor" method="POST" action="?atcion=add">
<textarea name="EditorValue" class="input1" style="display: none;"></textarea>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" >
<td height="50" colspan="2" valign="middle" class="tdstyle"><strong><font color="#000000" size="3"><a href="Default.asp">管理</a>|</font><font size="3"><a href="Add.asp"><strong>添加</strong></a></font></strong></td>
</tr>
<tr >
<td width="20%" align="right" class="tdstyle"> 位置:</td>
<td width="80%" class="tdstyle">
<select name="BigId" class="input1">
<option value="0">首页</option>
<%Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from BigClass order by BigId"
rs.open sql,conn,0,1
do while not rs.eof%>
<option value="<%=rs("BigId")%>"><%=rs("BCName")%></option>
<%rs.movenext
loop%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -