?? add.asp
字號:
<%@ Language=VBScript %>
<!--#INCLUDE FILE="conn.asp" -->
<!--#INCLUDE FILE="copyright.asp" -->
<%
Set rs2 = Server.CreateObject("ADODB.Recordset")
sql2 ="SELECT * From config Order By id DESC"
RS2.open sql2,Conn,3,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=JavaScript>
helpstat = false;
stprompt = false;
basic = true;
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 AddText(NewCode) {
document.note.note.value+=NewCode
}
function email() {
if (helpstat) {
alert("email標簽將把一個email地址轉換為一個超級鏈接。\n\n用法1:[url]windstudio\@etang.com[/url] \n用法2:[url=\"windstudio\@etang.com\"]寫郵件給我[/url]");
}
else if (basic) {
AddTxt="[url][/url]";
AddText(AddTxt);
}
else {
txt2=prompt("鏈接所顯示的文字:(如果你想直接顯示鏈接地址請留空)","");
if (txt2!=null) {
txt=prompt("鏈接的地址:","mailto:");
if (txt!=null) {
if (txt2=="") {
AddTxt="[url]"+txt+"[/url]";
AddText(AddTxt);
} else {
AddTxt="[url=\""+txt+"\"]"+txt2+"[/url]";
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+"[/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+"[/i]";
AddText(AddTxt);
}
}
}
function showcolor(color) {
if (helpstat) {
alert("設置文本的顏色,所有的顏色名稱都可以使用。\n\n用法:["+color+"]這是"+color+"色的文字[/"+color+"]");
} else if (basic) {
AddTxt="["+color+"][/"+color+"]";
AddText(AddTxt);
} else {
txt=prompt("文字顏色:"+color,"文字");
if(txt!=null) {
AddTxt="["+color+"]"+txt+"[/"+color+"]";
AddText(AddTxt);
}
}
}
function hyperlink() {
if (helpstat) {
alert("超級鏈接:把一個網址變成超級鏈接。\n\n用法1:[url]http://www.windstudio.net[/url]\n\n用法2:[url=http://www.windstudio.net]歡迎訪問我的網站[/url]");
} else if (basic) {
AddTxt="[url][/url]";
AddText(AddTxt);
} else {
txt2=prompt("鏈接所顯示的文字:(如果你想直接顯示鏈接請不要填寫任何文字)","");
if (txt2!=null) {
txt=prompt("鏈接的地址:","http://");
if (txt!=null) {
if (txt2=="") {
AddTxt="[url]"+txt+"[/url]";
AddText(AddTxt);
} else {
AddTxt="[url=\""+txt+"\"]"+txt2+"[/url]";
AddText(AddTxt);
}
}
}
}
}
function image() {
if (helpstat){
alert("在帖子里面加入一個圖片。\n\n用法:[img]http://www.windstudio.net/bbs//images/logo.gif[/img]");
} else if (basic) {
AddTxt="[img][/img]";
AddText(AddTxt);
} else {
txt=prompt("圖片的地址:","http://");
if(txt!=null) {
AddTxt="[img]"+txt+"[/img]";
AddText(AddTxt);
}
}
}
function showcode() {
if (helpstat) {
alert("你可以把代碼按照原來的格式引用到帖子里面來,\n主要用來發表程序代碼。\n\n用法:[code]這里是代碼[/code]");
} else if (basic) {
AddTxt=" [code][/code]";
AddText(AddTxt);
} else {
txt=prompt("請輸入你要插入的代碼:","");
if (txt!=null) {
AddTxt="[code]"+txt+"[/code]";
AddText(AddTxt);
}
}
}
function underline() {
if (helpstat) {
alert("給文字添加下劃線。\n\n用法:[u]這是帶下劃線的文字[/u]");
} else if (basic) {
AddTxt="[u][/u]";
AddText(AddTxt);
} else {
txt=prompt("請輸入需要加下劃線的文字:","文字");
if (txt!=null) {
AddTxt="[u]"+txt+"[/u]";
AddText(AddTxt);
}
}
}
function OpenPreview()
{
var curCookie = "strnotePreview=" + escape(document.note.note.value);
curCookie.key2 = document.note.note.value
document.cookie = curCookie;
popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=750,height=450')
}
function setsmiley(what)
{
document.note.note.value = document.note.note.value+""+what;
document.note.note.focus();
}
//-->
</SCRIPT>
<title><%=rs2("title")%>-發表新貼</title>
</head>
<%top%>
<BR>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="81">
<tr>
<td width="100%" height="81">
<form method="POST" action="save.asp" name="note">
<div align="center">
<center>
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="61%" id="AutoNumber2" height="1">
<tr>
<td width="12%" height="15" bgcolor="#F6F6F6" align="center">標題:</td>
<td width="88%" height="15" colspan="3">
<input type="text" name="subject" size="52" style="border:1px solid #99CC00; "> </td>
</tr>
<tr>
<td width="12%" height="17" bgcolor="#F6F6F6" align="center">姓名:</td>
<td width="34%" height="17">
<input type="text" name="name" size="21" style="border:1px solid #99CC00;"> </td>
<td width="11%" height="17" bgcolor="#F6F6F6">
<p align="center">來自:</td>
<td width="43%" height="17">
<input type="text" name="from" size="22" style="border:1px solid #99CC00; "></td>
</tr>
<tr>
<td width="12%" height="17" bgcolor="#F6F6F6" align="center">信箱:</td>
<td width="34%" height="17">
<input type="text" name="email" size="21" style="border:1px solid #99CC00; "></td>
<td width="11%" height="17" bgcolor="#F6F6F6">
<p align="center">主頁:</td>
<td width="43%" height="17">
<input type="text" name="homepage" size="22" style="border:1px solid #99CC00; "></td>
</tr>
<tr>
<td width="12%" height="16" bgcolor="#F6F6F6" align="center">OICQ:</td>
<td width="34%" height="16">
<input type="text" name="oicq" size="21" style="border:1px solid #99CC00; "></td>
<td width="54%" height="16" colspan="2">
<p align="center"></td>
</tr>
<tr>
<td width="12%" height="27" bgcolor="#F6F6F6" align="center">頭像:</td>
<td width="88%" height="27" colspan="3">
<input type="radio" value="b" name="sex" checked><img border="0" src="img/b.gif"><input type="radio" value="g" name="sex"><img border="0" src="img/g.gif" width="32" height="32"><input type="radio" value="b3" name="sex"><img border="0" src="img/b3.gif"><input type="radio" value="g2" name="sex"><img border="0" src="img/g2.gif"><input type="radio" value="b2" name="sex"><img border="0" src="img/b2.gif"><input type="radio" value="g3" name="sex"><img border="0" src="img/g3.gif"></td>
</tr>
<tr>
<td width="12%" height="1" bgcolor="#F6F6F6" align="center"> </td>
<td width="88%" height="1" colspan="3" valign="middle">
<%ubb%></td>
</tr>
<tr>
<td width="12%" height="70" bgcolor="#F6F6F6" align="center">內容:</td>
<td width="88%" height="70" colspan="3">
<textarea rows="11" name="note" cols="50" style="border:1px solid #99CC00; "></textarea></td>
</tr>
<tr>
<td width="12%" height="6" bgcolor="#F6F6F6" align="center"> </td>
<td width="88%" height="6" colspan="3">
<%face%> </td>
</tr>
</table>
</center>
</div>
<p align="center">
<input type="submit" value="發表" name="B1" style="border-style: solid; border-width: 1; background-color: #F6F6F6">
<input type="reset" value="清除" name="B2" style="border-style: solid; border-width: 1; background-color: #F6F6F6">
</p>
</form>
<p></td>
</tr>
</table>
</body>
<%copyright%>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -