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

📄 t.asp

📁 1.地址缩短
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!--#include file="boardconn.asp"-->
<!--#include file="inc/sql.asp"-->
<!--#include file="inc/inc.asp"-->
<!--#include file="inc/ip.asp"-->
<!--#include file="inc/const.asp"-->
<!--#include file="inc/validitycheck.asp"-->
<!--#include file="inc/file.asp"-->
<!--#include file="inc/postubb.asp"-->
<%
	Dim BoardNlass,BoardClass,BoardChild,BoardName,Action,Page
	BoardName=Request.QueryString("/")
	Action=CInt(Request.QueryString("Action"))
	Page=CInt(Request.QueryString("T"))
	if Page<=0  then Page=1
	Sql="select BoardNlass,BoardClass,BoardChild from QiQiBoy_Board_Disp where BoardName='"&BoardName&"'"
	Set Rs=Conn.execute(Sql)
	BoardNlass=rs(0)
	BoardClass=rs(1)
	BoardChild=rs(2)
	Sql="select BoardMaster from QiQiBoy_Board_Disp where BoardName='"&BoardName&"'"
	Set Rs=Conn.execute(Sql)
	BoardMaster=rs(0)
	Sql="select count(TopicID) from QiQiBoy_Topic_Disp where ParentID=0 and BoardChild="&Cint(BoardChild)
	Set Rs=Conn.execute(Sql)
	TopicID=rs(0)
	Sql="select count(TopicID) from QiQiBoy_Topic_Disp where ParentID<>0 and BoardChild="&Cint(BoardChild)
	Set Rs=Conn.execute(Sql)
	ReplyID=rs(0)
%>
<HTML>
<HEAD>
<TITLE><%=BoardName%> - <%=HOST_NAME%> - <%=HOST_LIST%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=GB2312">
<link rel="shortcut icon" href="images/bbs.ico">
<link href="style/style.css" rel="stylesheet" type="text/css">
<script src="inc/showface.js" language="JavaScript"></script>
<script language="JavaScript">
<!--
function form1_onsubmit() {
if (document.form1.Key.value=="")
	{
	  alert("友情提示!\n\n请完整输入贴吧名称!")
	  document.form1.Key.focus()
	  return false
	 }
}
// -->
</script>
<script LANGUAGE="JavaScript">
 function showOrHide(value) {
    if (value==0) {
        if (document.layers)
           document.layers["layer"].visibility='hide';
        else
           document.all["layer"].style.visibility='hidden';
   }
   else if (value==1) {
       if (document.layers)
          document.layers["layer"].visibility='show';
       else
          document.all["layer"].style.visibility='visible';
   }
}
</script>
<script language="JavaScript">
<!--
function myForm_onsubmit() {
if (document.myForm.Title.value=="")
	{
	  alert("友情提示!\n\n请完整输入帖子标题!")
	  document.myForm.Title.focus()
	  return false
	 }
else if (document.myForm.Content.value=="")
	{
	  alert("友情提示!\n\n请完整输入帖子内容!")
	  document.myForm.Content.focus()
	  return false
	 }
else if (document.myForm.Title.value.length <3 )
	{
	  alert("友情提示!\n\n帖子标题长度不得小于3字节或大于50字节,当前的帖子标题长度为:"+myForm.Title.value.length+"")
	  document.myForm.Title.focus()
	  return false
	 }
else if (document.myForm.Title.value.length >50 )
	{
	  alert("友情提示!\n\n帖子标题长度不得小于3字节或大于50字节,当前的帖子标题长度为:"+myForm.Title.value.length+"")
	  document.myForm.Title.focus()
	  return false
	 }
else if (document.myForm.Content.value.length <3 )
	{
	  alert("友情提示!\n\n帖子内容长度不得小于3字节或大于8000字节,当前的帖子内容长度为:"+myForm.Content.value.length+"")
	  document.myForm.Content.focus()
	  return false
	 }
else if (document.myForm.Content.value.length >8000 )
	{
	  alert("友情提示!\n\n帖子内容长度不得小于3字节或大于8000字节,当前的帖子内容长度为:"+myForm.Content.value.length+"")
	  document.myForm.Content.focus()
	  return false
	 }
}
// -->
</script>
<SCRIPT language=JavaScript>
basic = false;
stprompt = true;

function AddText(NewCode) {
document.myForm.Content.value+=NewCode
}
function rtitle(i)
{
document.myForm.Title.value=i+document.myForm.Title.value;
}
function Font(FONT) {
 	if (basic) {
		AddTxt="\r[FACE="+FONT+"][/FACE]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("要设置字体的文字"+FONT,"文字");
		if (txt!=null) {             
			AddTxt="\r[FACE="+FONT+"]"+txt;
			AddText(AddTxt);
			AddTxt="[/FACE]";
			AddText(AddTxt);
		}        
	}  
}

function Size(SIZE) {
	if (basic) {
		AddTxt="\r[SIZE="+SIZE+"][/SIZE]";
		AddText(AddTxt);
	} else {                       
		txt=prompt("要设置字体的大小"+SIZE,"文字"); 
		if (txt!=null) {             
			AddTxt="\r[SIZE="+SIZE+"]"+txt;
			AddText(AddTxt);
			AddTxt="[/SIZE]";
			AddText(AddTxt);
		}        
	}
}

function Color(COLOR) {
	if (basic) {
		AddTxt="\r[COLOR="+COLOR+"][/COLOR]";
		AddText(AddTxt);
	} else {  
     	txt=prompt("要设置字体的颜色"+COLOR,"文字");
		if(txt!=null) {
			AddTxt="\r[COLOR="+COLOR+"]"+txt;
			AddText(AddTxt);        
			AddTxt="[/COLOR]";
			AddText(AddTxt);
		} 
	}
}

function Bold() {
	if (basic) {
		AddTxt="\r[B][/B]";
		AddText(AddTxt);
	} else {  
		txt=prompt("粗体文字","文本");     
		if (txt!=null) {           
			AddTxt="\r[B]"+txt;
			AddText(AddTxt);
			AddTxt="[/B]";
			AddText(AddTxt);
		}       
	}
}

function Italicize() {
	if (basic) {
		AddTxt="\r[I][/I]";
		AddText(AddTxt);
	} else {   
		txt=prompt("斜体文字","文本");     
		if (txt!=null) {           
			AddTxt="\r[I]"+txt;
			AddText(AddTxt);
			AddTxt="[/I]";
			AddText(AddTxt);
		}	        
	}
}

function Underline() {
  	if (basic) {
		AddTxt="\r[U][/U]";
		AddText(AddTxt);
	} else {  
		txt=prompt("下划线文字","文本");     
		if (txt!=null) {           
			AddTxt="\r[U]"+txt;
			AddText(AddTxt);
			AddTxt="[/U]";
			AddText(AddTxt);
		}	        
	}
}

function Left() {
 	if (basic) {
		AddTxt="\r[ALIGN=LEFT][/ALIGN]";
		AddText(AddTxt);
	} else{  
		txt=prompt("左对齐的文本","文本");     
		if (txt!=null) {          
			AddTxt="\r[ALIGN=LEFT]"+txt;
			AddText(AddTxt);
			AddTxt="[/ALIGN]";
			AddText(AddTxt);
		}	       
	}
}

function Center() {
 	if (basic) {
		AddTxt="\r[ALIGN=CENTER][/ALIGN]";
		AddText(AddTxt);
	} else{  
		txt=prompt("居中对齐的文本","文本");     
		if (txt!=null) {          
			AddTxt="\r[ALIGN=CENTER]"+txt;
			AddText(AddTxt);
			AddTxt="[/ALIGN]";
			AddText(AddTxt);
		}	       
	}
}

function Right() {
 	if (basic) {
		AddTxt="\r[ALIGN=RIGHT][/ALIGN]";
		AddText(AddTxt);
	} else{  
		txt=prompt("右对齐的文本","文本");     
		if (txt!=null) {          
			AddTxt="\r[ALIGN=RIGHT]"+txt;
			AddText(AddTxt);
			AddTxt="[/ALIGN]";
			AddText(AddTxt);
		}	       
	}
}

function Link() {
	if (basic) {
		AddTxt="\r[URL][/URL]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("显示链接的文本.\n如果为空,那么将只显示超级链接地址",""); 
		if (txt2!=null) {
			txt=prompt("http:// 超级链接","http://");      
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="\r[URL]"+txt;
					AddText(AddTxt);
					AddTxt="[/URL]";
					AddText(AddTxt);
				} else {
					AddTxt="[URL="+txt+"]"+txt2;
					AddText(AddTxt);
					AddTxt="[/URL]";
					AddText(AddTxt);
				}         
			} 
		}
	}
}

function Mail() {
	if (basic) {
		AddTxt="\r[EMAIL][/EMAIL]";
		AddText(AddTxt);
	} else { 
		txt2=prompt("显示链接的文本.\n如果为空,那么将只显示你的 Email 地址",""); 
		if (txt2!=null) {
			txt=prompt("email 电子邮件地址","xxx@domain.com");      
			if (txt!=null) {
				if (txt2=="") {
					AddTxt="\r[EMAIL]"+txt+"[/EMAIL]";
				} else {
					AddTxt="[EMAIL="+txt+"]"+txt2;
					AddText(AddTxt);
					AddTxt="[/EMAIL]";
				} 
				AddText(AddTxt);	        
			}

⌨️ 快捷键说明

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