Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 播放器+FLASH+歌词秀+全按扭(HIDE) For 4.1.0 by oytktk (04-15)更新

[复制链接]
 楼主| oytktk 发表于 2006-4-21 02:03:10 | 显示全部楼层
原帖由 chelle 于 2006-4-21 01:01 发表
楼主,你的头像变换是怎么弄的啊?


找找这里有不少呢~
回复

使用道具 举报

guanshui44 发表于 2006-4-21 05:29:56 | 显示全部楼层
include/bbcode.js
这个文件
里没有LZ说的代码
安装完
有错误
1行1字错了
回复

使用道具 举报

佟航 发表于 2006-4-21 20:20:26 | 显示全部楼层
我升级到了4,18后,在改这些文件最后在首页上面出现了function list1(){
scrolltext.scrollDelay=50;
scrolltext.scrollAmount=2;
scrolltext.direction="up";
}
function list2(){
scrolltext.scrollDelay=220;
scrolltext.scrollAmount=1;
scrolltext.direction="up";
}

function list3(){

scrolltext.scrollDelay=50;
scrolltext.scrollAmount=2;
scrolltext.direction="down";

}
function list4(){
scrolltext.scrollDelay=220;
scrolltext.scrollAmount=1;
scrolltext.direction="up";
},
就是更改include/common.js文件造成的,我应该怎么办。
回复

使用道具 举报

362324 发表于 2006-4-22 00:13:34 | 显示全部楼层
请楼主帮我看一下,我修改完之后,什么都用不了,就是那一排都用不了,这是怎么回事,
谢谢了!
问题已经解决了,欢迎大家测试
http://www.362324.cn/bbs/

[ 本帖最后由 362324 于 2006-4-22 00:23 编辑 ]
回复

使用道具 举报

 楼主| oytktk 发表于 2006-4-22 10:20:06 | 显示全部楼层
原帖由 guanshui44 于 2006-4-21 05:29 发表
include/bbcode.js
这个文件
里没有LZ说的代码
安装完
有错误
1行1字错了



你把你的那个文件贴上来看看..
回复

使用道具 举报

 楼主| oytktk 发表于 2006-4-22 10:20:34 | 显示全部楼层
原帖由 佟航 于 2006-4-21 20:20 发表
我升级到了4,18后,在改这些文件最后在首页上面出现了function list1(){
scrolltext.scrollDelay=50;
scrolltext.scrollAmount=2;
scrolltext.direction="up";
}
function list2(){
scrollte ...



没有加好啊...呵呵~~~
回复

使用道具 举报

guanshui44 发表于 2006-4-22 11:56:24 | 显示全部楼层
/******************************************************************************
  Crossday Discuz! Board - BB Code Insert
  Modified by: Comsenz Inc. (http://www.comsenz.com), Weiming Bianzhou
  Based upon:  XMB CodeInsert (http://www.xmbforum.com), matt
*******************************************************************************/

defmode = "normalmode";        // default mode (normalmode, advmode, helpmode)

if (defmode == "advmode") {
        helpmode = false;
        normalmode = false;
        advmode = true;
} else if (defmode == "helpmode") {
        helpmode = true;
        normalmode = false;
        advmode = false;
} else {
        helpmode = false;
        normalmode = true;
        advmode = false;
}

function chmode(swtch){
        if (swtch == 1){
                advmode = false;
                normalmode = false;
                helpmode = true;
                alert(help_mode);
        } else if (swtch == 0) {
                helpmode = false;
                normalmode = false;
                advmode = true;
                alert(adv_mode);
        } else if (swtch == 2) {
                helpmode = false;
                advmode = false;
                normalmode = true;
                alert(normal_mode);
        }
}

function AddText(NewCode) {
        document.all ? insertAtCaret(document.input.message, NewCode) : document.input.message.value += NewCode;
        setfocus();
}

function storeCaret(textEl){
        if(textEl.createTextRange){
                textEl.caretPos = document.selection.createRange().duplicate();
        }
}

function insertAtCaret(textEl, text){
        if (textEl.createTextRange && textEl.caretPos){
                var caretPos = textEl.caretPos;
                caretPos.text += caretPos.text.charAt(caretPos.text.length - 2) == ' ' ? text + ' ' : text;
        } else if(textEl) {
                textEl.value += text;
        } else {
                textEl.value = text;
        }
}

function getSelectedText() {
        var post = document.input.message;
        var selected = '';
        if(post.isTextEdit){
                post.focus();
                var sel= document.selection;
                var rng= sel.createRange();
                rng.colapse;
                if((sel.type =="Text" || sel.type == "None") && rng !=null){
                        if(rng.text.length > 0)        selected = rng.text;
                }
        }        
        return selected;
}

function alipay() {
        if (helpmode) {
                alert(alipay_help);
        } else if (advmode) {
                AddTxt = "\r[payto]\r[seller][/seller]\r[subject][/subject]\r[body][/body]\r[/url]\r[type][/type]\r[/payto]
    ";
                    AddText(AddTxt);
            } else {
                    var re=/^[\w.-]+@([0-9a-z][\w-]+\.)+[a-z]{2,3}$/i;
                    txt = prompt(alipay_normal_account,"");
                    if(txt != null) {
                            while(!re.test(txt)) {
                                    txt = prompt(alipay_normal_account_error,"");
                                    if(txt == null) return;
                            }
                                var promptHint = new Array(alipay_normal_merchandise, alipay_normal_description, alipay_normal_price, alipay_normal_homepage, alipay_normal_type, alipay_normal_transport);
                                var promptValue = new Array("subject", "body", "price", "url", "type", "transport");
                                var AddTxt = "[payto]\r\n(seller)" + txt + "(/seller)\r\n";
                                for(i = 0; i < promptHint.length; i++) {
                                    var txt = prompt(promptHint, "");
                                    if(txt == null) break;
                                    AddTxt+="("+promptValue+")"+txt+"(/"+promptValue+")\r\n";
                                }
                                if(txt!=null) {
                                        AddTxt+="[/payto]";
                                        AddText(AddTxt);
                                }
                    }
            }
    }

    function email() {
            if (helpmode) {
                    alert(email_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "
    " + range.text + "";
            } else if (advmode) {
                    AddTxt=" ";
                    AddText(AddTxt);
            } else {
                    txt2=prompt(email_normal,"");
                    if (txt2!=null) {
                            txt=prompt(email_normal_input,"name@domain.com");
                            if (txt!=null) {
                                    if (txt2=="") {
                                            AddTxt=""+txt+"";
                                    } else {
                                            AddTxt="[email="+txt+"]"+txt2+"[/email]";
                                    }
                                    AddText(AddTxt);
                            }
                    }
            }
    }

    function chsize(size) {
            if (helpmode) {
                    alert(fontsize_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "[size=" + size + "]" + range.text + "";
            } else if (advmode) {
                    AddTxt="[size="+size+"] ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(fontsize_normal,text_input);
                    if (txt!=null) {
                            AddTxt="[size="+size+"]"+txt;
                            AddText(AddTxt);
                            AddText("");
                    }
            }
    }

    function chfont(font) {
            if (helpmode){
                    alert(font_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "" + range.text + "";
            } else if (advmode) {
                    AddTxt=" ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(font_normal,text_input);
                    if (txt!=null) {
                            AddTxt=""+txt;
                            AddText(AddTxt);
                            AddText("
    ");
                    }
            }
    }

    function bold() {
            if (helpmode) {
                    alert(bold_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "" + range.text + "";
            } else if (advmode) {
                    AddTxt=" ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(bold_normal,text_input);
                    if (txt!=null) {
                            AddTxt=""+txt;
                            AddText(AddTxt);
                            AddText("
    ");
                    }
            }
    }

    function italicize() {
            if (helpmode) {
                    alert(italicize_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "" + range.text + "";
            } else if (advmode) {
                    AddTxt=" ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(italicize_normal,text_input);
                    if (txt!=null) {
                            AddTxt=""+txt;
                            AddText(AddTxt);
                            AddText("
    ");
                    }
            }
    }

    function quote() {
            if (helpmode){
                    alert(quote_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "
    " + range.text + "
    ";
            } else if (advmode) {
                    AddTxt="\r
    \r
    ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(quote_normal,text_input);
                    if(txt!=null) {
                            AddTxt="\r
    \r"+txt;
                            AddText(AddTxt);
                            AddText("\r
    ");
                    }
            }
    }

    function chcolor(color) {
            if (helpmode) {
                    alert(color_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "[color=" + color + "]" + range.text + "";
            } else if (advmode) {
                    AddTxt="[color="+color+"] ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(color_normal,text_input);
                    if(txt!=null) {
                            AddTxt="[color="+color+"]"+txt;
                            AddText(AddTxt);
                            AddText("");
                    }
            }
    }

    function center() {
            if (helpmode) {
                    alert(center_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "
    " + range.text + "
    ";
            } else if (advmode) {
                    AddTxt="
    ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(center_normal,text_input);
                    if (txt!=null) {
                            AddTxt="\r
    "+txt;
                            AddText(AddTxt);
                            AddText("
    ");
                    }
            }
    }

    function hyperlink() {
            if (helpmode) {
                    alert(link_help);
            } else if (advmode) {
                    AddTxt="[url] ";
                    AddText(AddTxt);
            } else {
                    txt2=prompt(link_normal,"");
                    if (txt2!=null) {
                            txt=prompt(link_normal_input,"http://");
                            if (txt!=null) {
                                    if (txt2=="") {
                                            AddTxt=""+txt;
                                            AddText(AddTxt);
                                            AddText("
    ");
                                    } else {
                                            AddTxt=""+txt2;
                                            AddText(AddTxt);
                                            AddText("
    ");
                                    }
                            }
                    }
            }
    }

    function image() {
            if (helpmode){
                    alert(image_help);
            } else if (advmode) {
                    AddTxt="";
                    AddText(AddTxt);
            } else {
                    txt=prompt(image_normal,"http://");
                    if(txt!=null) {
                            AddTxt="\r[img]"+txt;
                            AddText(AddTxt);
                            AddText("[/img]");
                    }
            }
    }

    function flash() {
            if (helpmode){
                    alert(flash_help);
            } else if (advmode) {
                    AddTxt=" Flash: http:// ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(flash_normal,"http://");
                    if(txt!=null) {
                            AddTxt="\r[swf]"+txt;
                            AddText(AddTxt);
                            AddText("[/swf]");
                    }
            }
    }

    function code() {
            if (helpmode) {
                    alert(code_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "
    1. " + range.text + "
    复制代码
    ";
            } else if (advmode) {
                    AddTxt="\r
    1. \r
    复制代码
    ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(code_normal,"");
                    if (txt!=null) {
                            AddTxt="\r
    1. "+txt;
    2.                         AddText(AddTxt);
    3.                         AddText("
    复制代码
    ");
                    }
            }
    }

    function list() {
            if (helpmode) {
                    alert(list_help);
            } else if (advmode) {
                    AddTxt="\r
      \r
    • \r
    • \r
    • \r
    ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(list_normal,"");
                    while ((txt!="") && (txt!="A") && (txt!="a") && (txt!="1") && (txt!=null)) {
                            txt=prompt(list_normal_error,"");
                    }
                    if (txt!=null) {
                            if (txt=="") {
                                    AddTxt="\r
      \r\n";
                              } else {
                                      AddTxt="\r[list="+txt+"]\r";
                              }
                              txt="1";
                              while ((txt!="") && (txt!=null)) {
                                      txt=prompt(list_normal_input,"");
                                      if (txt!="") {
                                              AddTxt+="
    • "+txt+"\r";
                                      }
                              }
                              AddTxt+="
    \r\n";
                            AddText(AddTxt);
                    }
            }
    }

    function underline() {
            if (helpmode) {
                    alert(underline_help);
            } else if (getSelectedText()) {
                    var range = document.selection.createRange();
                    range.text = "" + range.text + "";
            } else if (advmode) {
                    AddTxt=" ";
                    AddText(AddTxt);
            } else {
                    txt=prompt(underline_normal,text_input);
                    if (txt!=null) {
                            AddTxt=""+txt;
                            AddText(AddTxt);
                            AddText("
    ");
                    }
            }
    }

    function setfocus() {
            document.input.message.focus();
    }
回复

使用道具 举报

guanshui44 发表于 2006-4-22 11:59:47 | 显示全部楼层

  1. /******************************************************************************
  2.   Crossday Discuz! Board - BB Code Insert
  3.   Modified by: Comsenz Inc. (http://www.comsenz.com), Weiming Bianzhou
  4.   Based upon:  XMB CodeInsert (http://www.xmbforum.com), matt
  5. *******************************************************************************/

  6. defmode = "normalmode";        // default mode (normalmode, advmode, helpmode)

  7. if (defmode == "advmode") {
  8.         helpmode = false;
  9.         normalmode = false;
  10.         advmode = true;
  11. } else if (defmode == "helpmode") {
  12.         helpmode = true;
  13.         normalmode = false;
  14.         advmode = false;
  15. } else {
  16.         helpmode = false;
  17.         normalmode = true;
  18.         advmode = false;
  19. }

  20. function chmode(swtch){
  21.         if (swtch == 1){
  22.                 advmode = false;
  23.                 normalmode = false;
  24.                 helpmode = true;
  25.                 alert(help_mode);
  26.         } else if (swtch == 0) {
  27.                 helpmode = false;
  28.                 normalmode = false;
  29.                 advmode = true;
  30.                 alert(adv_mode);
  31.         } else if (swtch == 2) {
  32.                 helpmode = false;
  33.                 advmode = false;
  34.                 normalmode = true;
  35.                 alert(normal_mode);
  36.         }
  37. }

  38. function AddText(NewCode) {
  39.         document.all ? insertAtCaret(document.input.message, NewCode) : document.input.message.value += NewCode;
  40.         setfocus();
  41. }

  42. function storeCaret(textEl){
  43.         if(textEl.createTextRange){
  44.                 textEl.caretPos = document.selection.createRange().duplicate();
  45.         }
  46. }

  47. function insertAtCaret(textEl, text){
  48.         if (textEl.createTextRange && textEl.caretPos){
  49.                 var caretPos = textEl.caretPos;
  50.                 caretPos.text += caretPos.text.charAt(caretPos.text.length - 2) == ' ' ? text + ' ' : text;
  51.         } else if(textEl) {
  52.                 textEl.value += text;
  53.         } else {
  54.                 textEl.value = text;
  55.         }
  56. }

  57. function getSelectedText() {
  58.         var post = document.input.message;
  59.         var selected = '';
  60.         if(post.isTextEdit){
  61.                 post.focus();
  62.                 var sel= document.selection;
  63.                 var rng= sel.createRange();
  64.                 rng.colapse;
  65.                 if((sel.type =="Text" || sel.type == "None") && rng !=null){
  66.                         if(rng.text.length > 0)        selected = rng.text;
  67.                 }
  68.         }        
  69.         return selected;
  70. }

  71. function alipay() {
  72.         if (helpmode) {
  73.                 alert(alipay_help);
  74.         } else if (advmode) {
  75.                 AddTxt = "\r[payto]\r[seller][/seller]\r[subject][/subject]\r[body][/body]\r[url][/url]\r[type][/type]\r[/payto][list]";
  76.                 AddText(AddTxt);
  77.         } else {
  78.                 var re=/^[\w.-]+@([0-9a-z][\w-]+\.)+[a-z]{2,3}$/i;
  79.                 txt = prompt(alipay_normal_account,"");
  80.                 if(txt != null) {
  81.                         while(!re.test(txt)) {
  82.                                 txt = prompt(alipay_normal_account_error,"");
  83.                                 if(txt == null) return;
  84.                         }
  85.                             var promptHint = new Array(alipay_normal_merchandise, alipay_normal_description, alipay_normal_price, alipay_normal_homepage, alipay_normal_type, alipay_normal_transport);
  86.                             var promptValue = new Array("subject", "body", "price", "url", "type", "transport");
  87.                             var AddTxt = "[payto]\r\n(seller)" + txt + "(/seller)\r\n";
  88.                             for(i = 0; i < promptHint.length; i++) {
  89.                                 var txt = prompt(promptHint[i], "");
  90.                                 if(txt == null) break;
  91.                                 AddTxt+="("+promptValue[i]+")"+txt+"(/"+promptValue[i]+")\r\n";
  92.                             }
  93.                             if(txt!=null) {
  94.                                     AddTxt+="[/payto]";
  95.                                     AddText(AddTxt);
  96.                             }
  97.                 }
  98.         }
  99. }

  100. function email() {
  101.         if (helpmode) {
  102.                 alert(email_help);
  103.         } else if (getSelectedText()) {
  104.                 var range = document.selection.createRange();
  105.                 range.text = "[email]" + range.text + "[/email]";
  106.         } else if (advmode) {
  107.                 AddTxt="[email] [/email]";
  108.                 AddText(AddTxt);
  109.         } else {
  110.                 txt2=prompt(email_normal,"");
  111.                 if (txt2!=null) {
  112.                         txt=prompt(email_normal_input,"name@domain.com");
  113.                         if (txt!=null) {
  114.                                 if (txt2=="") {
  115.                                         AddTxt="[email]"+txt+"[/email]";
  116.                                 } else {
  117.                                         AddTxt="[email="+txt+"]"+txt2+"[/email]";
  118.                                 }
  119.                                 AddText(AddTxt);
  120.                         }
  121.                 }
  122.         }
  123. }

  124. function chsize(size) {
  125.         if (helpmode) {
  126.                 alert(fontsize_help);
  127.         } else if (getSelectedText()) {
  128.                 var range = document.selection.createRange();
  129.                 range.text = "[size=" + size + "]" + range.text + "[/size]";
  130.         } else if (advmode) {
  131.                 AddTxt="[size="+size+"] [/size]";
  132.                 AddText(AddTxt);
  133.         } else {
  134.                 txt=prompt(fontsize_normal,text_input);
  135.                 if (txt!=null) {
  136.                         AddTxt="[size="+size+"]"+txt;
  137.                         AddText(AddTxt);
  138.                         AddText("[/size]");
  139.                 }
  140.         }
  141. }

  142. function chfont(font) {
  143.         if (helpmode){
  144.                 alert(font_help);
  145.         } else if (getSelectedText()) {
  146.                 var range = document.selection.createRange();
  147.                 range.text = "[font=" + font + "]" + range.text + "[/font]";
  148.         } else if (advmode) {
  149.                 AddTxt="[font="+font+"] [/font]";
  150.                 AddText(AddTxt);
  151.         } else {
  152.                 txt=prompt(font_normal,text_input);
  153.                 if (txt!=null) {
  154.                         AddTxt="[font="+font+"]"+txt;
  155.                         AddText(AddTxt);
  156.                         AddText("[/font]");
  157.                 }
  158.         }
  159. }

  160. function bold() {
  161.         if (helpmode) {
  162.                 alert(bold_help);
  163.         } else if (getSelectedText()) {
  164.                 var range = document.selection.createRange();
  165.                 range.text = "[b]" + range.text + "[/b]";
  166.         } else if (advmode) {
  167.                 AddTxt="[b] [/b]";
  168.                 AddText(AddTxt);
  169.         } else {
  170.                 txt=prompt(bold_normal,text_input);
  171.                 if (txt!=null) {
  172.                         AddTxt="[b]"+txt;
  173.                         AddText(AddTxt);
  174.                         AddText("[/b]");
  175.                 }
  176.         }
  177. }

  178. function italicize() {
  179.         if (helpmode) {
  180.                 alert(italicize_help);
  181.         } else if (getSelectedText()) {
  182.                 var range = document.selection.createRange();
  183.                 range.text = "[i]" + range.text + "[/i]";
  184.         } else if (advmode) {
  185.                 AddTxt="[i] [/i]";
  186.                 AddText(AddTxt);
  187.         } else {
  188.                 txt=prompt(italicize_normal,text_input);
  189.                 if (txt!=null) {
  190.                         AddTxt="[i]"+txt;
  191.                         AddText(AddTxt);
  192.                         AddText("[/i]");
  193.                 }
  194.         }
  195. }

  196. function quote() {
  197.         if (helpmode){
  198.                 alert(quote_help);
  199.         } else if (getSelectedText()) {
  200.                 var range = document.selection.createRange();
  201.                 range.text = "[quote]" + range.text + "[/quote]";
  202.         } else if (advmode) {
  203.                 AddTxt="\r[quote]\r[/quote]";
  204.                 AddText(AddTxt);
  205.         } else {
  206.                 txt=prompt(quote_normal,text_input);
  207.                 if(txt!=null) {
  208.                         AddTxt="\r[quote]\r"+txt;
  209.                         AddText(AddTxt);
  210.                         AddText("\r[/quote]");
  211.                 }
  212.         }
  213. }

  214. function chcolor(color) {
  215.         if (helpmode) {
  216.                 alert(color_help);
  217.         } else if (getSelectedText()) {
  218.                 var range = document.selection.createRange();
  219.                 range.text = "[color=" + color + "]" + range.text + "[/color]";
  220.         } else if (advmode) {
  221.                 AddTxt="[color="+color+"] [/color]";
  222.                 AddText(AddTxt);
  223.         } else {
  224.                 txt=prompt(color_normal,text_input);
  225.                 if(txt!=null) {
  226.                         AddTxt="[color="+color+"]"+txt;
  227.                         AddText(AddTxt);
  228.                         AddText("[/color]");
  229.                 }
  230.         }
  231. }

  232. function center() {
  233.         if (helpmode) {
  234.                 alert(center_help);
  235.         } else if (getSelectedText()) {
  236.                 var range = document.selection.createRange();
  237.                 range.text = "[align=center]" + range.text + "[/align]";
  238.         } else if (advmode) {
  239.                 AddTxt="[align=center] [/align]";
  240.                 AddText(AddTxt);
  241.         } else {
  242.                 txt=prompt(center_normal,text_input);
  243.                 if (txt!=null) {
  244.                         AddTxt="\r[align=center]"+txt;
  245.                         AddText(AddTxt);
  246.                         AddText("[/align]");
  247.                 }
  248.         }
  249. }

  250. function hyperlink() {
  251.         if (helpmode) {
  252.                 alert(link_help);
  253.         } else if (advmode) {
  254.                 AddTxt="[url] [/url]";
  255.                 AddText(AddTxt);
  256.         } else {
  257.                 txt2=prompt(link_normal,"");
  258.                 if (txt2!=null) {
  259.                         txt=prompt(link_normal_input,"http://");
  260.                         if (txt!=null) {
  261.                                 if (txt2=="") {
  262.                                         AddTxt="[url]"+txt;
  263.                                         AddText(AddTxt);
  264.                                         AddText("[/url]");
  265.                                 } else {
  266.                                         AddTxt="[url="+txt+"]"+txt2;
  267.                                         AddText(AddTxt);
  268.                                         AddText("[/url]");
  269.                                 }
  270.                         }
  271.                 }
  272.         }
  273. }

  274. function image() {
  275.         if (helpmode){
  276.                 alert(image_help);
  277.         } else if (advmode) {
  278.                 AddTxt="[img] [/img]";
  279.                 AddText(AddTxt);
  280.         } else {
  281.                 txt=prompt(image_normal,"http://");
  282.                 if(txt!=null) {
  283.                         AddTxt="\r[img]"+txt;
  284.                         AddText(AddTxt);
  285.                         AddText("[/img]");
  286.                 }
  287.         }
  288. }

  289. function flash() {
  290.         if (helpmode){
  291.                 alert(flash_help);
  292.         } else if (advmode) {
  293.                 AddTxt="[swf] [/swf]";
  294.                 AddText(AddTxt);
  295.         } else {
  296.                 txt=prompt(flash_normal,"http://");
  297.                 if(txt!=null) {
  298.                         AddTxt="\r[swf]"+txt;
  299.                         AddText(AddTxt);
  300.                         AddText("[/swf]");
  301.                 }
  302.         }
  303. }

  304. function code() {
  305.         if (helpmode) {
  306.                 alert(code_help);
  307.         } else if (getSelectedText()) {
  308.                 var range = document.selection.createRange();
  309.                 range.text = "[code]" + range.text + "
复制代码
";
        } else if (advmode) {
                AddTxt="\r
  1. \r
复制代码
";
                AddText(AddTxt);
        } else {
                txt=prompt(code_normal,"");
                if (txt!=null) {
                        AddTxt="\r
  1. "+txt;
  2.                         AddText(AddTxt);
  3.                         AddText("
复制代码
");
                }
        }
}

function list() {
        if (helpmode) {
                alert(list_help);
        } else if (advmode) {
                AddTxt="\r
    \r
  • \r
  • \r
  • \r
";
                AddText(AddTxt);
        } else {
                txt=prompt(list_normal,"");
                while ((txt!="") && (txt!="A") && (txt!="a") && (txt!="1") && (txt!=null)) {
                        txt=prompt(list_normal_error,"");
                }
                if (txt!=null) {
                        if (txt=="") {
                                AddTxt="\r
    \r\n";
                            } else {
                                    AddTxt="\r[list="+txt+"]\r";
                            }
                            txt="1";
                            while ((txt!="") && (txt!=null)) {
                                    txt=prompt(list_normal_input,"");
                                    if (txt!="") {
                                            AddTxt+="
  • "+txt+"\r";
                                    }
                            }
                            AddTxt+="
\r\n";
                        AddText(AddTxt);
                }
        }
}

function underline() {
        if (helpmode) {
                alert(underline_help);
        } else if (getSelectedText()) {
                var range = document.selection.createRange();
                range.text = "" + range.text + "";
        } else if (advmode) {
                AddTxt=" ";
                AddText(AddTxt);
        } else {
                txt=prompt(underline_normal,text_input);
                if (txt!=null) {
                        AddTxt=""+txt;
                        AddText(AddTxt);
                        AddText("
");
                }
        }
}

function setfocus() {
        document.input.message.focus();
}
[/code]
回复

使用道具 举报

albb 发表于 2006-4-22 14:16:25 | 显示全部楼层
LZ你这完全在整人眼都看花了修不下去了,建议那5个文件一起直接打包.
阿弥陀佛...:):):)大家都会感谢的!!!呵呵!!!
回复

使用道具 举报

b-two 发表于 2006-4-22 16:54:15 | 显示全部楼层
全都照着做了。可是FLASH不能在线播放。搞了半天没搞出来。楼主是不是漏了什么没说呀?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-26 11:14 , Processed in 0.104823 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表