资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
论坛转贴工具中用到的正则表达式学习正则的好例子
电脑教程吧-常用论坛转贴工具
<html> <head> <title>电脑教程吧-常用论坛转贴工具</title> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20language%3D%22JavaScript%22%3E%20%0D%0A%3C!--%20%0D%0A%0D%0Afunction%20SymError()%20%0D%0A%7B%20%0D%0A%20%20return%20true%3B%20%0D%0A%7D%20%0D%0A%0D%0Awindow.onerror%20%3D%20SymError%3B%20%0D%0A%0D%0A%2F%2F--%3E%20%0D%0A%3C%2FSCRIPT%3E"> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3CSCRIPT%20language%3DJavaScript1.2%3E%20%20%0D%0Afunction%20delnull()%20%0D%0A%7B%20%0D%0Avar%20str%3Ddocument.getElementById('text').value%3B%20%0D%0Astr%3Dstr.replace(%2F(%5B%5Cs%5D*%5Cr%5Cn%5B%5Cs%5D*)%7B2%2C%7D%2Fgm%2C%22%5Cr%5Cn%22)%3B%20%0D%0Adocument.getElementById('text').value%3Dstr%3B%20%0D%0A%7D%20%0D%0Afunction%20refix()%20%0D%0A%7B%20%0D%0Avar%20str%3Ddocument.getElementById('text').value%3B%20%0D%0Astr%3Dstr.replace(%2F(%5B%5Cs%5D*%5Cr%5Cn%5B%5Cs%5D*)%7B2%2C%7D%2Fgm%2C%22%5Cr%5Cn%5Cr%5Cn%22)%3B%20%0D%0Adocument.getElementById('text').value%3Dstr%3B%20%0D%0A%7D%20%0D%0Afunction%20url()%20%0D%0A%7B%20%0D%0Avar%20str%3Ddocument.getElementById('text').value%3B%20%0D%0Astr%3Dstr.replace(%2F%5E%5B%20%5D*(http%3A%5C%2F%5C%2F%7C%5Emms%3A%5C%2F%5C%2F%7Crtsp%3A%5C%2F%5C%2F%7Cpnm%3A%5C%2F%5C%2F%7Cftp%3A%5C%2F%5C%2F%7Cmmst%3A%5C%2F%5C%2F%7Cmmsu%3A%5C%2F%5C%2F)(%5B%5E%5Cr%5Cn%5D*)%24%2Figm%2C%22%5Burl%5D%241%242%5B%2Furl%5D%22)%3B%20%0D%0Adocument.getElementById('text').value%3Dstr%3B%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20addbr()%20%0D%0A%7B%20%0D%0Avar%20str%3Ddocument.getElementById('text').value%3B%20%0D%0Astr%3Dstr.replace(%2F%5Cr%5Cn%2Fgm%2C%22%5Cr%5Cn%5Cr%5Cn%22)%3B%20%0D%0Adocument.getElementById('text').value%3Dstr%3B%20%0D%0A%7D%20%0D%0A%0D%0Afunction%20html_trans(str)%20%7B%20%0D%0Astr%20%3D%20str.replace(%2F%5Cr%2Fg%2C%22%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2Fon(load%7Cclick%7Cdbclick%7Cmouseover%7Cmousedown%7Cmouseup)%3D%22%5B%5E%22%5D%2B%22%2Fig%2C%22%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cscript%5B%5E%3E%5D*%3F%3E(%5B%5Cw%5CW%5D*%3F)%3C%5C%2Fscript%3E%2Fig%2C%22%22)%3B%20%0D%0Aif(set.fontbash.checked)%20%0D%0A%7B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cspan%5B%5E%3E%5D*%3Fdisplay%5Cs*%3F%3A%5Cs*%3Fnone%5B%5E%3E%5D*%3F%3E(%5B%5Cw%5CW%5D*%3F)%3C%5C%2Fspan%3E%2Fig%2C%22%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cspan%5B%5E%3E%5D*%3Ffont%5Cs*%3F-%5Cs*%3Fsize%5Cs*%3F%3A%5Cs*(0px%7C0pt)%5B%5E%3E%5D*%3F%3E(%5B%5Cw%5CW%5D*%3F)%3C%5C%2Fspan%3E%2Fig%2C%22%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cfont(%5B%5E%3E%5D%2B)(0px%7C0pt)%2B(%5B%5E%3E%5D*)%3E(%5B%5Cw%5CW%5D*%3F)%3C%5C%2Ffont%3E%2Fig%2C%22%22)%3B%20%0D%0A%7D%20%0D%0A%0D%0Aif(set.filtrate.checked)%20%0D%0A%7B%20%0D%0Astr%20%3D%20str.replace(%2F%5B%5E%3C%5D*%3C(%5B%5E%3E%5D*%3F)%3E%5B%5E%3C%5D*%2Fig%2C%22%3C%241%3E%22)%3B%20%0D%0Atm%3Dwindow.textfield.value%3B%20%0D%0Aif(tm.length%3C1)%7B%20%0D%0Avar%20arr%3B%20%0D%0Aarr%3Dstr.match(%2F%3Cimg%5B%5E%3E%5D%2Bsrc%3D%5B%22%20%5D%3F(%5B%5E%22%5D%2B)%5B%22%20%5D%3F%5B%5E%3E%5D*%3E%2Fig)%3B%20%0D%0Atm%3Darr%5B0%5D.replace(%2F%3Cimg%5B%5E%3E%5D%2Bsrc%3D%5B%22%20%5D%3F(%5B%5E%22%5D%2B)%5B%22%20%5D%3F%5B%5E%3E%5D*%3E%2Fig%2C%22%241%22)%2B%22%5C%22%22%3B%20%0D%0Ai%3Dtm.search(%2F%5C%2F%5B%5E%5C%2F%5D%2B%22%2Fig)%3B%20%0D%0Atm%3Dtm.substr(0%2Ci)%3B%20%0D%0Awindow.textfield.value%3Dtm%2B%22%2F%22%3B%20%0D%0A%7D%20%0D%0Aif(tm.substr(tm.length-1%2C1)!%3D%22%2F%22)%20tm%2B%3D%22%2F%22%3B%20%0D%0Avar%20strtm%3D%22%3Cimg%5B%5E%3E%5D%2Bsrc%3D%5B%5C%22%5D%3F(%22%2Btm%2B%22%5B%5E%5C%22%5D%2B)%5B%5C%22%5D%3F%5B%5E%3E%5D*%3E%22%3B%20%0D%0Avar%20re%20%3D%20new%20RegExp(strtm%2C%22ig%22)%3B%20%0D%0Astr%20%3D%20str.replace(re%2C%22%5Cn%5Bimg%5D%241%5B%2Fimg%5D%5Cn%22)%3B%20%0D%0A%7D%20%0D%0Aelse%20%0D%0A%7B%20%0D%0Aif(set.stext.checked)%20str%20%3D%20str.replace(%2F%5B%5E%3C%5D*%3C(%5B%5E%3E%5D*%3F)%3E%5B%5E%3C%5D*%2Fig%2C%22%3C%241%3E%22)%3B%20%0D%0A%0D%0Aif(!set.linka.checked)%20str%20%3D%20str.replace(%2F%3Ca%5B%5E%3E%5D%2Bhref%3D%5B%22%20%5D%3F(%5B%5E%22%5D%2B)%5B%22%20%5D%3F%5B%5E%3E%5D*%3E(.*%3F)%3C%5C%2Fa%3E%2Fig%2C%22%5Burl%3D%241%5D%242%5B%2Furl%5D%22)%3B%20%0D%0Aif(!set.font_color.checked%26%26!set.stext.checked)%20%0D%0Astr%20%3D%20str.replace(%2F%3Cfont(%5B%5E%3E%5D%2B)color%3D(%5B%5E%20%3E%5D%2B)(%5B%5E%3E%5D*)%3E(.*%3F)%3C%5C%2Ffont%3E%2Fig%2C%22%5Bcolor%3D%242%5D%3Cfont%241%243%3E%244%3C%2Ffont%3E%5B%2Fcolor%5D%22)%3B%20%0D%0Aif(!set.font_size.checked%26%26!set.stext.checked)%20%0D%0Astr%20%3D%20str.replace(%2F%3Cfont(%5B%5E%3E%5D%2B)size%3D(%5B%5E%20%3E%5D%2B)(%5B%5E%3E%5D*)%3E(.*%3F)%3C%5C%2Ffont%3E%2Fig%2C%22%5Bsize%3D%242%5D%3Cfont%241%243%3E%244%3C%2Ffont%3E%5B%2Fsize%5D%22)%3B%20%0D%0Aif(!set.font_face.checked%26%26!set.stext.checked)%20%0D%0Astr%20%3D%20str.replace(%2F%3Cfont%5B%5E%3E%5D%2Bface%3D(%5B%5E%20%3E%5D%2B)%5B%5E%3E%5D*%3E(.*%3F)%3C%5C%2Ffont%3E%2Fig%2C%22%5Bfont%3D%241%5D%242%5B%2Ffont%5D%22)%3B%20%0D%0Aif(!set.img.checked)%20str%20%3D%20str.replace(%2F%3Cimg%5B%5E%3E%5D%2Bsrc%3D%5B%22%20%5D%3F(%5B%5E%22%5D%2B)%5B%22%20%5D%3F%5B%5E%3E%5D*%3E%2Fig%2C%22%5Cn%5Bimg%5D%241%5B%2Fimg%5D%5Cn%22)%3B%20%0D%0A%0D%0Aif(!set.odj.checked)%7B%20%0D%0A%2F%2Freturn%20str%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cobject%5B%5E%3E%5D*%3F6BF52A52%5C-394A%5C-11d3%5C-B153%5C-00C04F79FAA6%5B%5E%3E%5D*%3F%3E.*%3Cparam%5B%5E%3E%5D%2Bname%5Cs*%3D%5Cs*%5B%22%5D(url%7Csrc)%5B%22%5D%5B%5E%3E%5D%2Bvalue%3D%5B%22%20%5D%3F(%5B%5E%22%5D%2B)%5B%22%20%5D%5B%5E%3E%5D*%3E.*%3C%5C%2Fobject%3E%2Fig%2C%22%5Cn%3Cdiv%20class%3D%22UBBPanel%22%3E%3Cdiv%20class%3D%22UBBTitle%22%3E%3Cimg%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fmediaplayer.gif%22%20alt%3D%22%22%20style%3D%22margin%3A0px%202px%20-3px%200px%22%20border%3D%220%22%2F%3E%E6%92%AD%E6%94%BE%E8%A7%86%E9%A2%91%E6%96%87%E4%BB%B6%3C%2Fdiv%3E%3Cdiv%20class%3D%22UBBContent%22%3E%3Ca%20id%3D%22meiti10668_href%22%20href%3D%22javascript%3AMediaShow('wmv'%2C'meiti10668'%2C'%242'%2C'500'%2C'300')%22%3E%3Cimg%20name%3D%22meiti10668_img%22%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fmm_snd.gif%22%20style%3D%22margin%3A0px%203px%20-2px%200px%22%20border%3D%220%22%20alt%3D%22%22%2F%3E%3Cspan%20id%3D%22meiti10668_text%22%3E%E5%9C%A8%E7%BA%BF%E6%92%AD%E6%94%BE%3C%2Fspan%3E%3C%2Fa%3E%3Cdiv%20id%3D%22meiti10668%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%5Cn%22)%3B%20%20%0D%0Astr%20%3D%20str.replace(%2F%3Cobject%5B%5E%3E%5D*%3FD27CDB6E%5C-AE6D%5C-11cf%5C-96B8%5C-444553540000%5B%5E%3E%5D*%3F%3E.*%3Cparam%5B%5E%3E%5D%2Bname%5Cs*%3D%5Cs*%5B%22%5D(url%7Csrc)%5B%22%5D%5B%5E%3E%5D%2Bvalue%3D%5B%22%20%5D%3F(%5B%5E%22%5D%2B)%5B%22%20%5D%5B%5E%3E%5D*%3E.*%3C%5C%2Fobject%3E%2Fig%2C%22%5Cn%3Cdiv%20class%3D%22UBBPanel%22%3E%3Cdiv%20class%3D%22UBBTitle%22%3E%3Cimg%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fflash.gif%22%20alt%3D%22%22%20style%3D%22margin%3A0px%202px%20-3px%200px%22%20border%3D%220%22%2F%3EFlash%E5%8A%A8%E7%94%BB%3C%2Fdiv%3E%3Cdiv%20class%3D%22UBBContent%22%3E%3Ca%20id%3D%22meiti88641_href%22%20href%3D%22javascript%3AMediaShow('swf'%2C'meiti88641'%2C'%242'%2C'500'%2C'300')%22%3E%3Cimg%20name%3D%22meiti88641_img%22%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fmm_snd.gif%22%20style%3D%22margin%3A0px%203px%20-2px%200px%22%20border%3D%220%22%20alt%3D%22%22%2F%3E%3Cspan%20id%3D%22meiti88641_text%22%3E%E5%9C%A8%E7%BA%BF%E6%92%AD%E6%94%BE%3C%2Fspan%3E%3C%2Fa%3E%3Cdiv%20id%3D%22meiti88641%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%5Cn%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cembed%5B%5E%3E%5D*type%3D%5B%22%5D%3Fapplication%5C%2Fx%5C-shockwave%5C-flash%5B%22%5D%3F%5B%5E%3E%5D*src%3D%5B%22%20%5D%3F(%5B%5E%22%7C%5E%20%5D%2B)%5B%22%20%5D%3F%5B%5E%3E%5D*%3E%2Fig%2C%22%5Cn%3Cdiv%20class%3D%22UBBPanel%22%3E%3Cdiv%20class%3D%22UBBTitle%22%3E%3Cimg%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fflash.gif%22%20alt%3D%22%22%20style%3D%22margin%3A0px%202px%20-3px%200px%22%20border%3D%220%22%2F%3EFlash%E5%8A%A8%E7%94%BB%3C%2Fdiv%3E%3Cdiv%20class%3D%22UBBContent%22%3E%3Ca%20id%3D%22meiti28162_href%22%20href%3D%22javascript%3AMediaShow('swf'%2C'meiti28162'%2C'%241'%2C'500'%2C'300')%22%3E%3Cimg%20name%3D%22meiti28162_img%22%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fmm_snd.gif%22%20style%3D%22margin%3A0px%203px%20-2px%200px%22%20border%3D%220%22%20alt%3D%22%22%2F%3E%3Cspan%20id%3D%22meiti28162_text%22%3E%E5%9C%A8%E7%BA%BF%E6%92%AD%E6%94%BE%3C%2Fspan%3E%3C%2Fa%3E%3Cdiv%20id%3D%22meiti28162%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%5Cn%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cembed%5B%5E%3E%5D*src%3D%5B%22%5D%3F(%5B%5E%22%7C%5E%20%5D%2B)%5B%22%5D%3F%5B%5E%3E%5D*type%3D%5B%22%5D%3Fapplication%5C%2Fx%5C-shockwave%5C-flash%5B%22%5D%3F%5B%5E%3E%5D*%3E%2Fig%2C%22%5Cn%3Cdiv%20class%3D%22UBBPanel%22%3E%3Cdiv%20class%3D%22UBBTitle%22%3E%3Cimg%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fflash.gif%22%20alt%3D%22%22%20style%3D%22margin%3A0px%202px%20-3px%200px%22%20border%3D%220%22%2F%3EFlash%E5%8A%A8%E7%94%BB%3C%2Fdiv%3E%3Cdiv%20class%3D%22UBBContent%22%3E%3Ca%20id%3D%22meiti28162_href%22%20href%3D%22javascript%3AMediaShow('swf'%2C'meiti28162'%2C'%241'%2C'500'%2C'300')%22%3E%3Cimg%20name%3D%22meiti28162_img%22%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fmm_snd.gif%22%20style%3D%22margin%3A0px%203px%20-2px%200px%22%20border%3D%220%22%20alt%3D%22%22%2F%3E%3Cspan%20id%3D%22meiti28162_text%22%3E%E5%9C%A8%E7%BA%BF%E6%92%AD%E6%94%BE%3C%2Fspan%3E%3C%2Fa%3E%3Cdiv%20id%3D%22meiti28162%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%5Cn%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cobject%5B%5E%3E%5D*%3FCFCDAA03%5C-8BE4%5C-11cf%5C-B84B%5C-0020AFBBCCFA%5B%5E%3E%5D*%3F%3E.*%3Cparam%5B%5E%3E%5D%2Bname%5Cs*%3D%5Cs*%5B%22%5D(url%7Csrc)%5B%22%5D%5B%5E%3E%5D%2Bvalue%3D%5B%22%20%5D%3F(%5B%5E%22%5D%2B)%5B%22%20%5D%5B%5E%3E%5D*%3E.*%3C%5C%2Fobject%3E%2Fig%2C%22%5Cn%3Cdiv%20class%3D%22UBBPanel%22%3E%3Cdiv%20class%3D%22UBBTitle%22%3E%3Cimg%20src%3D%22%2Fskin%2Fblue%2Fimages%2Frealplayer.gif%22%20alt%3D%22%22%20style%3D%22margin%3A0px%202px%20-3px%200px%22%20border%3D%220%22%2F%3E%E6%92%AD%E6%94%BEreal%E8%A7%86%E9%A2%91%E6%B5%81%E6%96%87%E4%BB%B6%3C%2Fdiv%3E%3Cdiv%20class%3D%22UBBContent%22%3E%3Ca%20id%3D%22meiti91846_href%22%20href%3D%22javascript%3AMediaShow('rm'%2C'meiti91846'%2C'%242'%2C'500'%2C'300')%22%3E%3Cimg%20name%3D%22meiti91846_img%22%20src%3D%22%2Fskin%2Fblue%2Fimages%2Fmm_snd.gif%22%20style%3D%22margin%3A0px%203px%20-2px%200px%22%20border%3D%220%22%20alt%3D%22%22%2F%3E%3Cspan%20id%3D%22meiti91846_text%22%3E%E5%9C%A8%E7%BA%BF%E6%92%AD%E6%94%BE%3C%2Fspan%3E%3C%2Fa%3E%3Cdiv%20id%3D%22meiti91846%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%5Cn%22)%3B%20%20%0D%0A%7D%20%0D%0Aif(!set.font_b.checked%26%26!set.stext.checked)%7B%20%0D%0Astr%20%3D%20str.replace(%2F%3C(%5B%5C%2F%5D%3F)b%3E%2Fig%2C%22%5B%241b%5D%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3C(%5B%5C%2F%5D%3F)strong%3E%2Fig%2C%22%5B%241b%5D%22)%3B%7D%20%0D%0Aif(!set.font_u.checked%26%26!set.stext.checked)%20%0D%0Astr%20%3D%20str.replace(%2F%3C(%5B%5C%2F%5D%3F)u%3E%2Fig%2C%22%5B%241u%5D%22)%3B%20%0D%0Aif(!set.font_i.checked%26%26!set.stext.checked)%20%0D%0Astr%20%3D%20str.replace(%2F%3C(%5B%5C%2F%5D%3F)i%3E%2Fig%2C%22%5B%241i%5D%22)%3B%20%0D%0A%0D%0Astr%20%3D%20str.replace(%2F%26nbsp%3B%2Fg%2C%22%20%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%26amp%3B%2Fg%2C%22%26%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%26quot%3B%2Fg%2C%22%5C%22%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%26lt%3B%2Fg%2C%22%3C%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%26gt%3B%2Fg%2C%22%3E%22)%3B%20%0D%0A%7D%20%0D%0Astr%20%3D%20str.replace(%2F%0D%0A%2Fig%2C%22%5Cn%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3Cp%5B%5E%3E%5D*%3F%3E%2Fig%2C%22%5Cn%5Cn%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%3C%5B%5E%3E%5D*%3F%3E%2Fg%2C%22%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%5C%5Burl%3D(%5B%5E%5C%5D%5D%2B)%5C%5D%5Cn(%5C%5Bimg%5C%5D%5C1%5C%5B%5C%2Fimg%5C%5D)%5Cn%5C%5B%5C%2Furl%5C%5D%2Fg%2C%22%242%22)%3B%20%0D%0Astr%20%3D%20str.replace(%2F%5Cn%2B%2Fg%2C%22%5Cn%22)%3B%20%0D%0A%0D%0Areturn%20str%3B%20%0D%0A%7D%20%0D%0Afunction%20copycode(obj)%7B%20%0D%0Aobj.select()%3B%20%0D%0Aobjcopy%3Dobj.createTextRange()%3B%20%0D%0Aobjcopy.execCommand(%22Copy%22)%3B%20%0D%0A%7D%20%0D%0Afunction%20trans()%7B%20%0D%0Avar%20str%20%3D%20%22%22%3B%20%0D%0Artf.focus()%3B%20%0D%0Artf.document.body.innerHTML%20%3D%20%22%22%3B%20%0D%0Artf.document.execCommand(%22paste%22)%3B%20%0D%0Astr%20%3D%20rtf.document.body.innerHTML%3B%20%0D%0Aif(str.length%20%3D%3D%200)%20%7B%20%0D%0Aalert(%22%E5%89%AA%E8%B4%B4%E7%89%88%E4%B8%8D%E5%AD%98%E5%9C%A8%E8%B6%85%E6%96%87%E6%9C%AC%E6%95%B0%E6%8D%AE%EF%BC%81%22)%3B%20%0D%0Areturn%20%22%22%3B%20%0D%0A%7D%20%0D%0Areturn%20html_trans(str)%3B%20%0D%0A%7D%20%0D%0Afunction%20preview()%7B%20%0D%0Avar%20prewin%3Dwindow.open(%22%22%2C%22%22%2C%22%22)%3B%20%0D%0Aprewin.document.write(rtf.document.body.innerHTML)%3B%20%0D%0A%7D%20%0D%0Afunction%20zhen(str)%20%0D%0A%7B%20%0D%0Astrfound%3Dstr.replace(%2F%5C%5C%2Fig%2C%22%5C%5C%5C%5C%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%5B%2Fig%2C%22%5C%5C%5B%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%5D%2Fig%2C%22%5C%5C%5D%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%7B%2Fig%2C%22%5C%5C%7B%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%7D%2Fig%2C%22%5C%5C%7D%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%7C%2Fig%2C%22%5C%5C%7C%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%2F%2Fig%2C%22%5C%5C%2F%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%5E%2Fig%2C%22%5C%5C%5E%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C.%2Fig%2C%22%5C%5C.%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C*%2Fig%2C%22%5C%5C*%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%3F%2Fig%2C%22%5C%5C%3F%22)%3B%20%0D%0Astrfound%3Dstrfound.replace(%2F%5C%2B%2Fig%2C%22%5C%5C%2B%22)%3B%20%0D%0Areturn%20strfound%3B%20%0D%0A%7D%20%0D%0Afunction%20replace_star()%20%0D%0A%7B%20%0D%0Avar%20str%3Ddocument.getElementById('text').value%3B%20%0D%0Aif(!reg.checked)%20%0D%0Astrfound%3Dzhen(find_text.value)%3B%20%0D%0Aelse%20%0D%0Astrfound%3Dfind_text.value%3B%20%0D%0Avar%20re%20%3D%20new%20RegExp(strfound%2C%22ig%22)%3B%20%0D%0Astr%3Dstr.replace(re%2Creplace_text.value)%3B%20%0D%0Adocument.getElementById('text').value%3Dstr%3B%20%0D%0A%7D%20%0D%0A%3C%2FSCRIPT%3E"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> TABLE { FONT-SIZE: 14px } .style2 {font-weight: bold} .style24 {font-weight: bold} .style25 { color: #0000FF; font-weight: bold; font-family: "隶书"; font-size: x-large; } </style> <meta content="Microsoft FrontPage 4.0" name="GENERATOR"></head> <body leftmargin="0" topmargin="0" bgcolor="#ffffff"> <img width='1' height='1' src='http://www.pcjc8.com' _ewebeditor_ta_src="http%3A%2F%2Fwww.pcjc8.com"> <table style="border-collapse: collapse;" align="center" border="1" bordercolor="#CC0005" cellpadding="0" cellspacing="0" width="759"> <tbody> <tr> <td align="center" width="100%"> <table border="0" cellpadding="0" cellspacing="0" width="99%"> <tbody> <tr> <td align="center" bgcolor="#f8f8f8" class="style2"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="center" class="fire"><p align="left" style="line-height: 20px;"><strong> <p align="left" style="line-height: 20px;"><table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" style="table-layout: fixed"> <tr> <td class="nav" width="90%" nowrap> <a href="http://www.pcjc8.com" _ewebeditor_ta_href="http%3A%2F%2Fwww.pcjc8.com">电脑教程吧</a> » 转贴工具</td> </tr> </table> <p align="center" class="style25" style="line-height: 20px;"><font color="#DA2400">电脑教程吧论坛转贴工具</font></p> <hr color="#ffffff" size="1" width="98%"> </strong> </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" rows="1"></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 align="center" border="0" width="713"> <tbody> <tr align="center"> <td width="25%"><input style="width: 150px; height: 50px;" onclick="document.getElementById('text').value += trans();" value="转换剪切板数据" name="button" type="button"></td> <td width="25%"> <p align="center"><input style="width: 150px; height: 50px;" onclick="copycode(window.text)" value="将代码复制到剪切板" type="button"> </p></td> <td width="25%"><input style="width: 150px; height: 50px;" onclick="document.getElementById('text').value=''" value="清 空 内 容" type="button"></td> <td width="25%"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr align="center"> <td><input title="自动分析所有超链接,并转换成超链接格式 注意:超链接必须单独在一行中!" style="width: 80px;" onclick="url()" value="分析超链接" name="Submit" type="button"></td> <td><input title="紧凑格式,删除所有空行" style="width: 80px;" onclick="delnull()" value="清除空行" name="Submit" type="button"></td></tr> <tr align="center"> <td><input title="清除多余的空行,保持最一个空行" style="width: 80px;" onclick="refix()" value="清除多余" name="Submit" type="button"></td> <td><input title="为每一行(包括空行)增加一空行" style="width: 80px;" onclick="addbr()" value="增加空行" name="Submit" type="button"></td></tr></tbody></table></td></tr></tbody></table> <form name="set"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td title="转换的结果中将不含有图片信息" height="25" width="13%"><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" onclick="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" onclick="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><SPAN class=STYLE2><LABEL><INPUT id=fontbash type=checkbox CHECKED value=checkbox> <SPAN class=STYLE1>屏蔽干扰码</SPAN></LABEL></tr></tbody></table></form> <table id="base_url" style="display: none;" border="0" cellpadding="2" cellspacing="0" width="100%"> <tbody> <tr> <td align="center">输入图片的基本地址 <input style="background-color: rgb(255, 223, 208);" size="70" name="textfield"> <input onclick="window.textfield.value=''" value="清空" name="Submit" type="button"></td></tr> <tr> <td align="center"><font color="#006600">如果未指基本地址,则将自动取第一张图片的位置做基本地址。基本地址是指除文件名外的网络路径,如图片地址为:<font color="#0000ff">http://www.pcjc8.com/img/logo.gif</font> ,则除去图片文件名 <font color="#0000ff">logo.jpg</font> 后基本地址为:<font color="#0000ff">http://www.pcjc8.com/img/</font></font> <hr color="#000000" size="1" width="100%"> </td></tr></tbody></table> <table border="0" cellpadding="2" cellspacing="0" width="100%"> <tbody> <tr> <td class="text11" align="center" width="83%">查找文字 <input id="find_text" size="60" name="find_text"> <input onclick="set.reset();find_text.value='';replace_text.value='';window.textfield.value='';" value="全恢复默认" name="Submit" type="button"> </td> <td class="text11" rowspan="2" align="center" width="17%"><label for="reg"><input id="reg" value="1" name="reg" type="checkbox"> 使用正则语法</label> </td></tr> <tr> <td class="text11" align="center">替换文字 <input id="replace_text" size="60" name="replace_text"> <input onclick="replace_star()" value=" 开始替换 " name="Submit" type="button"></td></tr></tbody></table> <hr color="#A3C861" size="1" width="100%"> <p><font color="#FF0000">转贴工具使用说明</font></p> <p><font color="#0000FF"><span style="font-weight: 400"> 1,选中你想要转贴的内容,按 Ctrl + C 将其复制</span></font></p> <p><font color="#0000FF"><span style="font-weight: 400"> 2,回到这个页面,直接点"转换剪切板数据"按钮</span></font></p> <p><font color="#0000FF"><span style="font-weight: 400"> 3,代码转化好了,点"将代码复制到剪切板"按钮</span></font></p> <p><font color="#0000FF"><span style="font-weight: 400">4,回到论坛发帖页面,按 Ctrl + V将代码粘贴进去</span></font></p> <p><font color="#0000FF"><span style="font-weight: 400"> 5,将你要发的帖子再编辑一下,就可以顺利发帖了</span></font><p><font color="#060000"> <span style="font-weight: 400"> 本转帖工具对于其他论坛同样有帮助,如果你觉得这个工具很有帮助,可以将本页添加到收藏页。</span></font><p> <font color="#DA2400">电脑教程吧论坛欢迎你光临:</font><font color="#240000"><a href="http://www.pcjc8.com" _ewebeditor_ta_href="http%3A%2F%2Fwww.pcjc8.com" target=_blank><font color="#800000" size="4">http://www.pcjc8.com</font></a></font><font color="#800000"> </font><font color="#DA2400">电脑教程吧论坛</font><p> </td></tr></tbody></table> <strong> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%3E%20%0D%0Artf.document.designMode%3D%22On%22%3B%20%0D%0A%20%20%20%20%20%20%3C%2Fscript%3E"> </strong> <div align="left" class="style24"> <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="1" height="20" width="777"> </table> </div></td> </tr> </tbody></table> </body></html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程