<html><HEAD><TITLE>转贴快手</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>
a.a007:link{ text-decoration:none; color: #FF0000;font-size: 10pt;}
a.a007:visited{ TEXT-DECORATION: none; color: #FF0000;font-size: 10pt;}
a.a007:active{ text-decoration:none; color: #FF0000;font-size: 10pt;}
a.a007:hover{color:#000000;text-decoration:underline;font-size: 10pt;}
a.a006:link{ text-decoration:none; color: #1B4E9A;font-size: 10pt;}
a.a006:visited{ TEXT-DECORATION: none; color: #0064A8;font-size: 10pt;}
a.a006:active{ text-decoration:none; color: #1B4E9A;font-size: 10pt;}
a.a006:hover{color: #FF0000;text-decoration:underline;font-size: 10pt;}
a.a01:link{ text-decoration:none; color: #205AB3;font-size: 9pt;}
a.a01:visited{ TEXT-DECORATION: none; color: #205AB3;font-size: 9pt;}
a.a01:active{ text-decoration:none; color: #205AB3;font-size: 9pt;}
a.a01:hover{color:red;text-decoration:underline;font-size: 9pt;}
a.a02:link{ text-decoration:none; color: #ffffff;font-size: 9pt;}
a.a02:visited{ TEXT-DECORATION: none; color: #ffffbb;font-size: 9pt;}
a.a02:hover{color:#FFFF00;text-decoration:underline;font-size: 9pt;}
a:link{ text-decoration:none; color: #000000;}
a:visited{ TEXT-DECORATION: none; color: #000000;}
a:active{ text-decoration:none; color: #000000;}
a:hover{color:red;text-decoration:underlisne}
.input { BACKGROUND-COLOR: transparent; BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: rgb(0,0,0) 1px solid; BORDER-TOP: rgb(0,0,0) 1px solid; FONT-FAMILY: "Arial"; FONT-SIZE: 11pt; FONT-WEIGHT: normal
}
TD {FONT-SIZE: 9pt}
.text8 {font-size: 8pt;}
.text9 {font-size: 9pt;}
.text10 {font-size: 10pt;}
.text11 {font-size: 11pt;}
.text12 {font-size: 12pt;}
.fire
{
font-size:9pt;
filter:glow( color=#ffcc00,strengh=0);
width:auto;
height:auto;
position:relative;
}
.newfont7 { font-family: "宋体"; font-size: 9pt; filter:dropshadow(color=#ffffcc,offx=1,offy=1);color:#333333}
.comment_text {
font-size: 14px;
line-height: 20px;
letter-spacing: 1px;
}
.style1 {
font-size: 16pt;
color: #006600;
font-weight: bold;
}
textarea {
color: #FF3399;
background-color: #FFFFCC;
}
table {
color: #990066;
background-color: #FF99CC;
}
</STYLE>
<SCRIPT language=JavaScript>
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</SCRIPT>
<SCRIPT language=JavaScript1.2>
function delnull()
{
var str=document.getElementById('text').value;
str=str.replace(/([/s]*/r/n[/s]*){2,}/gm,"/r/n");
document.getElementById('text').value=str;
}
function refix()
{
var str=document.getElementById('text').value;
str=str.replace(/([/s]*/r/n[/s]*){2,}/gm,"/r/n/r/n");
document.getElementById('text').value=str;
}
function url()
{
var str=document.getElementById('text').value;
str=str.replace(/^[ ]*(http:|^mms:|^rtsp:|^pnm:|^ftp:|^mmst:|^mmsu:)([^/r/n]*)$/igm,"[url]$1$2[/url]");
document.getElementById('text').value=str;
}
function addbr()
{
var str=document.getElementById('text').value;
str=str.replace(//r/n/gm,"/r/n/r/n");
document.getElementById('text').value=str;
}
function html_trans(str) {
str = str.replace(//r/g,"");
str = str.replace(/on(load|click|dbclick|mouseover|mousedown|mouseup)="[^"]+"/ig,"");
str = str.replace(/<script[^>]*?>([/w/W]*?)<//script>/ig,"");
if(set.filtrate.checked)
{
str = str.replace(/[^<]*<([^>]*?)>[^<]*/ig,"<$1>");
tm=window.textfield.value;
if(tm.length<1){
var arr;
arr=str.match(/<img[^>]+src=[" ]?([^"]+)[" ]?[^>]*>/ig);
tm=arr[0].replace(/<img[^>]+src=[" ]?([^"]+)[" ]?[^>]*>/ig,"$1")+"/"";
i=tm.search(///[^//]+"/ig);
tm=tm.substr(0,i);
window.textfield.value=tm+"/";
}
if(tm.substr(tm.length-1,1)!="/") tm+="/";
var strtm="<img[^>]+src=[/"]?("+tm+"[^/"]+)[/"]?[^>]*>";
var re = new RegExp(strtm,"ig");
str = str.replace(re,"/n[img]$1[/img]/n");
}
else
{
if(set.stext.checked) str = str.replace(/[^<]*<([^>]*?)>[^<]*/ig,"<$1>");
if(!set.linka.checked) str = str.replace(/<a[^>]+href=[" ]?([^"]+)[" ]?[^>]*>(.*?)<//a>/ig,"/n[url=$1]$2[/url]/n");
if(!set.font_color.checked&&!set.stext.checked)
str = str.replace(/<font([^>]+)color=([^ >]+)([^>]*)>(.*?)<//font>/ig,"/n[color=$2]<font$1$3>$4</font>[/color]/n");
if(!set.font_size.checked&&!set.stext.checked)
str = str.replace(/<font([^>]+)size=([^ >]+)([^>]*)>(.*?)<//font>/ig,"/n[size=$2]<font$1$3>$4</font>[/size]/n");
if(!set.font_face.checked&&!set.stext.checked)
str = str.replace(/<font[^>]+face=([^ >]+)[^>]*>(.*?)<//font>/ig,"/n[font=$1]$2[/font]/n");
if(!set.img.checked) str = str.replace(/<img[^>]+src=[" ]?([^"]+)[" ]?[^>]*>/ig,"/n[img]$1[/img]/n");
if(!set.odj.checked){
//return str;
str = str.replace(/<object[^>]+classid=[" ]?clsid:D27CDB6E-AE6D-11cf-96B8-444553540000[" ]?[^>]*>(.*?)<param[^>]+name=[" ]?movie[" ]?[^>]+value=[" ]?([^"]+)[" ]?[^>]*>/ig,"/n[swf]$2[/swf]/n");
str = str.replace(/<object[^>]+classid=[" ]?clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA[" ]?[^>]*>.*<param[^>]+name="src"[^>]+value="([^"]+)">/ig,"/n[rm]$1[/rm]/n");
}
if(!set.font_b.checked&&!set.stext.checked){
str = str.replace(/<([//]?)b>/ig,"[$1b]");
str = str.replace(/<([//]?)strong>/ig,"[$1b]");}
if(!set.font_u.checked&&!set.stext.checked)
str = str.replace(/<([//]?)u>/ig,"[$1u]");
if(!set.font_i.checked&&!set.stext.checked)
str = str.replace(/<([//]?)i>/ig,"[$1i]");
str = str.replace(/ /g," ");
str = str.replace(/&/g,"&");
str = str.replace(/"/g,"/"");
str = str.replace(/</g,"<");
str = str.replace(/>/g,">");
}
str = str.replace(/<br>/ig,"/n");
str = str.replace(/<p[^>]*?>/ig,"/n/n");
str = str.replace(/<[^>]*?>/g,"");
str = str.replace(//[url=([^/]]+)/]/n(/[img/]/1/[//img/])/n/[//url/]/g,"$2");
str = str.replace(//n+/g,"/n");
return str;
}
function copycode(obj){
obj.select();
objcopy=obj.createTextRange();
objcopy.execCommand("Copy");
}
function trans(){
var str = "";
rtf.focus();
rtf.document.body.innerHTML = "";
rtf.document.execCommand("paste");
str = rtf.document.body.innerHTML;
if(str.length == 0) {
alert("剪贴版不存在超文本数据!");
return "";
}
return html_trans(str);
}
function preview(){
var prewin=window.open("","","");
prewin.document.write(rtf.document.body.innerHTML);
}
function zhen(str)
{
strfound=str.replace(ig,"");
strfound=strfound.replace(//[/ig,"//[");
strfound=strfound.replace(//]/ig,"//]");
strfound=strfound.replace(//{/ig,"//{");
strfound=strfound.replace(//}/ig,"//}");
strfound=strfound.replace(//|/ig,"//|");
strfound=strfound.replace(ig,"///");
strfound=strfound.replace(//^/ig,"//^");
strfound=strfound.replace(//./ig,"//.");
strfound=strfound.replace(//*/ig,"//*");
strfound=strfound.replace(//?/ig,"//?");
strfound=strfound.replace(//+/ig,"//+");
return strfound;
}
function replace_star()
{
var str=document.getElementById('text').value;
if(!reg.checked)
strfound=zhen(find_text.value);
else
strfound=find_text.value;
var re = new RegExp(strfound,"ig");
str=str.replace(re,replace_text.value);
document.getElementById('text').value=str;
}
</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0>
<TABLE width=98% border=1 align=center cellPadding=0 cellSpacing=0 borderColor=#000000 bgcolor="#FF99CC" style="BORDER-COLLAPSE: collapse">
<TBODY>
<TR>
<TD align=middle width="100%">
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 bgcolor="#FF99CC">
<TBODY>
<TR>
<TD align=center bgColor=#FF99CC>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 bgcolor="#FF99CC">
<TBODY>
<TR>
<TD height="38" align=center bgColor=#FF99CC ><h1><span class="style1">丝·图腾 转贴快手</span></h1></TD>
</TR>
<TR>
<TD align=center valign="middle" bgColor=#E5E8EA class="style1"> </TD>
</TR>
</TBODY></TABLE>
<TEXTAREA class=textarea onbeforepaste="if(document.getElementById('x_paste').checked){window.clipboardData.setData('text',trans());this.focus();}" id=text style="WIDTH: 98%; HEIGHT: 300px" cols=100></TEXTAREA> <IFRAME id=rtf style="WIDTH: 0px; HEIGHT: 0px" marginWidth=0 marginHeight=0 src="about:blank" scrolling=no></IFRAME><LABEL for=x_paste></LABEL>
<TABLE width=713 align=center border=0>
<TBODY>
<TR align=middle>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick="document.getElementById('text').value = trans();" type=button value=转换(覆盖) name=button></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick="document.getElementById('text').value += trans();" type=button value=转换(追加) name=button></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick=copycode(window.text) type=button value=复制到剪贴板></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick=preview() type=button value=" 预 览 帖 子 " name=preview></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick="document.getElementById('text').value=''" type=button value="清空框中内容"></TD>
<TD width="20%">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR align=middle>
<TD><INPUT title=自动分析所有超链接,并转换成超链接格式 注意:超链接必须单独在一行中! style="WIDTH: 80px" οnclick=url() type=button value=分析超链接 name=Submit></TD>
<TD><INPUT title=紧凑格式,删除所有空行 style="WIDTH: 80px" οnclick=delnull() type=button value=清除空行 name=Submit></TD></TR>
<TR align=middle>
<TD><INPUT title=清除多余的空行,保持最一个空行 style="WIDTH: 80px" οnclick=refix() type=button value=清除多余行 name=Submit></TD>
<TD><INPUT title=为每一行(包括空行)增加一空行 style="WIDTH: 80px" οnclick=addbr() type=button value=增加空行 name=Submit></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<FORM name=set>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD title=转换的结果中将不含有图片信息 width="13%" height=25><LABEL for=img><INPUT id=img type=checkbox> 屏蔽图片</LABEL></TD>
<TD title=转换的结果中将不含有链接信息 width="14%"><LABEL for=linka><INPUT id=linka type=checkbox> 屏蔽超链接</LABEL></TD>
<TD title=转换的结果中将不含音频、视频、FLASH等信息 width="14%"><LABEL for=odj><INPUT id=odj type=checkbox> 屏蔽对象</LABEL></TD>
<TD title=转换的结果中将不含文本信息,同时字体属性也被自动屏蔽 width="14%"><LABEL for=stext><INPUT id=stext type=checkbox> 屏蔽文字</LABEL></TD>
<TD title=将基本地址以外的图片过滤掉 width="14%"><LABEL for=filtrate><INPUT id=filtrate οnclick="if(this.checked)window.base_url.style.display='block';else window.base_url.style.display='none';" type=checkbox> 启用图片过滤</LABEL></TD>
<TD title=屏蔽所有定字体相关的属性 width="14%"><LABEL for=font><INPUT id=font οnclick=font_color.checked=this.checked;font_size.checked=this.checked;font_face.checked=this.checked;font_b.checked=this.checked;font_i.checked=this.checked;font_u.checked=this.checked; type=checkbox> 屏蔽字体属性</LABEL></TD></TR>
<TR>
<TD title=转换的结果中将不含有字体颜色信息><LABEL for=font_color><INPUT id=font_color type=checkbox> 屏蔽字体颜色</LABEL></TD>
<TD title=转换的结果中将不含有字体尺寸信息><LABEL for=font_size><INPUT id=font_size type=checkbox> 屏蔽字体尺寸</LABEL></TD>
<TD title=转换的结果中将不含有字体类型信息><LABEL for=font_face><INPUT id=font_face type=checkbox> 屏蔽字体类型</LABEL></TD>
<TD title=转换的结果中将不含有粗体信息><LABEL for=font_b><INPUT id=font_b type=checkbox> 屏蔽粗体</LABEL></TD>
<TD title=转换的结果中将不含有斜体信息><LABEL for=font_i><INPUT id=font_i type=checkbox> 屏蔽斜体</LABEL></TD>
<TD title=转换的结果中将不含有下划线信息><LABEL for=font_u><INPUT id=font_u type=checkbox> 屏蔽下划线</LABEL></TD></TR></TBODY></TABLE></FORM>
<TABLE id=base_url style="DISPLAY: none" cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle><B>输入图片的基本地址</B> <INPUT style="BACKGROUND-COLOR: #FFE8DE" size=70 name=textfield> <INPUT οnclick="window.textfield.value=''" type=button value=清空 name=Submit></TD></TR>
<TR>
<TD align=middle><FONT color=#FF1493>如果未指定基本地址,则将自动取第一张图片的位置做基本地址。基本地址是指除文件名外的网络路径,如图片地址为:<FONT color=#0000ff>http://www.lylcz.com/zhiliao/logo/logo1.gif</FONT> ,则除去图片文件名 <FONT color=#0000ff>logo1.gif</FONT> 后基本地址为:<FONT color=#0000ff>http://www.lylcz.com/zhiliao/logo/</FONT></FONT>
<HR width="100%" color=#000000 SIZE=1>
</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD class=text11 align=middle width="91%">查找文字 <INPUT id=find_text size=68 name=find_text> <INPUT οnclick="set.reset();find_text.value='';replace_text.value='';window.textfield.value='';" type=button value=全恢复默认 name=Submit> </TD>
<TD class=text11 align=middle width="9%" rowSpan=2><LABEL for=reg><INPUT id=reg type=checkbox value=1 name=reg> 使用<BR>正则语法</LABEL> </TD></TR>
<TR>
<TD class=text11 align=middle>替换文字 <INPUT id=replace_text size=68 name=replace_text> <INPUT οnclick=replace_star() type=button value=" 开始替换 " name=Submit></TD></TR></TBODY></TABLE>
<HR width="100%" color=#000000 SIZE=1>
</TD></TR></TBODY></TABLE>
<SCRIPT>
rtf.document.designMode="On";
</SCRIPT>
</TD></TR></TBODY></TABLE></BODY></html>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>
a.a007:link{ text-decoration:none; color: #FF0000;font-size: 10pt;}
a.a007:visited{ TEXT-DECORATION: none; color: #FF0000;font-size: 10pt;}
a.a007:active{ text-decoration:none; color: #FF0000;font-size: 10pt;}
a.a007:hover{color:#000000;text-decoration:underline;font-size: 10pt;}
a.a006:link{ text-decoration:none; color: #1B4E9A;font-size: 10pt;}
a.a006:visited{ TEXT-DECORATION: none; color: #0064A8;font-size: 10pt;}
a.a006:active{ text-decoration:none; color: #1B4E9A;font-size: 10pt;}
a.a006:hover{color: #FF0000;text-decoration:underline;font-size: 10pt;}
a.a01:link{ text-decoration:none; color: #205AB3;font-size: 9pt;}
a.a01:visited{ TEXT-DECORATION: none; color: #205AB3;font-size: 9pt;}
a.a01:active{ text-decoration:none; color: #205AB3;font-size: 9pt;}
a.a01:hover{color:red;text-decoration:underline;font-size: 9pt;}
a.a02:link{ text-decoration:none; color: #ffffff;font-size: 9pt;}
a.a02:visited{ TEXT-DECORATION: none; color: #ffffbb;font-size: 9pt;}
a.a02:hover{color:#FFFF00;text-decoration:underline;font-size: 9pt;}
a:link{ text-decoration:none; color: #000000;}
a:visited{ TEXT-DECORATION: none; color: #000000;}
a:active{ text-decoration:none; color: #000000;}
a:hover{color:red;text-decoration:underlisne}
.input { BACKGROUND-COLOR: transparent; BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: rgb(0,0,0) 1px solid; BORDER-TOP: rgb(0,0,0) 1px solid; FONT-FAMILY: "Arial"; FONT-SIZE: 11pt; FONT-WEIGHT: normal
}
TD {FONT-SIZE: 9pt}
.text8 {font-size: 8pt;}
.text9 {font-size: 9pt;}
.text10 {font-size: 10pt;}
.text11 {font-size: 11pt;}
.text12 {font-size: 12pt;}
.fire
{
font-size:9pt;
filter:glow( color=#ffcc00,strengh=0);
width:auto;
height:auto;
position:relative;
}
.newfont7 { font-family: "宋体"; font-size: 9pt; filter:dropshadow(color=#ffffcc,offx=1,offy=1);color:#333333}
.comment_text {
font-size: 14px;
line-height: 20px;
letter-spacing: 1px;
}
.style1 {
font-size: 16pt;
color: #006600;
font-weight: bold;
}
textarea {
color: #FF3399;
background-color: #FFFFCC;
}
table {
color: #990066;
background-color: #FF99CC;
}
</STYLE>
<SCRIPT language=JavaScript>
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</SCRIPT>
<SCRIPT language=JavaScript1.2>
function delnull()
{
var str=document.getElementById('text').value;
str=str.replace(/([/s]*/r/n[/s]*){2,}/gm,"/r/n");
document.getElementById('text').value=str;
}
function refix()
{
var str=document.getElementById('text').value;
str=str.replace(/([/s]*/r/n[/s]*){2,}/gm,"/r/n/r/n");
document.getElementById('text').value=str;
}
function url()
{
var str=document.getElementById('text').value;
str=str.replace(/^[ ]*(http:|^mms:|^rtsp:|^pnm:|^ftp:|^mmst:|^mmsu:)([^/r/n]*)$/igm,"[url]$1$2[/url]");
document.getElementById('text').value=str;
}
function addbr()
{
var str=document.getElementById('text').value;
str=str.replace(//r/n/gm,"/r/n/r/n");
document.getElementById('text').value=str;
}
function html_trans(str) {
str = str.replace(//r/g,"");
str = str.replace(/on(load|click|dbclick|mouseover|mousedown|mouseup)="[^"]+"/ig,"");
str = str.replace(/<script[^>]*?>([/w/W]*?)<//script>/ig,"");
if(set.filtrate.checked)
{
str = str.replace(/[^<]*<([^>]*?)>[^<]*/ig,"<$1>");
tm=window.textfield.value;
if(tm.length<1){
var arr;
arr=str.match(/<img[^>]+src=[" ]?([^"]+)[" ]?[^>]*>/ig);
tm=arr[0].replace(/<img[^>]+src=[" ]?([^"]+)[" ]?[^>]*>/ig,"$1")+"/"";
i=tm.search(///[^//]+"/ig);
tm=tm.substr(0,i);
window.textfield.value=tm+"/";
}
if(tm.substr(tm.length-1,1)!="/") tm+="/";
var strtm="<img[^>]+src=[/"]?("+tm+"[^/"]+)[/"]?[^>]*>";
var re = new RegExp(strtm,"ig");
str = str.replace(re,"/n[img]$1[/img]/n");
}
else
{
if(set.stext.checked) str = str.replace(/[^<]*<([^>]*?)>[^<]*/ig,"<$1>");
if(!set.linka.checked) str = str.replace(/<a[^>]+href=[" ]?([^"]+)[" ]?[^>]*>(.*?)<//a>/ig,"/n[url=$1]$2[/url]/n");
if(!set.font_color.checked&&!set.stext.checked)
str = str.replace(/<font([^>]+)color=([^ >]+)([^>]*)>(.*?)<//font>/ig,"/n[color=$2]<font$1$3>$4</font>[/color]/n");
if(!set.font_size.checked&&!set.stext.checked)
str = str.replace(/<font([^>]+)size=([^ >]+)([^>]*)>(.*?)<//font>/ig,"/n[size=$2]<font$1$3>$4</font>[/size]/n");
if(!set.font_face.checked&&!set.stext.checked)
str = str.replace(/<font[^>]+face=([^ >]+)[^>]*>(.*?)<//font>/ig,"/n[font=$1]$2[/font]/n");
if(!set.img.checked) str = str.replace(/<img[^>]+src=[" ]?([^"]+)[" ]?[^>]*>/ig,"/n[img]$1[/img]/n");
if(!set.odj.checked){
//return str;
str = str.replace(/<object[^>]+classid=[" ]?clsid:D27CDB6E-AE6D-11cf-96B8-444553540000[" ]?[^>]*>(.*?)<param[^>]+name=[" ]?movie[" ]?[^>]+value=[" ]?([^"]+)[" ]?[^>]*>/ig,"/n[swf]$2[/swf]/n");
str = str.replace(/<object[^>]+classid=[" ]?clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA[" ]?[^>]*>.*<param[^>]+name="src"[^>]+value="([^"]+)">/ig,"/n[rm]$1[/rm]/n");
}
if(!set.font_b.checked&&!set.stext.checked){
str = str.replace(/<([//]?)b>/ig,"[$1b]");
str = str.replace(/<([//]?)strong>/ig,"[$1b]");}
if(!set.font_u.checked&&!set.stext.checked)
str = str.replace(/<([//]?)u>/ig,"[$1u]");
if(!set.font_i.checked&&!set.stext.checked)
str = str.replace(/<([//]?)i>/ig,"[$1i]");
str = str.replace(/ /g," ");
str = str.replace(/&/g,"&");
str = str.replace(/"/g,"/"");
str = str.replace(/</g,"<");
str = str.replace(/>/g,">");
}
str = str.replace(/<br>/ig,"/n");
str = str.replace(/<p[^>]*?>/ig,"/n/n");
str = str.replace(/<[^>]*?>/g,"");
str = str.replace(//[url=([^/]]+)/]/n(/[img/]/1/[//img/])/n/[//url/]/g,"$2");
str = str.replace(//n+/g,"/n");
return str;
}
function copycode(obj){
obj.select();
objcopy=obj.createTextRange();
objcopy.execCommand("Copy");
}
function trans(){
var str = "";
rtf.focus();
rtf.document.body.innerHTML = "";
rtf.document.execCommand("paste");
str = rtf.document.body.innerHTML;
if(str.length == 0) {
alert("剪贴版不存在超文本数据!");
return "";
}
return html_trans(str);
}
function preview(){
var prewin=window.open("","","");
prewin.document.write(rtf.document.body.innerHTML);
}
function zhen(str)
{
strfound=str.replace(ig,"");
strfound=strfound.replace(//[/ig,"//[");
strfound=strfound.replace(//]/ig,"//]");
strfound=strfound.replace(//{/ig,"//{");
strfound=strfound.replace(//}/ig,"//}");
strfound=strfound.replace(//|/ig,"//|");
strfound=strfound.replace(ig,"///");
strfound=strfound.replace(//^/ig,"//^");
strfound=strfound.replace(//./ig,"//.");
strfound=strfound.replace(//*/ig,"//*");
strfound=strfound.replace(//?/ig,"//?");
strfound=strfound.replace(//+/ig,"//+");
return strfound;
}
function replace_star()
{
var str=document.getElementById('text').value;
if(!reg.checked)
strfound=zhen(find_text.value);
else
strfound=find_text.value;
var re = new RegExp(strfound,"ig");
str=str.replace(re,replace_text.value);
document.getElementById('text').value=str;
}
</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0>
<TABLE width=98% border=1 align=center cellPadding=0 cellSpacing=0 borderColor=#000000 bgcolor="#FF99CC" style="BORDER-COLLAPSE: collapse">
<TBODY>
<TR>
<TD align=middle width="100%">
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 bgcolor="#FF99CC">
<TBODY>
<TR>
<TD align=center bgColor=#FF99CC>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 bgcolor="#FF99CC">
<TBODY>
<TR>
<TD height="38" align=center bgColor=#FF99CC ><h1><span class="style1">丝·图腾 转贴快手</span></h1></TD>
</TR>
<TR>
<TD align=center valign="middle" bgColor=#E5E8EA class="style1"> </TD>
</TR>
</TBODY></TABLE>
<TEXTAREA class=textarea onbeforepaste="if(document.getElementById('x_paste').checked){window.clipboardData.setData('text',trans());this.focus();}" id=text style="WIDTH: 98%; HEIGHT: 300px" cols=100></TEXTAREA> <IFRAME id=rtf style="WIDTH: 0px; HEIGHT: 0px" marginWidth=0 marginHeight=0 src="about:blank" scrolling=no></IFRAME><LABEL for=x_paste></LABEL>
<TABLE width=713 align=center border=0>
<TBODY>
<TR align=middle>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick="document.getElementById('text').value = trans();" type=button value=转换(覆盖) name=button></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick="document.getElementById('text').value += trans();" type=button value=转换(追加) name=button></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick=copycode(window.text) type=button value=复制到剪贴板></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick=preview() type=button value=" 预 览 帖 子 " name=preview></TD>
<TD width="16%"><INPUT style="WIDTH: 100px; HEIGHT: 45px" οnclick="document.getElementById('text').value=''" type=button value="清空框中内容"></TD>
<TD width="20%">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR align=middle>
<TD><INPUT title=自动分析所有超链接,并转换成超链接格式 注意:超链接必须单独在一行中! style="WIDTH: 80px" οnclick=url() type=button value=分析超链接 name=Submit></TD>
<TD><INPUT title=紧凑格式,删除所有空行 style="WIDTH: 80px" οnclick=delnull() type=button value=清除空行 name=Submit></TD></TR>
<TR align=middle>
<TD><INPUT title=清除多余的空行,保持最一个空行 style="WIDTH: 80px" οnclick=refix() type=button value=清除多余行 name=Submit></TD>
<TD><INPUT title=为每一行(包括空行)增加一空行 style="WIDTH: 80px" οnclick=addbr() type=button value=增加空行 name=Submit></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<FORM name=set>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD title=转换的结果中将不含有图片信息 width="13%" height=25><LABEL for=img><INPUT id=img type=checkbox> 屏蔽图片</LABEL></TD>
<TD title=转换的结果中将不含有链接信息 width="14%"><LABEL for=linka><INPUT id=linka type=checkbox> 屏蔽超链接</LABEL></TD>
<TD title=转换的结果中将不含音频、视频、FLASH等信息 width="14%"><LABEL for=odj><INPUT id=odj type=checkbox> 屏蔽对象</LABEL></TD>
<TD title=转换的结果中将不含文本信息,同时字体属性也被自动屏蔽 width="14%"><LABEL for=stext><INPUT id=stext type=checkbox> 屏蔽文字</LABEL></TD>
<TD title=将基本地址以外的图片过滤掉 width="14%"><LABEL for=filtrate><INPUT id=filtrate οnclick="if(this.checked)window.base_url.style.display='block';else window.base_url.style.display='none';" type=checkbox> 启用图片过滤</LABEL></TD>
<TD title=屏蔽所有定字体相关的属性 width="14%"><LABEL for=font><INPUT id=font οnclick=font_color.checked=this.checked;font_size.checked=this.checked;font_face.checked=this.checked;font_b.checked=this.checked;font_i.checked=this.checked;font_u.checked=this.checked; type=checkbox> 屏蔽字体属性</LABEL></TD></TR>
<TR>
<TD title=转换的结果中将不含有字体颜色信息><LABEL for=font_color><INPUT id=font_color type=checkbox> 屏蔽字体颜色</LABEL></TD>
<TD title=转换的结果中将不含有字体尺寸信息><LABEL for=font_size><INPUT id=font_size type=checkbox> 屏蔽字体尺寸</LABEL></TD>
<TD title=转换的结果中将不含有字体类型信息><LABEL for=font_face><INPUT id=font_face type=checkbox> 屏蔽字体类型</LABEL></TD>
<TD title=转换的结果中将不含有粗体信息><LABEL for=font_b><INPUT id=font_b type=checkbox> 屏蔽粗体</LABEL></TD>
<TD title=转换的结果中将不含有斜体信息><LABEL for=font_i><INPUT id=font_i type=checkbox> 屏蔽斜体</LABEL></TD>
<TD title=转换的结果中将不含有下划线信息><LABEL for=font_u><INPUT id=font_u type=checkbox> 屏蔽下划线</LABEL></TD></TR></TBODY></TABLE></FORM>
<TABLE id=base_url style="DISPLAY: none" cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle><B>输入图片的基本地址</B> <INPUT style="BACKGROUND-COLOR: #FFE8DE" size=70 name=textfield> <INPUT οnclick="window.textfield.value=''" type=button value=清空 name=Submit></TD></TR>
<TR>
<TD align=middle><FONT color=#FF1493>如果未指定基本地址,则将自动取第一张图片的位置做基本地址。基本地址是指除文件名外的网络路径,如图片地址为:<FONT color=#0000ff>http://www.lylcz.com/zhiliao/logo/logo1.gif</FONT> ,则除去图片文件名 <FONT color=#0000ff>logo1.gif</FONT> 后基本地址为:<FONT color=#0000ff>http://www.lylcz.com/zhiliao/logo/</FONT></FONT>
<HR width="100%" color=#000000 SIZE=1>
</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD class=text11 align=middle width="91%">查找文字 <INPUT id=find_text size=68 name=find_text> <INPUT οnclick="set.reset();find_text.value='';replace_text.value='';window.textfield.value='';" type=button value=全恢复默认 name=Submit> </TD>
<TD class=text11 align=middle width="9%" rowSpan=2><LABEL for=reg><INPUT id=reg type=checkbox value=1 name=reg> 使用<BR>正则语法</LABEL> </TD></TR>
<TR>
<TD class=text11 align=middle>替换文字 <INPUT id=replace_text size=68 name=replace_text> <INPUT οnclick=replace_star() type=button value=" 开始替换 " name=Submit></TD></TR></TBODY></TABLE>
<HR width="100%" color=#000000 SIZE=1>
</TD></TR></TBODY></TABLE>
<SCRIPT>
rtf.document.designMode="On";
</SCRIPT>
</TD></TR></TBODY></TABLE></BODY></html>