?? admin_up_article.asp
字號:
<!--#include file="conn.asp"-->
<%
if session("login")<>"yes" then
response.write "<script language=JavaScript>" & chr(13) & "alert('您還未登陸或者超時,請重登陸!');"&"window.location.href = '../'"&" </script>"
response.end
end if
sql="select * from article where id="&clng(request("id"))
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css.css" type="text/css">
<title>友情連接修改</title>
<base target="_self">
</head>
<body bgcolor="#CAD7F7" style="text-align: center">
<script>
<!--
function checkform(){
if (form1.title.value ==""){
alert("請輸入留言主題!");
form1.title.focus();
return;}
if (form1.content.value ==""){
alert("請輸入留言內容!");
form1.content.focus();
return;}
if (document.form1.content.value.length>1000) {
alert("您發表的留言大于所規定字數!");
document.form1.content.focus();
return}
form1.submit();
}
helpstat = false;
stprompt = true;
basic = false;
function thelp(swtch){
if (swtch == 1){
basic = false;
stprompt = false;
helpstat = true;
} else if (swtch == 0) {
helpstat = false;
stprompt = false;
basic = true;
} else if (swtch == 2) {
helpstat = false;
basic = false;
stprompt = true;
}
}
function del(ID){
if(confirm('您確定要刪除嗎?'))
{
location.href="user_save.asp?info=guest_del&ID="+ID+""
}
}
function FormMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function AddText(NewCode) {
document.form1.content.value+=NewCode
}
function email() {
if (helpstat) {
alert("Email 標記\n插入 Email 超級鏈接\n用法1: [email]webmaster@aspsky.net[/email]\n用法2: [email=webmaster@aspsky.net]網傲[/email]");
} else if (basic) {
AddTxt="[email][/email]";
AddText(AddTxt);
} else {
txt2=prompt("鏈接顯示的文字.\n如果為空,那么將只顯示你的 Email 地址","");
if (txt2!=null) {
txt=prompt("Email 地址.","lesyi@126.com");
if (txt!=null) {
if (txt2=="") {
AddTxt="[email]"+txt+"[/email]";
} else {
AddTxt="[email="+txt+"]"+txt2;
AddText(AddTxt);
AddTxt="[/email]";
}
AddText(AddTxt);
}
}
}
}
function showsize(size) {
if (helpstat) {
alert("文字大小標記\n設置文字大小.\n可變范圍 1 - 6.\n 1 為最小 6 為最大.\n用法: [size="+size+"]這是 "+size+" 文字[/size]");
} else if (basic) {
AddTxt="[size="+size+"][/size]";
AddText(AddTxt);
} else {
txt=prompt("大小 "+size,"文字");
if (txt!=null) {
AddTxt="[size="+size+"]"+txt;
AddText(AddTxt);
AddTxt="[/size]";
AddText(AddTxt);
}
}
}
function bold() {
if (helpstat) {
alert("加粗標記\n使文本加粗.\n用法: [b]這是加粗的文字[/b]");
} else if (basic) {
AddTxt="[b][/b]";
AddText(AddTxt);
} else {
txt=prompt("文字將被變粗.","文字");
if (txt!=null) {
AddTxt="[b]"+txt;
AddText(AddTxt);
AddTxt="[/b]";
AddText(AddTxt);
}
}
}
function italicize() {
if (helpstat) {
alert("斜體標記\n使文本字體變為斜體.\n用法: [i]這是斜體字[/i]");
} else if (basic) {
AddTxt="[i][/i]";
AddText(AddTxt);
} else {
txt=prompt("文字將變斜體","文字");
if (txt!=null) {
AddTxt="[i]"+txt;
AddText(AddTxt);
AddTxt="[/i]";
AddText(AddTxt);
}
}
}
function quote() {
if (helpstat){
alert("引用標記\n引用一些文字.\n用法: [quote]引用內容[/quote]");
} else if (basic) {
AddTxt="[quote][/quote]";
AddText(AddTxt);
} else {
txt=prompt("被引用的文字","文字");
if(txt!=null) {
AddTxt="[quote]"+txt;
AddText(AddTxt);
AddTxt="[/quote]";
AddText(AddTxt);
}
}
}
function showcolor(color) {
if (helpstat) {
alert("顏色標記\n設置文本顏色. 任何顏色名都可以被使用.\n用法: [color="+color+"]顏色要改變為"+color+"的文字[/color]");
} else if (basic) {
AddTxt="[color="+color+"][/color]";
AddText(AddTxt);
} else {
txt=prompt("選擇的顏色是: "+color,"文字");
if(txt!=null) {
AddTxt="[color="+color+"]"+txt;
AddText(AddTxt);
AddTxt="[/color]";
AddText(AddTxt);
}
}
}
function center() {
if (helpstat) {
alert("對齊標記\n使用這個標記, 可以使文本左對齊、居中、右對齊.\n用法: [align=center|left|right]要對齊的文本[/align]");
} else if (basic) {
AddTxt="[align=center|left|right][/align]";
AddText(AddTxt);
} else {
txt2=prompt("對齊樣式\n輸入 'center' 表示居中, 'left' 表示左對齊, 'right' 表示右對齊.","center");
while ((txt2!="") && (txt2!="center") && (txt2!="left") && (txt2!="right") && (txt2!=null)) {
txt2=prompt("錯誤!\n類型只能輸入 'center' 、 'left' 或者 'right'.","");
}
txt=prompt("要對齊的文本","文本");
if (txt!=null) {
AddTxt="\r[align="+txt2+"]"+txt;
AddText(AddTxt);
AddTxt="[/align]";
AddText(AddTxt);
}
}
}
function hyperlink() {
if (helpstat) {
alert("超級鏈接標記\n插入一個超級鏈接標記\n使用方法: [url]http://www.cacy.net[/url]\nUSE: [url=http://www.cacy.net]鏈接文字[/url]");
} else if (basic) {
AddTxt="[url][/url]";
AddText(AddTxt);
} else {
txt2=prompt("鏈接文本顯示.\n如果不想使用, 可以為空, 將只顯示超級鏈接地址. ","");
if (txt2!=null) {
txt=prompt("超級鏈接.","http://");
if (txt!=null) {
if (txt2=="") {
AddTxt="[url]"+txt;
AddText(AddTxt);
AddTxt="[/url]";
AddText(AddTxt);
} else {
AddTxt="[url="+txt+"]"+txt2;
AddText(AddTxt);
AddTxt="[/url]";
AddText(AddTxt);
}
}
}
}
}
function showcode() {
if (helpstat) {
alert("代碼標記\n使用代碼標記,可以使你的程序代碼里面的 html 等標志不會被破壞.\n使用方法:\n [code]這里是代碼文字[/code]");
} else if (basic) {
AddTxt="\r[code]\r[/code]";
AddText(AddTxt);
} else {
txt=prompt("輸入代碼","");
if (txt!=null) {
AddTxt="\r[code]"+txt;
AddText(AddTxt);
AddTxt="[/code]";
AddText(AddTxt);
}
}
}
function list() {
if (helpstat) {
alert("列表標記\n建造一個文字或則數字列表.\n\nUSE: [list] [*]項目一[/*] [*]項目二[/*] [*]項目三[/*] [/list]");
} else if (basic) {
AddTxt=" [list][*] [/*][*] [/*][*] [/*][/list]";
AddText(AddTxt);
} else {
txt=prompt("列表類型\n輸入 'A' 表示有序列表, '1' 表示無序列表, 留空表示無序列表.","");
while ((txt!="") && (txt!="A") && (txt!="a") && (txt!="1") && (txt!=null)) {
txt=prompt("錯誤!\n類型只能輸入 'A' 、 '1' 或者留空.","");
}
if (txt!=null) {
if (txt=="") {
AddTxt="[list]";
} else {
AddTxt="[list="+txt+"]";
}
txt="1";
while ((txt!="") && (txt!=null)) {
txt=prompt("列表項\n空白表示結束列表","");
if (txt!="") {
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -