📄 ybb.htm
字号:
<HTML><HEAD><TITLE>YBB代码编辑器</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>A:link {
TEXT-DECORATION: none
}
A:visited {
TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
A:link {
}
A:hover {
COLOR: red
}
.c {
FONT: 9pt/12pt 宋体; TEXT-DECORATION: none
}
.d {
FONT: 13.5pt/15.5pt 宋体; TEXT-DECORATION: none
}
BODY {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
TABLE {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
TextBox {
FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #f7f7f7
}
PasswordBox {
FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #f7f7f7
}
TEXTAREA {
FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #f7f7f7
}
Checkbox {
FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #f7f7f7
}
Radio {
FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #f7f7f7
}
SELECT {
FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #f7f7f7
}
INPUT {
FONT-SIZE: 9pt; COLOR: #000000; PADDING-TOP: 3px; BACKGROUND-COLOR: #f7f7f7
}
</STYLE>
<SCRIPT language=JavaScript>
var head="display:''"
function doit(header){
var head=header.style
if (head.display=="none")
head.display=""
else
head.display="none"
}
function begin() {
ubbcode=samplehtml=""
imghtml=imgubb=""
colorbegin=colorend=colorbeginhtml=colorendhtml=""
fontbegin=fontend=fontbeginhtml=fontendhtml=""
sizebegin=sizeend=sizebeginhtml=sizeendhtml=""
centerbegin=centerend=centerbeginhtml=centerendhtml=""
ubegin=uend=ubeginhtml=uendhtml=""
bbegin=bend=bbeginhtml=bendhtml=""
ibegin=iend=ibeginhtml=iendhtml=""
linkbegin=linkend=linkbeginhtml=linkendhtml=""
sampletext="范例文字"
document.tool.ubbcode.value=ubbcode
document.all.eOutput.innerHTML=samplehtml
document.tool.sample.value=sampletext
}
function printsample(){
samplehtml=centerbeginhtml+linkbeginhtml+sizebeginhtml+ubeginhtml+bbeginhtml+ibeginhtml+fontbeginhtml+colorbeginhtml+imghtml+sampletext+colorendhtml+fontendhtml+iendhtml+bendhtml+uendhtml+sizeendhtml+linkendhtml+centerendhtml
document.all.eOutput.innerHTML=samplehtml
}
function printubbcode() {
ubbcode=centerbegin+linkbegin+sizebegin+ubegin+bbegin+ibegin+fontbegin+colorbegin+imgubb+sampletext+colorend+fontend+iend+bend+uend+sizeend+linkend+centerend
document.tool.ubbcode.value=ubbcode
document.tool.sample.value=sampletext
printsample();
}
function sampleupdate(stxt){
sampletext=stxt
printubbcode();
}
function paste() {
opener.document.PostTopic.Message.value+=ubbcode
}
function showcolor(color){
colorbegin="[color="+color+"]"
colorend="[/color]"
colorbeginhtml="<font color=\""+color+"\">"
colorendhtml="</font>"
printubbcode();
}
function center() {
if (centerbegin!="") {
centerbegin=centerend=centerbeginhtml=centerendhtml=""
} else {
centerbegin="[center]"
centerend="[/center]"
centerbeginhtml="<center>"
centerendhtml="</center>"
}
printubbcode();
}
function bold() {
if (bbegin!="") {
bbegin=bend=bbeginhtml=bendhtml=""
} else {
bbegin="[b]"
bend="[/b]"
bbeginhtml="<b>"
bendhtml="</b>"
}
printubbcode();
}
function marquee() {
if (centerbegin!="") {
centerbegin=centerend=centerbeginhtml=centerendhtml=""
} else {
centerbegin="[marquee]"
centerend="[/marquee]"
centerbeginhtml="<marquee>"
centerendhtml="</marquee>"
}
printubbcode();
}
function italicize() {
if (ibegin!="") {
ibegin=iend=ibeginhtml=iendhtml=""
} else {
ibegin="[i]"
iend="[/i]"
ibeginhtml="<i>"
iendhtml="</i>"
}
printubbcode();
}
function underline() {
if (ubegin!="") {
ubegin=uend=ubeginhtml=uendhtml=""
} else {
ubegin="[u]"
uend="[/u]"
ubeginhtml="<u>"
uendhtml="</u>"
}
printubbcode();
}
function img(){
imgtxt=prompt("链接图像.","http://");
if(imgtxt!=null){
imgubb="[img]"+imgtxt+"[/img]"
imghtml="<img src=\""+imgtxt+"\" border=0>"
sampletext=""
printubbcode();
}
}
function showsize(size){
sizebegin="[size="+size+"]"
sizeend="[/size]"
sizebeginhtml="<font size=\""+size+"\">"
sizeendhtml="</font>"
printubbcode();
}
function hyperlink(){
urltxt=prompt("超级链接.","http://");
if(urltxt!=null){
sampletext=urltxt
document.tool.sample.value=sampletext
linkbegin="[url]"
linkend="[/url]"
linkbeginhtml="<a href=\""+urltxt+"\">"
linkendhtml="</a>"
printubbcode();
}
}
function email(){
urltxt=prompt("Email地址.","name@domain.com");
if(urltxt!=null){
sampletext=urltxt
document.tool.sample.value=sampletext
linkbegin="[email]"
linkend="[/email]"
linkbeginhtml="<a href=\"mailto:"+urltxt+"\">"
linkendhtml="</a>"
printubbcode();
}
}
function openWindow(url) {
popupWin = window.open('ybbcode.htm','','scrollbars=yes')
}
</SCRIPT>
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY text=black bgColor=#bbee99 leftMargin=0 topMargin=0 onload=begin()>
<CENTER><BR>
<FORM name=tool>
<TABLE cellSpacing=0 borderColorDark=white cellPadding=0 width=420 align=center
bgColor=silver borderColorLight=black border=1>
<TBODY>
<TR>
<TD align=middle height=20>YBB代码编辑器</TD></TR>
<TR>
<TD>
<TABLE cellSpacing=1 cellPadding=1 border=0>
<TBODY>
<TR>
<TD noWrap><IMG onclick=bold() height=22 alt=加粗
src="bold.gif" width=23 border=0><IMG
onclick=italicize() height=22 alt=倾斜
src="italicize.gif" width=23 border=0><IMG
onclick=underline() height=22 alt=下划线
src="underline.gif" width=23 border=0> <IMG
onclick=center() height=22 alt=居中 src="center.gif"
width=23 border=0><IMG onclick=marquee() height=22 alt=移动文字
src="list.gif" width=23 border=0> <IMG onclick=hyperlink() height=22 alt=链接
src="url.gif" width=23 border=0><IMG onclick=email()
height=22 alt="插入Email" src="ybbemail.gif" width=23
border=0><IMG onclick=img() height=22 alt=插入图像
src="ybbimage.gif" width=23 border=0> <IMG onclick=openWindow() alt=点这里查看YBB专用代码
src="help.gif" border=0></TD>
<TD align=right width="100%">
<select onchange="showsize(this.options[this.selectedIndex].value)" name="size">
<option value="2" selected>10pt</option>
<option value="3">12pt</option>
<option value="4">14pt</option>
</select><SELECT onchange=showcolor(this.options[this.selectedIndex].value)
name=color>
<OPTION style="COLOR: black" value=Black selected>黑色</OPTION>
<OPTION style="COLOR: Silver" value=Silver>银色</OPTION>
<OPTION style="COLOR: Gray" value=Gray>灰色</OPTION>
<OPTION style="COLOR: maroon" value=Maroon>茶色</OPTION>
<OPTION style="COLOR: red" value=Red>红色</OPTION>
<OPTION style="COLOR: purple" value=Purple>紫色</OPTION>
<OPTION style="COLOR: Fuchsia" value=Fuchsia>紫红</OPTION>
<OPTION style="COLOR: green" value=Green>绿色</OPTION>
<OPTION style="COLOR: Lime" value=Lime>亮绿</OPTION>
<OPTION style="COLOR: Olive" value=Olive>橄榄</OPTION>
<OPTION style="COLOR: yellow" value=Yellow>黄色</OPTION>
<OPTION style="COLOR: teal" value=Teal>深蓝</OPTION>
<OPTION style="COLOR: blue" value=Blue>蓝色</OPTION>
<OPTION style="COLOR: Teal" value=Teal>青色</OPTION>
<OPTION style="COLOR: aqua" value=Aqua>浅绿</OPTION>
<OPTION style="COLOR: pink" value=Pink>粉红</OPTION>
<OPTION style="COLOR: orange" value=Orange>橙色</OPTION>
<OPTION style="COLOR: brown" value=Brown>褐色</OPTION>
<OPTION style="COLOR: navy" value=Navy>海蓝</OPTION>
</SELECT> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=right>
<TABLE cellSpacing=1 cellPadding=1 border=0>
<TBODY>
<TR>
<TD align=right width=35><FONT class=c size=1>文本</FONT><FONT class=c face=Tahoma size=1>:
</FONT></TD>
<TD><INPUT onchange=sampleupdate(this.value) size=56
name=sample></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=right>
<TABLE cellSpacing=1 cellPadding=1 width=390 border=0>
<TBODY>
<TR>
<TD vAlign=top align=right width=35><FONT class=c
size=1>演示</FONT><FONT class=c face=Tahoma
size=1>: </FONT></TD>
<TD>
<TABLE height=50 cellSpacing=0 borderColorDark=white cellPadding=0
width="100%" borderColorLight=black border=1>
<TBODY>
<TR>
<TD bgColor=white>
<DIV
id=eOutput></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=right>
<TABLE cellSpacing=1 cellPadding=1 border=0>
<TBODY>
<TR>
<TD vAlign=top align=right width=35>代码:</TD>
<TD><TEXTAREA name=ubbcode rows=5 cols=54></TEXTAREA></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=1 cellPadding=1 width="100%" border=0>
<TBODY>
<TR>
<TD><INPUT style="FONT-SIZE: 9pt; BACKGROUND-COLOR: #bbee99" onclick=window.close() type=button value=关闭><INPUT style="FONT-SIZE: 9pt; BACKGROUND-COLOR: #bbee99" onclick=begin() type=reset value=清除><INPUT style="FONT-SIZE: 9pt; BACKGROUND-COLOR: #bbee99" onclick=javascript:this.form.ubbcode.focus();this.form.ubbcode.select(); type=button value=选择全部></TD>
<TD vAlign=bottom align=right>程序制作:<a href="http://www.yuzi.net" target="_blank">Yuzi工作室</a>.
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</FORM>
</CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -