欢迎光临
我们一直在努力

动网7.0 里的 UBB 和高级编辑模式如何分离出来大家使用-ASP教程,脚本编码

建站超值云服务器,限时71元/月

请问各位大吓 :

在最近 动网出版的7.0论坛里 他们在发布新帖子的时候使用了一个高级模式和ubb 模式 , 我很喜欢他们这个。

asp china的人员可以帮我们分离出来 并说明 发布出去给大家使用吗

我在测试中代码 如下:

如果不知道的 可以到动网去下载 整个程序来分离一下

http://bbs.dvbbs.net

里面使用的文件 : post.asp

而他的代码都在数据库里 请各位高手帮小弟弟分一下

我想如果作成dw 的插件 可是一个很好的东西哦

<link rel="stylesheet" type="text/css" href="images/post/edit.css">

<table id="dvbbs_container" class="dvbbs_body" height="300" width="590" cellpadding=3 cellspacing=0 border=0>

<tr>

<td>

<table cellpadding=0 cellspacing=0 >

<tr class="ytoolbar" id="exttoolbar0" >

<td>

<select id="dvbbs_formatselect" class="dvbbs_tbgen" onchange="dvbbs_doselectclick(formatblock,this)">

<option>段落格式</option>

<option value="&lt;p&gt;">普通格式

<option value="&lt;h1&gt;">标题 1

<option value="&lt;h2&gt;">标题 2

<option value="&lt;h3&gt;">标题 3

<option value="&lt;h4&gt;">标题 4

<option value="&lt;h5&gt;">标题 5

<option value="&lt;h6&gt;">标题 6

<option value="&lt;h7&gt;">标题 7

<option value="&lt;pre&gt;">已编排格式

<option value="&lt;address&gt;">地址

</td>

<td>

<select language="javascript" class="dvbbs_tbgen" id="fontname" onchange="formattext (fontname,this[this.selectedindex].value);">

<option class="heading" selected>字体

<option value="宋体">宋体

<option value="黑体">黑体

<option value="楷体_gb2312">楷体

<option value="仿宋_gb2312">仿宋

<option value="隶书">隶书

<option value="幼圆">幼圆

<option value="新宋体">新宋体

<option value="细明体">细明体

<option value="arial">arial

<option value="arial black">arial black

<option value="arial narrow">arial narrow

<option value="bradley hand itc">bradley hand itc

<option value="brush script mt">brush script mt

<option value="century gothic">century gothic

<option value="comic sans ms">comic sans ms

<option value="courier">courier

<option value="courier new">courier new

<option value="ms sans serif">ms sans serif

<option value="script">script

<option value="system">system

<option value="times new roman">times new roman

<option value="viner hand itc">viner hand itc

<option value="verdana">verdana

<option value="wide latin">wide latin

<option value="wingdings">wingdings</option>

</select>

<select language="javascript" class="dvbbs_tbgen" id="fontsize" onchange="formattext(fontsize,this[this.selectedindex].value);">

<option class="heading" selected>字号

<oā??ption value="1">1

<option value="2">2

<option value="3">3

<option value="4">4

<option value="5">5

<option value="6">6

<option value="7">7</option>

</select>

</td>

<td id="forecolor" name=forecolor class="dvbbs_btn" title="字体颜色" language="javascript" onclick="dvbbs_forecolor();this.classname=dvbbs_tabon;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/fgcolor.gif" width="16" height="16" unselectable="on" >

</td>

<td id="backcolor" class="dvbbs_btn" title="字体背景颜色" language="javascript" onclick="dvbbs_backcolor();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn;>

<img class="dvbbs_ico" src="images/post/fbcolor.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="插入特殊符号" language="javascript" onclick="insertspecialchar();this.classname=dvbbs_tabon;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn;>

<img class="dvbbs_ico" src="images/post/specialchar.gif" ></td>

<td><img src="images/post/separator.gif">

</td>

<td class="dvbbs_btn" title="替换" language="javascript" onclick="dvbbs_replace();this.classname=dvbbs_tabon;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn;>

<img class="dvbbs_ico" src="images/post/replace.gif" width="16" height="16">

</td>

<td class="dvbbs_btn" title="清理代码" language="javascript" onclick="dvbbs_cleancode();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn;>

<img class="dvbbs_ico" src="images/post/cleancode.gif" width="16" height="16"></td>

