移动查询用户信息查询:DLLC1234转帖工具

来源:百度文库 编辑:偶看新闻 时间:2024/04/30 01:25:40
html{ overflow: auto;}body { line-height: 150%; margin: 0; font-size: 75%; font-family: 微软雅黑, Tahoma, Arial, Helvetica, Sans-Serif; min-width: 770px; text-align: center; background: #f8f8f8; border-bottom: 1px solid #000000; padding-bottom: 5px;}form { display: inline; margin: 0; padding: 0;}input.text { background-color: #FEFEFE; border: 1px solid #666666;}.left { float:left;}.right { float:right;}.clear { clear: both; height: 0; overflow: hidden;}.caption { background: #0058B0; color: white; font-size: 105%;}.editor { width: 98%; margin: 0 auto;}.switcher { position: relative; top: 2px; width: 98%;}.switcher .right{ font-size: 100%; padding-top: 6px;}.switcher textarea { word-wrap: break-word; word-break: break-all;}.switcher button { float: left; font-size: 110%; font-weight: bold; margin: 0 5px 1px 5px; height: 38px; width: 160px; line-height: 38px; text-align: center; color: #000000; border: #000000 1px solid; padding: 0;}.switcher .normal { background-color: #F0F0F0;}.switcher .current { border-bottom: #ffffff 1px solid; background-color: #ffffff;}#config_tip { padding: 0 5px;}#words { margin: 0 5px 0 0;}.textarea { width: 100%; height: 300px; background: #FFFFFF; border: 1px solid #000000; clear: both; margin: 0;}#HTML_Editor,#Visual_Editor { display: none;}#Visual_Editor { margin-top: 1px;}#rtf { width: 0; height: 0;}.btns { width: 760px; margin: 0 auto; padding-top: 10px; clear: both;}.btn1 input { width: 106px; font-size: 105%; height: 50px; line-height: 48px;}#advTool { display: none;}.btn2 input { font-size: 100%; height: 24px; line-height: 22px; width: 80px;}#pic_filter { visibility: hidden;}.filter { font-size: 105%; text-align: left; clear: both; width: 98%; margin: 0 auto; padding-top: 10px;}#base_url { border-bottom: 1px solid black; display: none; padding: 10px 0 5px 0; font-size: 100%;}#base_url .info { font-weight: bold;}#base_url input { font-size: 100%;}#base_url #textfield { background-color: #F5EFF7; border: #666666 1px solid; width: 480px;}#base_url .othInfo { color: #CC3300;}.search { width: 750px; margin: 0 auto; padding-top: 10px; font-size: 100%;}.search .right { width: 120px;}.btn3 { height: 22px; font-size: 100%; width: 80px;}.search .text { width: 400px;}/ig, "").replace(/]*?>([\w\W]*?)<\ tyle="">/ig, "").replace(/]*?>([\w\W]*?)<\/noscript>/ig, "").replace(/]*?>([\w\W]*?)<\/select>/ig, ""); if($('set').fontbash.checked){ str = str.replace(/]*?display\s*?:\s*?none[^>]*?>([\w\W]*?)<\/span>/ig, ""); str = str.replace(/]*?font\s*?-\s*?size\s*?:\s*(0px|0pt)[^>]*?>([\w\W]*?)<\/span>/ig, ""); str = str.replace(/]+)(0px|0pt)+([^>]*)>([\w\W]*?)<\/font>/ig, ""); } if($('set').filtrate.checked){ tm=$('textfield').value; var arr = str.match(/]+src=[" ]?([^"]+)[" ]?[^>]*>/ig); var i; if(tm.length<1){ if(arr != null){ tm = arr[0].replace(/]+src=[" ]?([^"]+)[" ]?[^>]*>/ig,"$1")+"\""; i = tm.search(/\/[^\/]+"/ig); tm = tm.substr(0, i) + "/"; $('textfield').value=tm; } } if(tm){ var n = arr.length, strtm, j, k; for(i=0; i)[^<]+(<|$)/ig,"$1$2"); str = str.replace(/<(font|strong|b|u|i)(?= |>)[^>]*>\s*<\/\1>/ig, ""); if($('set').linka.checked) str = str.replace(/]+href=[" ]?([^"]+)[" ]?[^>]*>([\s\S]*?)<\/a>/ig, "
$2
"); if($('set').font_all.checked){ str = str.replace(/]>([\s\S]*?)<\/font>/ig, "$1"); } else { if($('set').font_color.checked) str = str.replace(/]+)color=([^ >]+)([^>]*)>([\s\S]*?)<\/font>/ig, "$4"); if($('set').font_size.checked) str = str.replace(/]+)size=([^ >]+)([^>]*)>([\s\S]*?)<\/font>/ig, "$4"); if($('set').font_face.checked) str = str.replace(/]+face=([^ >]+)[^>]*>([\s\S]*?)<\/font>/ig,"$2"); } if($('set').font_b.checked){ str = str.replace(/]*?>|<\/strong>/ig,""); str = str.replace(/]*?>|<\/b>/ig,""); } if($('set').font_u.checked) str = str.replace(/]*?>|<\/u>/ig,""); if($('set').font_i.checked) str = str.replace(/]*?>|<\/i>/ig,""); if($('set').img.checked) str = str.replace(/]+src=[" ]?([^"]+)[" ]?[^>]*>/ig, ""); if($('set').objs.checked) str = str.replace(/<><\ object="">/ig, ""); return str; } function html2ubb(str){ str = str.replace(/\r/g, ""); str = str.replace(/]+href=[" ]?mailto:([^"]+)[" ]?[^>]*>([\s\S]*?)<\/a>/ig,"[email=$1]$2[/email]"); str = str.replace(/]+href=[" ]?([^"]+)[" ]?[^>]*>([\s\S]*?)<\/a>/ig,"[url=$1]$2[/url]"); str = str.replace(/]+)color=([^ >]+)([^>]*)>([\s\S]*?)<\/font>/ig,"[color=$2]$4[/color]"); str = str.replace(/]+)size=([^ >]+)([^>]*)>([\s\S]*?)<\/font>/ig,"[size=$2]$4[/size]"); str = str.replace(/]+face=([^ >]+)[^>]*>([\s\S]*?)<\/font>/ig,"[font=$1]$2[/font]"); str = str.replace(/]*?>([\s\S]*?)<\/strong>/ig, "[b]$1[/b]"); str = str.replace(/)[^>]*?>([\s\S]*?)<\/b>/ig, "[b]$1[/b]"); str = str.replace(/)[^>]*?>([\s\S]*?)<\/u>/ig,"[u]$1[/u]"); str = str.replace(/)[^>]*?>([\s\S]*?)<\/i>/ig,"[i]$1[/i]"); str = str.replace(/]*?align=[" ]?center[^>]*?>([\s\S]*?)<\/p>/ig, '[align=center]$1[/align]'); str = str.replace(/]*?>([\s\S]*?)<\/center>/ig, '[align=center]$1[/align]'); str = str.replace(/]+src=[" ]?([^"]+)[" ]?[^>]*>/ig,"[img]$1[/img]"); str = str.replace(/]+(?:D27CDB6E-AE6D-11cf-96B8-444553540000|application\/x-shockwave-flash|macromedia.com.*?shockwave)[^>]*>([\s\S]*?)]+name=[" ]?movie[" ]?[^>]+value=[" ]?([^"]+)[" ]?[^>]*>/ig,"[flash]$2[/flash]"); str = str.replace(/]+classid=[" ]?clsid:(?:6bf52a52-394a-11d3-b153-00c04f79faa6|22d6f312-b0f6-11d0-94ab-0080c74c7e95|CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA)[" ]?[^>]*>[\s\S]*]+name="src"[^>]+value="([^"]+)">/ig,"[media]$1[/media]"); str = str.replace(/ /g," ").replace(/&/g,"&").replace(/"/g,"\"").replace(//g,">"); str = str.replace(/\n/ig,""); str = str.replace(/]*?>/ig, "\n"); str = str.replace(/]*?>/ig, "\n\n"); str = str.replace(/<(?:tr|th|div|table|center|hr|d[dlt]|form|ol|ul|li|CAPTION|textarea|DIR)(?= |>)[^>]*?>/ig, "\n") str = str.replace(/<\/(?:tr|th|div|table|center|dl|form|ol|ul|CAPTION|textarea|DIR)(?= |>)[^>]*?>/ig, "\n") str = str.replace(/<[^>]*?>/g,""); //str = str.replace(/\[url=([^\]]+)\](\[img\]\1\[\/img\])\[\/url\]/ig,"$2"); return str; } function ubb2html(str){ str = str.replace(/\[url\]\s*(www.|https?:\/\/|ftp:\/\/|gopher:\/\/|news:\/\/|telnet:\/\/|rtsp:\/\/|mms:\/\/|callto:\/\/|bctp:\/\/|ed2k:\/\/){1}([^\[\"']+?)\s*\[\/url\]/ig, function($1, $2, $3) {return cuturl($2 + $3);}); str = str.replace(/\[url=['"]?www.([^\[\"']+?)['"]?\](.*?)\[\/url\]/ig, '$2'); str = str.replace(/\[url=['"]?([^\[\"']+?)['"]?\]([\s\S]*?)\[\/url\]/ig, '$2'); str = str.replace(/\[email\](.*?)\[\/email\]/ig, '$1'); str = str.replace(/\[email=['"]?([^\[\"']*)['"]?\](.*?)\[\/email\]/ig, '$2'); str = str.replace(/\[color=['"]?([^\[\<\"']+?)['"]?\]([\s\S]*?)\[\/color\]/ig, '$2'); str = str.replace(/\[size=['"]?(\d+?)['"]?\]([\s\S]*?)\[\/size\]/ig, '$2'); str = str.replace(/\[size=['"]?(\d+(?:\.\d+)?(?:px|pt|in|cm|mm|pc|em|ex|%)+?)['"]?\]([\s\S]*?)\[\/size\]/ig, '$2'); str = str.replace(/\[font=['"]?([^\[\<\"']+?)['"]?\]([\s\S]*?)\[\/font\]/ig, '$2'); str = str.replace(/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, ''); str = str.replace(/\[b\]([\s\S]*?)\[\/b\]/ig, "$1").replace(/\[u\]([\s\S]*?)\[\/u\]/ig, "$1").replace(/\[i\]([\s\S]*?)\[\/i\]/ig, "$1"); str = str.replace(/\[align=center\]([\s\S]*?)\[\/align\]/ig, '
$1
'); str = str.replace(/\n/ig, "\n
"); return (str); } function cuturl(url){ var length = 65; var urllink = ''; if(url.length > length) { url = url.substr(0, parseInt(length * 0.5)) + ' ... ' + url.substr(url.length - parseInt(length * 0.3)); } urllink += url + ''; return urllink; } function switch_Edt(m){ if(m == Editor_Mode) return; var ubb='', html='', obj; if(Editor_Mode == 0){ ubb = $('UBB_Editor').value; $('UBB_Editor').style.display = "none"; $('UBB_btn').className = "normal"; }else if(Editor_Mode == 1){ html = $('HTML_Editor').value; $('HTML_Editor').style.display = "none"; $('HTML_btn').className = "normal"; }else{ html = $('Visual_Editor').contentWindow.document.body.innerHTML; $('Visual_Editor').style.display = "none"; $('Visual_btn').className = "normal"; } if(m == 0){ if(ubb=='') ubb = html2ubb(html); $('UBB_Editor').style.display = "block"; $('UBB_btn').className = "current"; obj = $('UBB_Editor'); obj.value = ubb; $('dupBtn').style.display = "inline"; $('enB64').style.visibility = "visible"; $('deB64').style.visibility = "visible"; $('pic_filter').style.visibility = "hidden"; }else if(m == 1){ if(html=='') html = ubb2html(ubb); else html = html.replace(/]*?>/ig, "\n
"); $('HTML_Editor').style.display = "block"; $('HTML_btn').className = "current"; obj = $('HTML_Editor'); obj.value = html; $('dupBtn').style.display = "none"; $('enB64').style.visibility = "hidden"; $('deB64').style.visibility = "hidden"; $('pic_filter').style.visibility = "hidden"; }else{ if(html=='') html = ubb2html(ubb); $('Visual_Editor').style.display = "block"; $('Visual_btn').className = "current"; obj = $('Visual_Editor').contentWindow.document.body; obj.innerHTML = html; $('dupBtn').style.display = "none"; $('enB64').style.visibility = "hidden"; $('deB64').style.visibility = "hidden"; $('pic_filter').style.visibility = "visible"; } Editor_Mode = m; focusAtEnd(obj); sum_word(); } function focusAtEnd(obj){ obj.focus(); if(Editor_Mode==2){ var sel = obj.ownerDocument.selection.createRange(); var str = obj.innerHTML; }else{ var sel = obj.createTextRange(); var str = obj.value; } var len = (str.indexOf('\n') != -1) ? str.replace(/\r?\n/g, '_').length : str.length; sel.moveStart('character', len); sel.collapse(); sel.select(); } function copycode(){ var obj; if(Editor_Mode==2){ obj = $('Visual_Editor').contentWindow.document.body; }else{ obj = (Editor_Mode==0) ? 'UBB_Editor' : 'HTML_Editor'; obj = $(obj); obj.select(); } obj.createTextRange().execCommand("Copy") } function transData(){ var str = ""; $('rtf').contentWindow.focus(); $('rtf').contentWindow.document.body.innerHTML = ''; $('rtf').contentWindow.document.execCommand("paste"); str = $('rtf').contentWindow.document.body.innerHTML; if(str.length == 0) { alert("剪贴板不存在超文本数据!"); return ""; } str = (Editor_Mode==0) ? html2ubb(filter_html(str)) : filter_html(str); return str; } function trans(){ if(Editor_Mode==0){ $('UBB_Editor').value = transData(); }else if(Editor_Mode==1){ $('HTML_Editor').value = transData(); }else{ $('Visual_Editor').contentWindow.document.body.innerHTML = transData(); } sum_word(); } function trans2(){ if(Editor_Mode==0){ $('UBB_Editor').value += "\r\n\r\n" + transData(); }else if(Editor_Mode==1){ $('HTML_Editor').value += "\r\n
\r\n
" + transData(); }else{ $('Visual_Editor').contentWindow.document.body.innerHTML += "

" + transData(); } sum_word(); } function preview(){ var html; if(Editor_Mode == 0){ html = ubb2html($("UBB_Editor").value); }else if(Editor_Mode == 1){ html = $("HTML_Editor").value; }else{ html = $("Visual_Editor").contentWindow.document.body.innerHTML; } var nWin = window.open("", "_blank"); nWin.document.write(html); nWin.document.close(); } function clearEdt(){ if(Editor_Mode == 0){ $("UBB_Editor").value = ""; }else if(Editor_Mode == 1){ $("HTML_Editor").value = ""; }else{ $("Visual_Editor").contentWindow.document.body.innerHTML = ""; } $("words").innerHTML = "0"; } 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; if(Editor_Mode == 0){ str = $("UBB_Editor").value; }else if(Editor_Mode == 1){ str = $("HTML_Editor").value; }else{ str = $("Visual_Editor").contentWindow.document.body.innerHTML; } var strfound = (reg.checked) ? $('find_text').value : zhen($('find_text').value) ; var re = new RegExp(strfound, "ig"); str = str.replace(re, $("replace_text").value); if(Editor_Mode == 0){ $("UBB_Editor").value = str; }else if(Editor_Mode == 1){ $("HTML_Editor").value = str; }else{ $("Visual_Editor").contentWindow.document.body.innerHTML = str; } sum_word(); } function font_checker(obj){ var o = $('set').font_all; if(! obj.checked && o.checked) o.checked = false; } function pasteData(){ if(!$('x_paste').checked) return true; if(Editor_Mode==2){ var str = transData(); $('rtf').contentWindow.document.body.innerHTML = str; $('rtf').contentWindow.focus(); $('rtf').contentWindow.document.body.createTextRange().execCommand("Copy"); }else{ clipboardData.setData('text',transData()); } return true; } function attPasteEvt(){ $('Visual_Editor').contentWindow.document.body.onpaste = pasteData; $('Visual_Editor').onload = null; } function filter_Font(Obj){ Obj = Obj.checked; $('font_color').checked = Obj; $('font_size').checked = Obj; $('font_face').checked = Obj; $('font_b').checked = Obj; $('font_i').checked = Obj; $('font_u').checked = Obj; } function fltBaseUrl(){ if($('filtrate').checked) $('base_url').style.display = 'block'; else $('base_url').style.display = 'none'; } function clearBaseUrl(){ $('textfield').value = ''; } function reset(){ $('set').reset(); fltBaseUrl(); $('find_text').value = ''; $('replace_text').value = ''; $('textfield').value = ''; } function configTip(msg){ var e; try{ clearTimeout(Timer); }catch(e){} $('config_tip').innerHTML = msg; Timer = setTimeout('$("config_tip").innerHTML=""', 1000); } function Simplized(){ var obj; if(Editor_Mode==0){ obj = $('UBB_Editor'); obj.value = convJT(obj.value); }else if(Editor_Mode==1){ obj = $('HTML_Editor'); obj.value = convJT(obj.value); }else{ obj = $('Visual_Editor').contentWindow.document.body; StranBody(obj, 0); } } function Traditionalized(){ var obj; if(Editor_Mode==0){ obj = $('UBB_Editor'); obj.value = convFT(obj.value); }else if(Editor_Mode==1){ obj = $('HTML_Editor'); obj.value = convFT(obj.value); }else{ obj = $('Visual_Editor').contentWindow.document.body; StranBody(obj, 1); } } function QQ90sized(){ var obj; if(Editor_Mode==0){ obj = $('UBB_Editor'); obj.value = convQQ(obj.value); }else if(Editor_Mode==1){ obj = $('HTML_Editor'); obj.value = convQQ(obj.value); }else{ obj = $('Visual_Editor').contentWindow.document.body; StranBody(obj, 2); } } function noDuplicate(){ var o = $("UBB_Editor"); var ary = o.value.replace(/^\s*|\s*$/g, "").split("\r\n"); var re = {}; var str = "", s; for(var i = 0, len = ary.length, j = 0; i < len; i++){ s = ary[i]; if(s == ""){ str += "\r\n"; j++; }else{ if(!re[s]){ re[s] = true; str += s +"\r\n"; j++; } } } str = str.substr(0, str.length-2); o.value = str; configTip(len + "->" + j); sum_word(); } function decodeBase64(){ var o = $("UBB_Editor"); o.value = base64decode(o.value); sum_word(); } function encodeBase64(){ var o = $("UBB_Editor"); o.value = base64encode(o.value); sum_word(); } function moreTool(){ $('advTool').style.display = ($('advTool').style.display=="block") ? "none" : "block"; } function sum_word(){ var s; if(Editor_Mode == 0){ s = $("UBB_Editor").value.length; }else if(Editor_Mode == 1){ s = $("HTML_Editor").value.length; }else{ s = $("Visual_Editor").contentWindow.document.body.innerHTML.length; } $("words").innerHTML = ""+s; } function init(){ $('rtf').contentWindow.document.designMode = "On"; $('Visual_Editor').contentWindow.document.designMode = "On"; $('set').reset(); } if(window.addEventListener){ window.addEventListener('load', init, false); }else{ window.attachEvent('onload', init); } DLLC1234转帖工具 字符数: 0
JS 压缩
输入图片的基本地址: 如果未指定基本地址, 则将自动取第一张图片的位置做基本地址. 基本地址是指除文件名外的网络路径.
如图片地址为: http://www.maxthon.com/images/logo.png , 则除去图片文件名 logo.png 后基本地址为: http://www.maxthon.com/images/ 查找文本: 替换文本: