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

📄 ye_gonggao_add.asp

📁 类似于baidu的百度知道
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%if session("admin")="" then
response.write"你没有登录或是非法用户!<meta http-equiv=refresh content='1;url=../Index.asp'>"
response.End()
end if%>
<!--#include file=conn.asp-->
<!--#include file="../Config.asp"-->
<!--#include file=Ye_Up.asp-->
<link href=ht.css rel=stylesheet type=text/css>
<title><%=webname%>_发布公告</title>
<br>
<SCRIPT language=JavaScript>
basic = false;
stprompt = true;

function AddText(NewCode) {
document.fb.text.value+=NewCode
}
function rtitle(i)
{
document.fb.Title.value=i+document.fb.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);	        
			}
		}
	}
}

function Image() {
	if (basic) {
		AddTxt="\r[IMG][/IMG]";
		AddText(AddTxt);
	} else {  
		txt=prompt("外部图片地址","http://");    
		if(txt!=null) {            
			AddTxt="\r[IMG]"+txt;
			AddText(AddTxt);
			AddTxt="[/IMG]";
			AddText(AddTxt);
		}	
	}
}

function Flash() {
 	if (basic) {
		AddTxt="\r[FLASH=380,330][/FLASH]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("flash 动画文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[FLASH=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/FLASH]";
			AddText(AddTxt);
		}        
	}  
}

function Cwmv() {
 	if (basic) {
		AddTxt="\r[MP=380,330][/MP]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Media Player 文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[MP=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/MP]";
			AddText(AddTxt);
		}        
	}  
}

function Crm() {
 	if (basic) {
		AddTxt="\r[RM=380,330][/RM]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Real Player 文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[RM=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/RM]";
			AddText(AddTxt);
		}        
	}  
}

function Cmov() {
 	if (basic) {
		AddTxt="\r[QT=380,330][/QT]";
		AddText(AddTxt);
	} else {                  
		txt=prompt("Quick Time 文件的地址","http://");
		if (txt!=null) {             
			AddTxt="\r[QT=380,330]"+txt;
			AddText(AddTxt);
			AddTxt="[/QT]";
			AddText(AddTxt);
		}        
	}  
}

function Code() {
	if (basic) {
		AddTxt="\r[CODE][/CODE]";
		AddText(AddTxt);
	} else {   
		txt=prompt("插入标记的代码","文本");     
		if (txt!=null) {          
			AddTxt="\r[CODE]"+txt;
			AddText(AddTxt);
			AddTxt="[/CODE]";
			AddText(AddTxt);
		}	       
	}
}

function Quote() {

⌨️ 快捷键说明

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