<td class="dvbbs_btn" title="心情图标" language="javascript" onclick="openeditscript(smiley.asp,450,250);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn;>

<img clasā??s="dvbbs_ico" src="images/post/smiley.gif" ></td>

<td><img src="images/post/separator.gif"></td>

<td class="dvbbs_btn" title="帮助" language="javascript" onclick="dvbbs_help();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn;>

<img class="dvbbs_ico" src="images/post/help.gif" width="16" height="16" unselectable="on">

</td>

<td>

<select id="zoom" class="dvbbs_tbgen" onchange="dozoom(this)" >

<option value="100">100%

<option value="50">50%

<option value="75">75%

<option value="100">100%

<option value="125">125%

<option value="150">150%

<option value="175">175%

<option value="200">200%</option>

</select>

</td>

</tr>

</table>

<table cellpadding=0 cellspacing=0 >

<tr class="ytoolbar" id="exttoolbar1">

<td class="dvbbs_btn" title="全选" language="javascript" onclick="formattext(selectall);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn >

<img class="dvbbs_ico" src="images/post/selectall.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="剪切" language="javascript" onclick="formattext(cut);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/cut.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="复制" language="javascript" onclick="formattext(copy);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/copy.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="粘贴" language="javascript" onclick="formattext(paste);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/paste.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="撤消" language="javascript" onclick="formattext(undo);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/undo.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="恢复" language="javascript" onclick="formattext(redo);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/redo.gif" width="16" height="16" unselectable="on">

</td>

<td><img src="images/post/separator.gif"></td>

<td class="dvbbs_btn" title="插入超级链接" language="javascript" onclick="dvbbs_userdialog(createlink);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/wlink.gif" width="18" height="18" unselectable="on">

</td>

<td class="dvbbs_btn" title="去掉超级链接" language="javascript" onclick="formattext(unlink);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/unlink.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="插入图片" language="javascript" onclick="dvbbs_userdialog(insertimage);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/img.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="插入水平线" language="javascript" onclick="formattext(inserthorizontalrule, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmā??ouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/hr.gif" width="16" height="16" unselectable="on">

</td>

<td><img src="images/post/separator.gif"></td>

<td class="dvbbs_btn" title="插入表格" language="javascript" onclick="dvbbs_fortable();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/table.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="插入行" language="javascript" onclick="dvbbs_insertrow();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/insertrow.gif" width="16" height="16">

</td>

<td class="dvbbs_btn" title="删除行" language="javascript" onclick="dvbbs_deleterow();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/deleterow.gif" width="16" height="16">

</td>

<td class="dvbbs_btn" title="插入列" language="javascript" onclick="dvbbs_insertcolumn();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/insertcolumn.gif" width="16" height="16">

</td>

<td class="dvbbs_btn" title="删除列" language="javascript" onclick="dvbbs_deletecolumn();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/deletecolumn.gif" width="16" height="16">

</td>

<td><img src="images/post/separator.gif"></td>

<td class="dvbbs_btn" title="插入flash" language="javascript" onclick="dvbbs_forswf();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classā??name=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/swf.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="插入windows media" language="javascript" onclick="dvbbs_forwmv();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/wmv.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="插入real media" language="javascript" onclick="dvbbs_forrm();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/rm.gif" width="16" height="16" unselectable="on">

</td></tr>

</table>

<table cellpadding=0 cellspacing=0 >

<tr class="ytoolbar" id="exttoolbar2">

<td class="dvbbs_btn" title="加粗" language="javascript" onclick="formattext(bold, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/bold.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="斜体" language="javascript" onclick="formattext(italic, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/italic.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="下划线" language="javascript" onclick="formattext(underline, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/underline.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="上标" language="javascript" onclick="formattext(superscript, );this.classname=dvbbs_tabon;ondrag=return false;" onmouā??seover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/superscript.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="下标" language="javascript" onclick="formattext(subscript, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/subscript.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="删除线" language="javascript" onclick="formattext(strikethrough, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/strikethrough.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="取消格式" language="javascript" onclick="formattext(removeformat, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/removeformat.gif" width="16" height="16" unselectable="on">

</td>

<td><img src="images/post/separator.gif"></td>

<td class="dvbbs_btn" title="左对齐" name="justify" language="javascript" onclick="formattext(justifyleft, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/aleft.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="居中" name="justify" language="javascript" onclick="formattext(justifycenter, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/center.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="右对齐" name="jusā??tify" language="javascript" onclick="formattext(justifyright, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/aright.gif" width="16" height="16" unselectable="on">

</td>

<td><img src="images/post/separator.gif"></td>

<td class="dvbbs_btn" title="编号" language="javascript" onclick="formattext(insertorderedlist, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/numlist.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="项目符号" language="javascript" onclick="formattext(insertunorderedlist, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/bullist.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="减少缩进量" language="javascript" onclick="formattext(outdent, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/outdent.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="增加缩进量" language="javascript" onclick="formattext(indent, );this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/indent.gif" width="16" height="16" unselectable="on">

</td>

<td><img src="images/post/separator.gif"></td>

<td class="dvbbs_btn" title="插入引用" language="javascript" onclick="dvbbs_specialtype(<div class=quote>,</div>);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_bā??tn; >

<img class="dvbbs_ico" src="images/post/quote.gif" width="16" height="16"></td>

<td class="dvbbs_btn" title="插入代码" language="javascript" onclick="dvbbs_code();this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; ><img class="dvbbs_ico" src="images/post/code.gif" width="16" height="16"></td>

<td class="dvbbs_btn" title="插入广告" language="javascript" onclick="dvbbs_insertsymbol([dvnews_ad]);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/ad.gif" width="16" height="16" unselectable="on">

</td>

<td class="dvbbs_btn" title="插入分页" language="javascript" onclick="dvbbs_insertsymbol([dvnews_page]);this.classname=dvbbs_tabon;ondrag=return false;" onmouseover=this.classname=dvbbs_btnmouseoverup; onmouseout=this.classname=dvbbs_btn; >

<img class="dvbbs_ico" src="images/post/insertpage.gif" width="16" height="16" unselectable="on">

</td>

</tr></table>

<table cellpadding=0 cellspacing=0 >

<tr class="ytoolbar" id="old_toolbars" style="display:none"><td>

{$old_oldtoolbars}

<!–post.asp##ubb部分end–>

</td></tr>

</table>

</td></tr>

<tr><td height="100%">

<iframe class="dvbbs_composition" id="dvbbs_composition" marginheight="5" marginwidth="5" width="100%" height="100%" ></iframe>

</td></tr>

<tr><td><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=10>&nbsp;</td>

<td class="dvbbs_tabon" id="dvbbs_tabdesign" onclick="if (dvbbs_btextmode!=1) {dvbbs_setmode(1);}" unselectable="on" width=60 >

<img unselectable="on" src="images/post/mode.design.gif" align="absmiddle" width=21 height=20>&nbsp;design</td>

<td style="width:10px"></td>

<td class="dvbbs_taboff" id="dvbbs_tabview" onclick="dvbbs_view();" unselectable="on" width=60 >

<img unselectable="on" src="images/post/mode.view.gif" align="absmiddle" width=20 height=20>&nbsp;view

</td>

<td style="ā??width:10px"></td>

<td class="dvbbs_taboff" id="dvbbs_taboldtools" onclick="if (dvbbs_btextmode!=3){dvbbs_setmode(3);}" unselectable="on" width=80>

<img unselectable="on" src="images/post/oldubb.gif" align="absmiddle" height=20>&nbsp;ubb模式

</td>

<td style="width:10px"></td>

<td id="dvbbs_tabhtml" width=50>

</td>

<td align=right><a href="javascript:dvbbs_size(-300)"><img src="images/post/minus.gif" unselectable="on" border=0></a> <a href="javascript:dvbbs_size(300)"><img src="images/post/plus.gif" unselectable="on" border=0></a></td><td width=20></td></tr></table></td></tr></table>

<script>

var dvbbs_bisie5=document.all

if (dvbbs_bisie5){

var iframeid=frames["dvbbs_composition"];

}

else{

var iframeid=document.getelementbyid("dvbbs_composition").contentwindow;

var dvbbs_bisnc=true;

}

if (dvbbs_bload==false)

{

dvbbs_initdocument("body","gb2312");

}

</script>

<table width="572" height="232">

<tr><td height="100%">

<iframe src="" width="100%" marginwidth="5" height="100%" marginheight="5" scrolling="auto" class="dvbbs_composition" id="dvbbs_composition" >gfdgda</iframe>

</td></tr></table>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 动网7.0 里的 UBB 和高级编辑模式如何分离出来大家使用-ASP教程,脚本编码
分享到: 更多 (0)