📄 ybb.htm
字号:
<HTML><HEAD><TITLE>YBB代码编辑器</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style>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>
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.form.comment.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 showsize(size){
sizebegin="[size="+size+"]"
sizeend="[/size]"
sizebeginhtml="<font size=\""+size+"\">"
sizeendhtml="</font>"
printubbcode();
}
function showfont(font){
fontbegin="[font="+font+"]"
fontend="[/font]"
fontbeginhtml="<font face=\""+font+"\">"
fontendhtml="</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 img(){
urltxt=prompt("链接图像.","http://");
imgubb="[img]"+urltxt+"[/img]"
linkbeginhtml="<img src=\""+urltxt+"\" border=0>"
sampletext=""
printubbcode();
}
function openWindow(url) {
popupWin = window.open('ybbcode.htm','','resizable,scrollbars')
}
var nn = !!document.layers;
var ie = !!document.all;
function copy(textarea)
{
if (nn) {
textarea.select();
Zwischenablage.setContents(new java.awt.datatransfer.StringSelection(textarea.value), null);
}
else if (ie) {
textarea.select();
cbBuffer=textarea.createTextRange();
cbBuffer.execCommand('Copy');
}
}
</SCRIPT>
<META content="Microsoft FrontPage 5.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=doit(colorchart) height=22 alt=取得字体颜色
src="color.gif" width=23 border=0><IMG onclick=openWindow() alt=点这里查看YBB专用代码
src="help.gif" border=0 width="23" height="22"></TD>
<TD align=right width="100%">
<select onchange="showsize(this.options[this.selectedIndex].value)" name="size">
<option value=1>8pt</option>
<option value=2 selected>10pt</option>
<option value=3>12pt</option>
<option value=4>14pt</option>
<option value=5>18pt</option>
<option value=6>24pt</option>
<option value=7>36pt</option>
</select><SELECT onchange=showfont(this.options[this.selectedIndex].value) name=font>
<OPTION value="Arial">Arial</OPTION>
<OPTION value="Arial Black">Arial Black</OPTION>
<OPTION value="Book Antiqua">Book Antiqua</OPTION>
<OPTION value="Century Gothic">Century Gothic</OPTION>
<OPTION value="Comic Sans MS">Comic Sans MS</OPTION>
<OPTION value="Courier">Courier</OPTION>
<OPTION value="Courier New">Courier New</OPTION>
<OPTION value="Fixedsys">Fixedsys</OPTION>
<OPTION value="Impact">Impact</OPTION>
<OPTION value="Lucida Console">Lucida Console</OPTION>
<OPTION value="Marlett">Marlett</OPTION>
<OPTION value="MingLiU">MingLiU</OPTION>
<OPTION value="Modern">Modern</OPTION>
<OPTION value="MS Sans Serif">MS Sans Serif</OPTION>
<OPTION value="MS Serif">MS Serif</OPTION>
<OPTION value="PMingLiU">PMingLiU</OPTION>
<OPTION value="Small Fonts">Small Fonts</OPTION>
<OPTION value="Symbol">Symbol</OPTION>
<OPTION value="System">System</OPTION>
<OPTION value="Tahoma">Tahoma</OPTION>
<OPTION value="Terminal">Terminal</OPTION>
<OPTION value="Times New Roman">Times New Roman</OPTION>
<OPTION value="Trebuchet MS">Trebuchet MS</OPTION>
<OPTION value="Verdana">Verdana</OPTION>
<OPTION value="Webdings">Webdings</OPTION>
<OPTION value="Wingdings">Wingdings</OPTION>
<OPTION value="方正舒体">方正舒体</OPTION>
<OPTION value="方正姚体">方正姚体</OPTION>
<OPTION value="仿宋_GB2312">仿宋_GB2312</OPTION>
<OPTION value="黑体">黑体</OPTION>
<OPTION value="华文彩云">华文彩云</OPTION>
<OPTION value="华文细黑">华文细黑</OPTION>
<OPTION value="华文新魏">华文新魏</OPTION>
<OPTION value="华文行楷">华文行楷</OPTION>
<OPTION value="华文中宋">华文中宋</OPTION>
<OPTION value="楷体_GB2312">楷体_GB2312</OPTION>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -