.
INSERT INTO `cdb_bbcodes` VALUES (0, 1, 'hrr', '<hr style="border:100px dashed ;border-color:{1}" size="1" width="97%">', '[hrr]red[/hrr]', '虛線分隔線', 1, 1);
INSERT INTO `cdb_bbcodes` VALUES (0, 1, 'hr', '<hr size="1" color="{1}" width="97%">', '[hr]red[/hr]', '直線分隔線', 1, 1);
function hr() {
if (helpmode) {
alert(hr_help);
} else if (document.selection && document.selection.type == "Text") {
var range = document.selection.createRange();
range.text = "[hr]" + range.text + "[/hr]\r";
} else if (advmode) {
AddTxt="[hr]red[/hr]\r";
AddText(AddTxt);
} else {
txt=prompt(hr_normal,"red");
if (txt!=null) {
AddTxt="[hr]"+txt;
AddText(AddTxt);
AddText("[/hr]\r");
}
}
}
function hrr() {
if (helpmode) {
alert(hrr_help);
} else if (document.selection && document.selection.type == "Text") {
var range = document.selection.createRange();
range.text = "[hrr]" + range.text + "[/hrr]\r";
} else if (advmode) {
AddTxt="\r[hrr]red[/hrr]\r";
AddText(AddTxt);
} else {
txt=prompt(hrr_normal,"red");
if (txt!=null) {
AddTxt="[hrr]"+txt;
AddText(AddTxt);
AddText("[/hrr]\r");
}
}
}
var list_help = "{lang post_discuzcode_list}\n\n{lang post_discuzcode_list_comment}";
var list_normal = "{lang post_discuzcode_list_normal}";
var list_normal_error = "{lang post_discuzcode_list_normal_error}";
var list_normal_input = "{lang post_discuzcode_list_normal_input}";
var hr_help = "{lang post_discuzcode_hr}\n\n{lang post_discuzcode_hr_comment}";
var hr_normal = "{lang post_discuzcode_hr_normal}";
var hrr_help = "{lang post_discuzcode_hrr}\n\n{lang post_discuzcode_hrr_comment}";
var hrr_normal = "{lang post_discuzcode_hrr_normal}";
<a href="javascript:code()"><img src="{IMGDIR}/bb_code.gif" border="0" alt="{lang post_discuzcode_code}" align="absmiddle"></a>
<a href="javascript:hr()"><img src="images/default/bb_hr.gif" border="0" alt="{lang post_discuzcode_hr}" align="absmiddle"></a>
<a href="javascript:hrr()"><img src="images/default/bb_hrr.gif" border="0" alt="{lang post_discuzcode_hrr}" align="absmiddle"></a>
'post_discuzcode_center_normal' => '請輸入要居中對齊的文字。',
'post_discuzcode_hr' => '直線分隔線',
'post_discuzcode_hr_comment' => '在內容加入直線分隔線。\n例如﹕[hr]加上顏色[/hr]',
'post_discuzcode_hr_normal' => '請輸入要加入的顏色。',
'post_discuzcode_hrr' => '虛線分隔線',
'post_discuzcode_hrr_comment' => '在內容加入虛線分隔線。\n例如﹕[hrr]加上顏色[/hrr]',
'post_discuzcode_hrr_normal' => '請輸入要加入的顏色。',