适合版本:D4
安装方法:简单
图片演示:有
功能介绍:飞行文字/QQ号码/光晕文字/midi 音乐/rm/mp3音乐/wmv,wma媒体/阴影字/ 文字底色/动感字/阴影字(二)/倒转字/彩虹字体/打字机字体/文字加上刪除线/ 隐藏内容/调转字
1.打开include/bbcode.js
查找:
在上面添加:
- function typewriter() {
- if (helpmode){
- alert(typewriter_help);
- } else if (advmode) {
- AddTxt="[typewriter] [/typewriter]";
- AddText(AddTxt);
- } else {
- txt=prompt(typewriter_normal,text_input);
- if(txt!=null) {
- AddTxt="\r[typewriter]"+txt;
- AddText(AddTxt);
- AddText("[/typewriter]");
- }
- }
- }
- function mid() {
- if (helpmode){
- alert(mid_help);
- } else if (advmode) {
- AddTxt="[mid] [/mid]";
- AddText(AddTxt);
- } else {
- txt=prompt(mid_normal,"http://");
- if(txt!=null) {
- AddTxt="\r[mid]"+txt;
- AddText(AddTxt);
- AddText("[/mid]");
- }
- }
- }
- function rm() {
- if (helpmode){
- alert(rm_help);
- } else if (advmode) {
- AddTxt="[rm] [/rm]";
- AddText(AddTxt);
- } else {
- txt=prompt(rm_normal,"http://");
- if(txt!=null) {
- AddTxt="\r[rm]"+txt;
- AddText(AddTxt);
- AddText("[/rm]");
- }
- }
- }
- function wmv() {
- if (helpmode){
- alert(wmv_help);
- } else if (advmode) {
- AddTxt="[wmv] [/wmv]";
- AddText(AddTxt);
- } else {
- txt=prompt(wmv_normal,"http://");
- if(txt!=null) {
- AddTxt="\r[wmv]"+txt;
- AddText(AddTxt);
- AddText("[/wmv]");
- }
- }
- }
- function mp3() {
- if (helpmode){
- alert(mp3_help);
- } else if (advmode) {
- AddTxt="[mp3] [/mp3]";
- AddText(AddTxt);
- } else {
- txt=prompt(mp3_normal,"http://");
- if(txt!=null) {
- AddTxt="\r[mp3]"+txt;
- AddText(AddTxt);
- AddText("[/mp3]");
- }
- }
- }
- function hide() {
- if (helpmode) {
- alert(hide_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[hide]" + range.text + "[/hide]";
- } else if (advmode) {
- AddTxt="\r[hide]\r[/hide]";
- AddText(AddTxt);
- } else {
- txt=prompt(quote_normal,text_input);
- if (txt!=null) {
- AddTxt="\r[hide]"+txt;
- AddText(AddTxt);
- AddText("[/hide]");
- }
- }
- }
- function glow() {
- if (helpmode) {
- alert(glow_help);
- } else if (advmode) {
- AddTxt="[glow=255,red,2] [/glow]";
- AddText(AddTxt);
- } else {
- txt2=prompt(glow_normal,"");
- if (txt2!=null) {
- txt=prompt(glow_normal_input,"255,red,2");
- if (txt!=null) {
- if (txt2=="") {
- AddTxt="[glow=255,red,2]"+txt;
- AddText(AddTxt);
- AddText("[/glow]");
- } else {
- AddTxt="[glow="+txt+"]"+txt2;
- AddText(AddTxt);
- AddText("[/glow]");
- }
- }
- }
- }
- }
- function crfont() {
- if (helpmode){
- alert(crfont_help);
- } else if (advmode) {
- AddTxt="[crfont] [/crfont]";
- AddText(AddTxt);
- } else {
- txt=prompt(crfont_normal,text_input);
- if(txt!=null) {
- AddTxt="\r[crfont]"+txt;
- AddText(AddTxt);
- AddText("[/crfont]");
- }
- }
- }
- function fly() {
- if (helpmode) {
- alert(fly_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[fly]" + range.text + "[/fly]";
- } else if (advmode) {
- AddTxt="[fly] [/fly]";
- AddText(AddTxt);
- } else {
- txt=prompt(fly_normal,"");
- if (txt!=null) {
- AddTxt="[fly]"+txt;
- AddText(AddTxt);
- AddText("[/fly]");
- }
- }
- }
- function blur() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[blur]" + range.text + "[/blur]";
- } else if (advmode) {
- AddTxt="\r[blur]\r[/blur]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加动感效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[blur]"+txt;
- AddText(AddTxt);
- AddText("[/blur]");
- }
- }
- }
- function shadow() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[shadow]" + range.text + "[/shadow]";
- } else if (advmode) {
- AddTxt="\r[shadow]\r[/shadow]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加阴影效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[shadow]"+txt;
- AddText(AddTxt);
- AddText("[/shadow]");
- }
- }
- }
- function dshadow() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[dshadow]" + range.text + "[/dshadow]";
- } else if (advmode) {
- AddTxt="\r[dshadow]\r[/dshadow]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加阴影效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[dshadow]"+txt;
- AddText(AddTxt);
- AddText("[/dshadow]");
- }
- }
- }
- function dao() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[dao]" + range.text + "[/dao]";
- } else if (advmode) {
- AddTxt="\r[dao]\r[/dao]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加倒转效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[dao]"+txt;
- AddText(AddTxt);
- AddText("[/dao]");
- }
- }
- }
- function diao() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[diao]" + range.text + "[/diao]";
- } else if (advmode) {
- AddTxt="\r[diao]\r[/diao]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加调转效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[diao]"+txt;
- AddText(AddTxt);
- AddText("[/diao]");
- }
- }
- }
- function strike() {
- if (helpmode) {
- alert(strike_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[strike]" + range.text + "[/strike]";
- } else if (advmode) {
- AddTxt="[strike] [/strike]";
- AddText(AddTxt);
- } else {
- txt=prompt(strike_normal,text_input);
- if (txt!=null) {
- AddTxt="[strike]"+txt;
- AddText(AddTxt);
- AddText("[/strike]");
- }
- }
- }
- function qq() {
- if (helpmode) {
- alert(qq_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[qq]" + range.text + "[/qq]";
- } else if (advmode) {
- AddTxt="\r[qq]\r[/qq]";
- AddText(AddTxt);
- } else {
- txt=prompt(code_normal,"");
- if (txt!=null) {
- AddTxt="\r[qq]"+txt;
- AddText(AddTxt);
- AddText("[/qq]");
- }
- }
- }
- function addbox(color) {
- if (helpmode) {
- alert(box_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[box=" + color + "]" + range.text + "[/box]";
- } else if (advmode) {
- AddTxt="[box="+color+"] [/box]";
- AddText(AddTxt);
- } else {
- txt=prompt(color_normal,text_input);
- if(txt!=null) {
- AddTxt="[box="+color+"]"+txt;
- AddText(AddTxt);
- AddText("[/box]");
- }
- }
- }
复制代码
2.打开post_bbinsert.htm模板
查找:
- var underline_normal = "{lang post_discuzcode_underline_normal}";
复制代码
在下面加入:
- //--BB CODE 按钮-----------------------------------------------------------------------------------------------------------------------
- var glow_help = "{lang post_discuzcode_glow}\n\n{lang post_discuzcode_glow_comment}";
- var glow_normal = "{lang post_discuzcode_glow_normal}";
- var glow_normal_input = "{lang post_discuzcode_glow_normal_input}";
- var crfont_help = "{lang post_discuzcode_crfont}\n\n{lang post_discuzcode_crfont_comment}";
- var crfont_normal = "{lang post_discuzcode_crfont_normal}";
- var typewriter_help = "{lang post_discuzcode_typewriter}\n\n{lang post_discuzcode_typewriter_comment}";
- var typewriter_normal = "{lang post_discuzcode_typewriter_normal}";
- var mid_normal = "{lang post_midi}";
- var mid_help = "{lang post_discuzcode_mid}\n\n{lang post_discuzcode_mid_comment}";
- var wmv_normal = "{lang post_wmv}";
- var wmv_help = "{lang post_discuzcode_wmv}\n\n{lang post_discuzcode_wmv_comment}";
- var mp3_normal = "{lang post_mp3}";
- var mp3_help = "{lang post_discuzcode_mp3}\n\n{lang post_discuzcode_mp3_comment}";
- var rm_normal = "{lang post_rm}";
- var rm_help = "{lang post_discuzcode_rm}\n\n{lang post_discuzcode_rm_comment}";
- var fly_normal = "{lang post_fly}";
- var fly_help = "{lang post_discuzcode_fly}\n\n{lang post_discuzcode_fly_comment}";
- var flya_normal = "{lang post_fly}";
- var flya_help = "{lang post_discuzcode_fly}\n\n{lang post_discuzcode_fly_comment}";
- var hide_normal = "{lang post_ycwz}";
- var hide_help = "{lang post_discuzcode_hide}\n\n{lang post_discuzcode_hide_comment}";
- var iframe_normal = "{lang post_kjwy}";
- var iframe_help = "{lang post_discuzcode_iframe}\n\n{lang post_discuzcode_iframe_comment}"
- var ra_normal = "{lang post_mp3}";
- var ra_help = "{lang post_discuzcode_ra}\n\n{lang post_discuzcode_ra_comment}";
- var bgs_normal = "{lang post_bjyy}";
- var bgs_help = "{lang post_discuzcode_bgs}\n\n{lang post_discuzcode_bgs_comment}";
- var qq_help = "{lang post_discuzcode_qq}\n\n{lang post_discuzcode_qq_comment}";
- var strike_normal = "{lang post_discuzcode_list_strike_normal}";
- //--BB CODE 按钮-----------------------------------------------------------------------------------------------------------------------
复制代码
再查找:
- <option value="LimeGreen" style="color:limegreen;">LimeGreen</option></select>
复制代码
在下面加入:
- <select name="box" onFocus="this.selectedIndex=0" onChange="addbox(this.options[this.selectedIndex].value)" size="1">
- <option value="" selected>{lang post_discuzcode_insert_background}</option>
- <option value='#FF0000' style='color:#FF0000;BACKGROUND-COLOR:#FF0000'>紅色</option>
- <option value='#00FF00' style='color:#00FF00;BACKGROUND-COLOR:#00FF00'>綠色</option>
- <option value='#0000FF' style='color:#0000FF;BACKGROUND-COLOR:#0000FF'>藍色</option>
- <option value='#FF00FF' style='color:#FF00FF;BACKGROUND-COLOR:#FF00FF'>牡丹紅</option>
- <option value='#00FFFF' style='color:#00FFFF;BACKGROUND-COLOR:#00FFFF'>青色</option>
- <option value='#FFFF00' style='color:#FFFF00;BACKGROUND-COLOR:#FFFF00'>黃色</option>
- <option value='#70DB93' style='color:#70DB93;BACKGROUND-COLOR:#70DB93'>海藍</option>
- <option value='#FFFFFF' style='color:#FFFFFF;BACKGROUND-COLOR:#FFFFFF'>白色</option>
- <option value='#5C3317' style='color:#5C3317;BACKGROUND-COLOR:#5C3317'>巧克力色</option>
- <option value='#9F5F9F' style='color:#9F5F9F;BACKGROUND-COLOR:#9F5F9F'>藍紫色</option>
- <option value='#B5A642' style='color:#B5A642;BACKGROUND-COLOR:#B5A642'>黃銅色</option>
- <option value='#D9D919' style='color:#D9D919;BACKGROUND-COLOR:#D9D919'>亮金色</option>
- <option value='#A67D3D' style='color:#A67D3D;BACKGROUND-COLOR:#A67D3D'>棕色</option>
- <option value='#8C7853' style='color:#8C7853;BACKGROUND-COLOR:#8C7853'>青銅色</option>
- <option value='#A67D3D' style='color:#A67D3D;BACKGROUND-COLOR:#A67D3D'>青銅色二</option>
- <option value='#5F9F9F' style='color:#5F9F9F;BACKGROUND-COLOR:#5F9F9F'>士官服藍色</option>
- <option value='#D98719' style='color:#D98719;BACKGROUND-COLOR:#D98719'>冷銅色</option>
- <option value='#B87333' style='color:#B87333;BACKGROUND-COLOR:#B87333'>銅色</option>
- <option value='#FF7F00' style='color:#FF7F00;BACKGROUND-COLOR:#FF7F00'>珊瑚紅</option>
- <option value='#42426F' style='color:#42426F;BACKGROUND-COLOR:#42426F'>紫藍色</option>
- <option value='#5C4033' style='color:#5C4033;BACKGROUND-COLOR:#5C4033'>深棕</option>
- <option value='#2F4F2F' style='color:#2F4F2F;BACKGROUND-COLOR:#2F4F2F'>深綠</option>
- <option value='#4A766E' style='color:#4A766E;BACKGROUND-COLOR:#4A766E'>深銅綠色</option>
- <option value='#4F4F2F' style='color:#4F4F2F;BACKGROUND-COLOR:#4F4F2F'>深橄欖綠</option>
- <option value='#9932CD' style='color:#9932CD;BACKGROUND-COLOR:#9932CD'>深蘭花色</option>
- <option value='#871F78' style='color:#871F78;BACKGROUND-COLOR:#871F78'>深紫色</option>
- <option value='#6B238E' style='color:#6B238E;BACKGROUND-COLOR:#6B238E'>深石板藍</option>
- <option value='#2F4F4F' style='color:#2F4F4F;BACKGROUND-COLOR:#2F4F4F'>深鉛灰色</option>
- <option value='#97694F' style='color:#97694F;BACKGROUND-COLOR:#97694F'>深棕褐色</option>
- <option value='#7093DB' style='color:#7093DB;BACKGROUND-COLOR:#7093DB'>深綠松石色</option>
- <option value='#855E42' style='color:#855E42;BACKGROUND-COLOR:#855E42'>暗木色</option>
- <option value='#545454' style='color:#545454;BACKGROUND-COLOR:#545454'>淡灰色</option>
- <option value='#856363' style='color:#856363;BACKGROUND-COLOR:#856363'>土灰玫瑰紅色</option>
- <option value='#D19275' style='color:#D19275;BACKGROUND-COLOR:#D19275'>長石色</option>
- <option value='#8E2323' style='color:#8E2323;BACKGROUND-COLOR:#8E2323'>火磚色</option>
- <option value='#238E23' style='color:#238E23;BACKGROUND-COLOR:#238E23'>森林綠</option>
- <option value='#CD7F32' style='color:#CD7F32;BACKGROUND-COLOR:#CD7F32'>金色</option>
- <option value='#DBDB70' style='color:#DBDB70;BACKGROUND-COLOR:#DBDB70'>鮮黃色</option>
- <option value='#C0C0C0' style='color:#C0C0C0;BACKGROUND-COLOR:#C0C0C0'>灰色</option>
- <option value='#527F76' style='color:#527F76;BACKGROUND-COLOR:#527F76'>銅綠色</option>
- <option value='#93DB70' style='color:#93DB70;BACKGROUND-COLOR:#93DB70'>青黃色</option>
- <option value='#215E21' style='color:#215E21;BACKGROUND-COLOR:#215E21'>獵人綠</option>
- <option value='#4E2F2F' style='color:#4E2F2F;BACKGROUND-COLOR:#4E2F2F'>印度紅</option>
- <option value='#9F9F5F' style='color:#9F9F5F;BACKGROUND-COLOR:#9F9F5F'>土黃色</option>
- <option value='#C0D9D9' style='color:#C0D9D9;BACKGROUND-COLOR:#C0D9D9'>淺藍色</option>
- <option value='#A8A8A8' style='color:#A8A8A8;BACKGROUND-COLOR:#A8A8A8'>淺灰色</option>
- <option value='#8F8FBD' style='color:#8F8FBD;BACKGROUND-COLOR:#8F8FBD'>淺鋼藍色</option>
- <option value='#E9C2A6' style='color:#E9C2A6;BACKGROUND-COLOR:#E9C2A6'>淺木色</option>
- <option value='#32CD32' style='color:#32CD32;BACKGROUND-COLOR:#32CD32'>石灰綠色</option>
- <option value='#E47833' style='color:#E47833;BACKGROUND-COLOR:#E47833'>桔黃色</option>
- <option value='#8E236B' style='color:#8E236B;BACKGROUND-COLOR:#8E236B'>褐紅色</option>
- <option value='#32CD99' style='color:#32CD99;BACKGROUND-COLOR:#32CD99'>中海藍色</option>
- <option value='#3232CD' style='color:#3232CD;BACKGROUND-COLOR:#3232CD'>中藍色</option>
- <option value='#6B8E23' style='color:#6B8E23;BACKGROUND-COLOR:#6B8E23'>中森林綠</option>
- <option value='#EAEAAE' style='color:#EAEAAE;BACKGROUND-COLOR:#EAEAAE'>中鮮黃色</option>
- <option value='#9370DB' style='color:#9370DB;BACKGROUND-COLOR:#9370DB'>中蘭花色</option>
- <option value='#426F42' style='color:#426F42;BACKGROUND-COLOR:#426F42'>中海綠色</option>
- <option value='#7F00FF' style='color:#7F00FF;BACKGROUND-COLOR:#7F00FF'>中石板藍色</option>
- <option value='#7FFF00' style='color:#7FFF00;BACKGROUND-COLOR:#7FFF00'>中春綠色</option>
- <option value='#70DBDB' style='color:#70DBDB;BACKGROUND-COLOR:#70DBDB'>中綠松石色</option>
- <option value='#DB7093' style='color:#DB7093;BACKGROUND-COLOR:#DB7093'>中紫紅色</option>
- <option value='#A68064' style='color:#A68064;BACKGROUND-COLOR:#A68064'>中木色</option>
- <option value='#2F2F4F' style='color:#2F2F4F;BACKGROUND-COLOR:#2F2F4F'>深藏青色</option>
- <option value='#23238E' style='color:#23238E;BACKGROUND-COLOR:#23238E'>海軍藍</option>
- <option value='#4D4DFF' style='color:#4D4DFF;BACKGROUND-COLOR:#4D4DFF'>霓虹籃</option>
- <option value='#FF6EC7' style='color:#FF6EC7;BACKGROUND-COLOR:#FF6EC7'>霓虹粉紅</option>
- <option value='#00009C' style='color:#00009C;BACKGROUND-COLOR:#00009C'>新深藏青色</option>
- <option value='#EBC79E' style='color:#EBC79E;BACKGROUND-COLOR:#EBC79E'>新棕褐色</option>
- <option value='#CFB53B' style='color:#CFB53B;BACKGROUND-COLOR:#CFB53B'>暗金黃色</option>
- <option value='#FF7F00' style='color:#FF7F00;BACKGROUND-COLOR:#FF7F00'>橙色</option>
- <option value='#FF2400' style='color:#FF2400;BACKGROUND-COLOR:#FF2400'>橙紅色</option>
- <option value='#DB70DB' style='color:#DB70DB;BACKGROUND-COLOR:#DB70DB'>淡紫色</option>
- <option value='#8FBC8F' style='color:#8FBC8F;BACKGROUND-COLOR:#8FBC8F'>淺綠色</option>
- <option value='#BC8F8F' style='color:#BC8F8F;BACKGROUND-COLOR:#BC8F8F'>粉紅色</option>
- <option value='#EAADEA' style='color:#EAADEA;BACKGROUND-COLOR:#EAADEA'>李子色</option>
- <option value='#D9D9F3' style='color:#D9D9F3;BACKGROUND-COLOR:#D9D9F3'>石英色</option>
- <option value='#5959AB' style='color:#5959AB;BACKGROUND-COLOR:#5959AB'>艷藍色</option>
- <option value='#6F4242' style='color:#6F4242;BACKGROUND-COLOR:#6F4242'>鮭魚色</option>
- <option value='#BC1717' style='color:#BC1717;BACKGROUND-COLOR:#BC1717'>猩紅色</option>
- <option value='#238E68' style='color:#238E68;BACKGROUND-COLOR:#238E68'>海綠色</option>
- <option value='#6B4226' style='color:#6B4226;BACKGROUND-COLOR:#6B4226'>半甜巧克力色</option>
- <option value='#8E6B23' style='color:#8E6B23;BACKGROUND-COLOR:#8E6B23'>赭色</option>
- <option value='#E6E8FA' style='color:#E6E8FA;BACKGROUND-COLOR:#E6E8FA'>銀色</option>
- <option value='#3299CC' style='color:#3299CC;BACKGROUND-COLOR:#3299CC'>天藍</option>
- <option value='#007FFF' style='color:#007FFF;BACKGROUND-COLOR:#007FFF'>石板藍</option>
- <option value='#FF1CAE' style='color:#FF1CAE;BACKGROUND-COLOR:#FF1CAE'>艷粉紅色</option>
- <option value='#00FF7F' style='color:#00FF7F;BACKGROUND-COLOR:#00FF7F'>春綠色</option>
- <option value='#236B8E' style='color:#236B8E;BACKGROUND-COLOR:#236B8E'>鋼藍色</option>
- <option value='#38B0DE' style='color:#38B0DE;BACKGROUND-COLOR:#38B0DE'>亮天藍色</option>
- </select>
复制代码
再查找:
- <a href="javascript:list()"><img src="{IMGDIR}/bb_list.gif" border="0" alt="{lang post_discuzcode_list}"></a>
复制代码
在下面加入:
- <a href="javascript:qq()"><img src="{IMGDIR}/bb_qq.gif" border="0" alt="{lang post_discuzcode_qq}"></a>
- <a href="javascript:crfont()"><img src="{IMGDIR}/bb_crfont.gif" border="0" alt="{lang post_discuzcode_crfont}"></a>
- <a href="javascript:typewriter()"><img src="{IMGDIR}/bb_tt.gif" border="0" alt="{lang post_discuzcode_typewriter}"></a>
- <br>
- <a hidefocus=true href="javascript:hide()"><img src="{IMGDIR}/bb_hide.gif" border="0" alt="{lang post_discuzcode_ycwz}"></a>
- <a hidefocus=true href="javascript:mid()"><img src="{IMGDIR}/bb_mid.gif" border="0" alt="{lang post_discuzcode_midi}"></a>
- <a hidefocus=true href="javascript:wmv()"><img src="{IMGDIR}/bb_wmv.gif" border="0" alt="{lang post_discuzcode_wmv}"></a>
- <a hidefocus=true href="javascript:rm()"><img src="{IMGDIR}/bb_rm.gif" border="0" alt="{lang post_discuzcode_rm}"></a>
- <a href="javascript:mp3()"><img src="{IMGDIR}/bb_mp3.gif" border="0" alt="{lang post_discuzcode_mp3}"></a>
- <a hidefocus=true href="javascript:fly()"><img src="{IMGDIR}/bb_fly.gif" border="0" alt="{lang post_discuzcode_fxwz}"></a>
- <a hidefocus=true href="javascript:strike()"><img src="{IMGDIR}/bb_strike.gif" border="0" alt="{lang post_discuzcode_strike}"></a>
- <a href="javascript:glow()"><img src="{IMGDIR}/bb_glow.gif" border="0" alt="{lang post_discuzcode_glow}"></a>
- <a hidefocus=true href="javascript:blur()"><img src="{IMGDIR}/bb_blur.gif" border="0" alt="{lang post_discuzcode_dgz}"></a>
- <a hidefocus=true href="javascript:shadow()"><img src="{IMGDIR}/bb_shadow.gif" border="0" alt="{lang post_discuzcode_yyz}"></a>
- <a hidefocus=true href="javascript:dshadow()"><img src="{IMGDIR}/bb_dshadow.gif" border="0" alt="{lang post_discuzcode_yyz2}"></a>
- <a hidefocus=true href="javascript:dao()"><img src="{IMGDIR}/bb_dao.gif" border="0" alt="{lang post_discuzcode_dzz}"></a>
- <a hidefocus=true href="javascript:diao()"><img src="{IMGDIR}/bb_diao.gif" border="0" alt="{lang post_discuzcode_dzhaz}"></a>
复制代码
3.打开include/discuzcode.func.php
查找:
- "/\[align=([^\[\<]+?)\]/i"
复制代码
替换为:
- "/\[align=([^\[\<]+?)\]/i",
- "/(\[glow=)(\S+?)(\,)(.+?)(\,)(.+?)(\])(.+?)(\[\/glow\])/is"
复制代码
再查找:
替换为:
- "<p align="\\1">",
- "<span style='WIDTH:\\2;filter:glow(color=\\4, strength=\\6)'> <font color=white>\\8</font></span>"
复制代码
4.打开语言包templates.lang.php
查找:
- 'post_discuzcode_insert_color' => '- 颜色 -',
复制代码
在下面加入:
- //--BB CODE 按钮-----------------------------------------------------------------------------------------------------------------------
- 'post_discuzcode_insert_background' => '- 底色 -',
- 'post_fly' => '插入飞行文字',
- 'post_ycwz' => '插入隐藏内容',
- 'post_kjwy' => '插入 IFRAME 框架网页',
- 'post_midi' => '插入 midi 音乐',
- 'post_rm' => '插入 rm',
- 'post_bjyy' => '插入背景音乐',
- 'post_mp3' => '插入 mp3音乐',
- 'post_wmv' => '插入 wmv,wma,等媒体',
- 'post_discuzcode_qq' => '插入QQ号码',
- 'post_discuzcode_glow' => '插入光晕文字',
- 'post_discuzcode_glow_comment' => '插入一个光晕显示的文字。\n例如:\n[glow=255,red,2]光晕显示的文字[/glow]',
- 'post_discuzcode_glow_normal' => '请输入光晕显示的文字。',
- 'post_discuzcode_glow_normal_input' => '请修改显示文字效果。\n[宽度,顏色,深度]',
- 'post_discuzcode_glow_input' => '请输入 glow 语法。',
- 'post_discuzcode_yyz' => '插入阴影字',
- 'post_discuzcode_dgz' => '插入动感字',
- 'post_discuzcode_yyz2' => '插入阴影字(二)',
- 'post_discuzcode_dzz' => '插入倒转字',
- 'post_discuzcode_dzhaz' => '插入调转字',
- 'post_discuzcode_fxwz' => '插入飞行文字',
- 'post_discuzcode_ycwz' => '插入隐藏内容',
- 'post_discuzcode_midi' => '插入 midi',
- 'post_discuzcode_wmv' => '插入 wmv,wma,等媒体',
- 'post_discuzcode_rm' => '插入 rm',
- 'post_discuzcode_mp3' => '插入 mp3',
- 'post_discuzcode_crfont' => '插入彩虹字体',
- 'post_discuzcode_crfont_comment' => '插入彩虹字体,文本具有七色彩虹效果。\n例如:[crfont]彩虹字体[/crfont]',
- 'post_discuzcode_crfont_normal' => '请输入需要加色彩的文字',
- 'post_discuzcode_typewriter' => '插入打字机字体',
- 'post_discuzcode_typewriter_comment' => '在文本中插入打字机字体,文本具有打字效果。\n例如:[typewriter]打字机字体[/typewriter]',
- 'post_discuzcode_typewriter_normal' => '请输入需要打字机字体的信息',
- 'post_discuzcode_strike' => '文字加上刪除线。',
- 'post_discuzcode_list_strike_normal' => '请输入要加上刪除线的文字。',
- //--BB CODE 按钮-----------------------------------------------------------------------------------------------------------------------
复制代码
5.去后台设置Discuz! 代码
系统设置------->Discuz! 代码------->开始设置---!
所有新增好了然后按 [详情]进入设置.
================================================================
5.1.新增标签:wmv
编辑 Discuz! 代码 - wmv
标签:
替换内容:
- <object height="400" width="500" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" align="center" border="0"><param name="AutoStart" value="0"><param name="Balance" value="0"><param name="enabled" value="-1"><param name="EnableContextMenu" value="-1"><param name="url" value="{1}"><param name="PlayCount" value="1"><param name="rate" value="1"><param name="currentPosition" value="0"><param name="currentMarker" value="0"><param name="defaultFrame" value=""><param name="invokeURLs" value="0"><param name="baseURL" value=""><param name="stretchToFit" value="0"><param name="volume" value="100"><param name="mute" value="0"><param name="uiMode" value="mini"><param name="windowlessVideo" value="0"><param name="fullScreen" value="0"><param name="enableErrorDialogs" value="-1"><param name="SAMIStyle" value><param name="SAMILang" value><param name="SAMIFilename" value><param name="captioningID" value></object>
复制代码
例子:
- [wmv]http://your.com/abc.wmv[/wmv]
复制代码
解释:
参数个数:
嵌套次数:
================================================================
5.2.新增标签:rm
编辑 Discuz! 代码 - rm
标签:
替换内容:
- <object classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="500" height="400" id="RealMoviePlayer" border="0"><param name="_ExtentX" value="13229"><param name="_ExtentY" value="10583"><param name="AUTOSTART" value="0"><param name="SHUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="0"><param name="CONTROLS" value="ImageWindow"><param name="CONSOLE" value="_master"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><param name="CENTER" value="0"><param name="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><param name="SRC" value="{1}"></object><br><object classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="500" height="40" id="RealMoviePlayer" border="0"><param name="_ExtentX" value="13229"><param name="_ExtentY" value="1058"><param name="AUTOSTART" value="0"><param name="SHUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="0"><param name="CONTROLS" value="controlpanel"><param name="CONSOLE" value="_master"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><param name="CENTER" value="0"><param name="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><param name="SRC" value="{1}"></object>
复制代码
例子:
- [rm]http://your.com/abc.rm[/rm]
复制代码
解释:
参数个数:
嵌套次数:
================================================================
5.3.新增标签:mp3
编辑 Discuz! 代码 - mp3
标签:
替换内容:
- <embed controller="true" width="200" height="20" src="{1}" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed>
复制代码
例子:
- [mp3]http://your.com/abc.mp3[/mp3]
复制代码
解释:
参数个数:
嵌套次数:
================================================================
5.4.新增标签:mid
编辑 Discuz! 代码 - mid
标签:
替换内容:
- <embed src="{1} " type="audio/midi" hidden="false" autostart="true" loop="true" height="20" width="200"></embed>
复制代码
例子:
- [mid]http://your.com/abc.mdi[/mid]
复制代码
解释:
参数个数:
嵌套次数:
================================================================
5.5.新增标签:fly
编辑 Discuz! 代码 - fly
标签:
替换内容:
- <marquee direction="left" scrollamount="3" onMouseOver="this.stop();" onMouseOut="this.start();">{1}</marquee>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.6.新增标签:typewriter
编辑 Discuz! 代码 - typewriter
标签:
替换内容:
- <span class="typewriter">{1}</SPAN>
复制代码
例子:
- [typewriter]打字机文字[/typewriter]
复制代码
解释:
参数个数:
嵌套次数:
================================================================
5.7.新增标签:crfont
编辑 Discuz! 代码 - crfont
标签:
替换内容:
- <span class="rainbow">{1}</SPAN>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.8.新增标签:qq
编辑 Discuz! 代码 - qq
标签:
替换内容:
- <a href="http://wpa.qq.com/msgrd?V=1&Uin={1}&Site=[Discuz!]&Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:{1}:1" border="0"></a>
复制代码
例子:
解释:
- Show online status of specified QQ UIN and chat with him/her simply by clicking the icon
复制代码
参数个数:
嵌套次数:
================================================================
5.9.新增标签:box
编辑 Discuz! 代码 - box
标签:
替换内容:
- <blockquote style="margin-left:20px; margin-right:20px; border:#DDE3EC dashed 1px; padding:5px; background-color:#FFFFFF;background-color: {1} ;">{2}</blockquote>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.10.新增标签:dshadow
编辑 Discuz! 代码 - dshadow
标签:
替换内容:
- <a style="width:100%; filter:Shadow(color=#999999, direction=145)"><font color="blue">{1}</font></font></a>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.11.新增标签:blur
编辑 Discuz! 代码 - blur
标签:
替换内容:
- <SPAN style="FILTER: Blur(Add=1, Direction=90, Strength=80); WIDTH: 730px">{1}</SPAN>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.12.新增标签:dao
编辑 Discuz! 代码 - dao
标签:
替换内容:
- <span style="width:400; font-family: Arial ; position: relative; filter: flipv">{1}</SPAN>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.13.新增标签:diao
编辑 Discuz! 代码 - diao
标签:
替换内容:
- <span style="width:700; font-family: Arial ; position: relative; filter: fliph">{1}</SPAN>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.14.新增标签:Shadow
编辑 Discuz! 代码 - Shadow
标签:
替换内容:
- <a style="width:100%; filter:Shadow(color=#999999, direction=145)"><font color="red">{1}</font></font></a>
复制代码
例子:
解释:
参数个数:
嵌套次数:
================================================================
5.15.新增标签:strike
编辑 Discuz! 代码 - strike
标签:
替换内容:
例子:
解释:
参数个数:
嵌套次数:
================================================================
6.打开css.htm模板
查找:
- .altbg2 { background: {ALTBG2} }
复制代码
在下面加入
- .rainbow{ behavior:url(./include/rainbow.htc) }
- .typewriter{ behavior:url(./include/typewriter.htc) }
复制代码
7.然后下载附件上传对应的目录就可以了
全部安装好后,记得要启用才能使用。
[ 本帖最后由 xmzyy 于 2005-12-14 22:22 编辑 ] |