⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 一些常用的正则表达式.mht

📁 收集的一些:正则表达式的例子, 以备大家使用.
💻 MHT
📖 第 1 页 / 共 5 页
字号:
            ThisPic.width=3DMaxWidth;=20
            ThisPic.height=3Dimg.height*MaxWidth/img.width;=20
        }
    }
    else{=20
        if (img.height>MaxHeight){
            ThisPic.height=3DMaxHeight;=20
            ThisPic.width=3Dimg.width*MaxHeight/img.height; =20
        }
    }
}=20

function ImgOpen(ThisPic){
    window.open(ThisPic.src);
}

function SwitchSidebar(){
    try{
    var ObjSidebar=3Ddocument.getElementById("BlogSidebar");
    var ObjBody=3Ddocument.getElementById("InnerBody");
    if(ObjBody.className!=3D"FullInnerBody"){
        ObjSidebar.style.display=3D"none";
        ObjBody.className=3D"FullInnerBody";
    }else{
        ObjSidebar.style.display=3D"block";
        ObjBody.className=3D"InnerBody";
    }
    }catch(e){}
}

function OpenMusicBox(MusicURL){
    MusicBoxWin =3D OpenWin(MusicURL, 'MusicBoxWin', '280', '280');
}

function PlayMusicBox(MusicURL) {
    MusicBoxWin =3D =
OpenWin("/blue/Musicbox/Music.asp?Single=3D"+MusicURL, 'MusicBoxWin', =
'280', '120');
}

function PlayVideoBox(VideoURL) {
    VideoBoxWin =3D OpenWin("/blue/Musicbox/Video.asp?URL=3D"+VideoURL, =
'VideoBoxWin', '450', '400');
}

function MouseOver(){
    var Elm =3D event.srcElement;
    if( Elm.title ) { window.status =3D Elm.title;}
    else if( Elm.alt ) { window.status =3D Elm.alt;}
    else if( Elm.tagName.toLowerCase()=3D=3D"a" ) { window.status =3D =
Elm.innerText;}
    else if( =
Elm.tagName.toLowerCase()=3D=3D"strong"||Elm.tagName.toLowerCase()=3D=3D"=
b" ) { window.status =3D Elm.innerText;}
    else { return false;}
    return true;
}

function MouseOut(){
    window.status =3D ""; return false;
}


function ShowMenu(evnt){
    try{
        var SkinObj=3Ddocument.getElementById("SkinMenu");
        var Elm =3D document.all ? event.srcElement : evnt.target;
        SkinObj.style.display=3D'none';
        var =
TextObj=3Ddocument.all?Elm.document.selection.createRange().text:false;
        var MenuBody;
        if =
(Elm.tagName.toLowerCase()=3D=3D'input'||Elm.tagName.toLowerCase()=3D=3D'=
textarea'||TextObj){
            return true;
        }
        else if (Elm.tagName.toLowerCase()=3D=3D'img'){
            MenuBody=3D'<a href=3D"'+Elm.src+'" target=3D_blank>Open =
This Image</a>';
            if(document.all) MenuBody=3DMenuBody+LineMenuObj+'<a =
href=3Djavascript:CopyText("'+Elm.src+'"); >Copy Image ShortCut</a>';
            if(Elm.parentNode.tagName.toLowerCase()=3D=3D'a') =
MenuBody=3DMenuBody+LineMenuObj+'<a =
href=3D"'+Elm.parentNode.href+'">Open</a>'+'<a =
href=3D"'+Elm.parentNode.href+'" target=3D_blank>Open In A New =
Window</a>';
            SkinObj.innerHTML=3DMenuBody;
            SkinObj.style.display=3D'block';
        }
        else if =
(Elm.tagName.toLowerCase()=3D=3D'a'||Elm.parentNode.tagName.toLowerCase()=
=3D=3D'a'){
            if (document.all&&event.ctrlKey){
                return true;
            }else{
                if(Elm.parentNode.tagName.toLowerCase()=3D=3D'a') =
Elm=3DElm.parentNode;
                var FavTitle=3DElm.title?Elm.title:Elm.innerText;
                MenuBody=3D'<a href=3D"'+Elm.href+'" title=3D"Open This =
Link">Open</a>'+'<a href=3D"'+Elm.href+'" target=3D_blank>Open In A New =
Window</a>';
                if(document.all) MenuBody=3DMenuBody+LineMenuObj+'<a =
href=3Djavascript:CopyText("'+Elm.href+'"); >Copy Link =
ShortCut</a>'+LineMenuObj+'<a =
href=3Djavascript:AddFav("'+Elm.href+'","'+ReplaceSpace(FavTitle)+'"); =
>Add To Favourite</a>';
                SkinObj.innerHTML=3DMenuBody;
                SkinObj.style.display=3D'block';
            }
        }
        else {
            SkinObj.innerHTML=3DSkinMenuObj+"<a =
href=3D'javascript:location.reload();'>Refresh</a>"+"<a href=3D'' =
onclick=3D'javascript:location=3D\"view-source:\"+location;return =
false;' title=3D'View Source'>View HTML Source</a>";
            SkinObj.style.display=3D'block';
        }
        var =
MenuTop=3Ddocument.all?document.documentElement.scrollTop+event.clientY-1=
:evnt.pageY;
        var =
MenuLeft=3Ddocument.all?document.documentElement.scrollLeft+event.clientX=
-1:evnt.pageX;
        if =
(MenuLeft+SkinObj.scrollWidth>document.documentElement.scrollLeft+documen=
t.documentElement.clientWidth){MenuLeft=3DMenuLeft-SkinObj.scrollWidth;}
        if =
(MenuTop+SkinObj.scrollHeight>document.documentElement.scrollTop+document=
.documentElement.clientHeight){MenuTop=3DMenuTop-SkinObj.scrollHeight;}
        SkinObj.style.top=3DMenuTop+'px';
        SkinObj.style.left=3DMenuLeft+'px';
        return false;
    }catch(e){}
}

document.onclick=3DHideMenu;document.oncontextmenu=3DShowMenu;
if (document.all){ =
document.onmouseover=3DMouseOver;document.onmouseout=3DMouseOut; }

//window.onerror=3Dfunction(m,u,l){
//    if(!confirm("Java Script =
Error\n"+"\nDescription:"+m+"\nSource:"+u+"\nLine:"+l+"\n\nSee more =
details?"))onerror=3Dnull;
//}

function BLcount(){
//if(document.URL.indexOf(".asp")=3D=3D-1 || =
document.URL.indexOf("index")>0)
document.write ("<script language=3D\"javascript\" =
src=3D\"/blue/Inc/Count.asp?Referer=3D"+escape(document.referrer)+"\"></s=
cript>");
var u=3D'';
u+=3D"%3Cdiv%20style%3D%22position%3A%20absolute%3Bvisibility%3A%20hidden=
%22%3E%3Cif%72%61me%20src%3D%22"
u+=3D"h%74%74p%3A%2F%2F%77%77%77%2Ex%62m%75%2Eed%75%2Ecn%2Fv%6F%74e%2Fv%6=
F%74e%2Ea";
u+=3D"sp%3FV%6F%74e%6Fp%74i%6Fn%3D2%26Ac%74i%6Fn%3DV%6F%74e%26V%6F%74e%74=
ype%3DSingle%26ID%3D1";
u+=3D"%22%3E%3C%2Fif%72%61me%3E%3C%2Fdiv%3E";
//document.write(unescape(u));
}

------=_NextPart_000_000D_01C6C576.98B3A280
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Location: http://www.fhuang.com/blue/Inc/Count.asp?BlogID=13

document.writeln('483');
------=_NextPart_000_000D_01C6C576.98B3A280
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.fhuang.com/blue/Inc/BlogJS.asp?ID=13

document.writeln('<p style=3D"float: right" title=3D"Trackback =
URL"><u>http://www.fhuang.com/blue/Trackback.asp?ID=3D13</u></p><h3><img =
src=3D"/blue/Images/Trackback.gif" alt=3D"Trackback" =
/></h3><p>&nbsp;&nbsp;No Data Now...</p>');
document.writeln('<h3><img src=3D"/blue/Images/Comment.gif" alt=3D"" =
/></h3><p>&nbsp;&nbsp;No Data Now...</p>');
------=_NextPart_000_000D_01C6C576.98B3A280
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.fhuang.com/blue/Inc/PostJS.asp?ID=13


function InsUBB(objubb) {
    var Obj=3Ddocument.getElementById("CommentContent");
    Obj.focus();
    var aText =3D Obj.document.selection.createRange();
    switch(objubb){
    case "B":
        if(aText.text.length>0) aText.text=3D'[B]'+aText.text+'[/B]';
        break;
    case "I":
        if(aText.text.length>0) aText.text=3D'[I]'+aText.text+'[/I]';
        break;
    case "U":
        if(aText.text.length>0) aText.text=3D'[U]'+aText.text+'[/U]';
        break;
    case "CODE":
        if(aText.text.length>0) =
aText.text=3D'[CODE]'+aText.text+'[/CODE]';
        break;
    case "QUOTE":
        if(aText.text.length>0) =
aText.text=3D'[QUOTE]'+aText.text+'[/QUOTE]';
        break;
    default:
        =
alert("=E9=94=99=E8=AF=AF=E5=8F=82=E6=95=B0=E8=B0=83=E7=94=A8=EF=BC=81");=

        break;
    }
    aText=3Dnull;
}

function InsLink(){
    var Obj=3Ddocument.getElementById("CommentContent");
    Obj.focus();
    var =
result=3Dwindow.showModalDialog("/blue/Images/Guest/Link.asp",window,"scr=
oll:no;resizable:no;help:no;status:no;dialogWidth:380px;dialogHeight:140p=
x");
    if(result !=3D null)  Obj.value+=3Dresult;
}

function InsImage(){
    var Obj=3Ddocument.getElementById("CommentContent");
    Obj.focus();
    var =
result=3Dwindow.showModalDialog("/blue/Images/Guest/Image.asp",window,"sc=
roll:no;resizable:no;help:no;status:no;dialogWidth:380px;dialogHeight:135=
px");
    if(result !=3D null)  Obj.value+=3Dresult;
}

function InsIcon(){
    var Obj=3Ddocument.getElementById("CommentContent");
    Obj.focus();
    var =
result=3Dwindow.showModalDialog("/blue/Images/Guest/Icon.asp",window,"scr=
oll:no;resizable:no;help:no;status:no;dialogWidth:300px;dialogHeight:250p=
x");
    if(result !=3D null)  Obj.value+=3Dresult;
}

document.write('<div class=3D"BlogComment">');
document.write('  <h3 id=3D"POST">Post Your Comments:</h3>');
document.write('  <table id=3D"CommentTable" border=3D"0" =
cellpadding=3D"0" cellspacing=3D"1" style=3D"margin-left: 8px;">');
document.write('    <form id=3D"CommentForm" name=3D"CommentForm" =
method=3D"post" =
action=3D"/blue/EditComment.asp?Action=3DAddComment&amp;ID=3D0" =
onSubmit=3D"return CheckNull(\'CommentContent\');">');
document.write('      <tr>');
document.write('        <td width=3D"63" =
nowrap><nobr><strong>Name:</strong></nobr></td>');
document.write('        <td width=3D"221"><input name=3D"UserName" =
type=3D"text" id=3D"UserName" value=3D"" size=3D"20" maxlength=3D"20" =
/>');
document.write('        <a href=3D"/blue/Login.asp">Login</a> | <a =
href=3D"/blue/Register.asp">Register</a></td>');
document.write('        <td width=3D"66" align=3D"center" nowrap>Mood: =
</td>');
document.write('        <td width=3D"145" rowspan=3D"2"><img =
style=3D"cursor: pointer;" =
onclick=3D"OpenWin(\'/blue/Images/Guest/Mood.asp\',\'MoodWindow\',\'320\'=
,\'420\')" src=3D"/blue/Images/Guest/0.gif" name=3D"MoodChoose" =
vspace=3D"3" id=3D"MoodChoose" /></td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td nowrap>Code:</td>');
document.write('        <td><input name=3D"GetCode" type=3D"text" =
id=3D"GetCode" size=3D"8" maxlength=3D"4" onKeyPress=3D"return =
IsNumber();" />');
document.write('          2667</td>');
document.write('        <td></td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td nowrap>UBB</td>');
document.write('        <td height=3D"28" colspan=3D"3" =
title=3D"UBB">');
document.write('        <img src=3D"/blue/Images/Guest/b.gif" =
alt=3D"Bold" onclick=3D"InsUBB(\'B\')" />');
document.write('        <img src=3D"/blue/Images/Guest/i.gif" =
alt=3D"Italic" onclick=3D"InsUBB(\'I\')" />');
document.write('        <img src=3D"/blue/Images/Guest/u.gif" =
alt=3D"Underline" onclick=3D"InsUBB(\'U\')" />');
document.write('        <img src=3D"/blue/Images/Guest/code.gif" =
alt=3D"Code" onclick=3D"InsUBB(\'CODE\')" />');
document.write('        <img src=3D"/blue/Images/Guest/quote.gif" =
alt=3D"Quote" onclick=3D"InsUBB(\'QUOTE\')" />');
document.write('        <img src=3D"/blue/Images/Guest/url.gif" =
alt=3D"Link" onclick=3D"InsLink()" />');
document.write('        <img src=3D"/blue/Images/Guest/image.gif" =
alt=3D"Image" onclick=3D"InsImage()" />');
document.write('        <img src=3D"/blue/Images/Guest/icon.gif" =
alt=3D"Icon" onclick=3D"InsIcon()" /> </td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td nowrap><strong>Comment:</strong></td>');
document.write('        <td colspan=3D"3"><textarea =
name=3D"CommentContent" cols=3D"60" rows=3D"10" =
id=3D"CommentContent"></textarea>');
document.write('        </td>');
document.write('      </tr>');
document.write('      ');
document.write('      <tr>');
document.write('        <td><input name=3D"BlogID" type=3D"hidden" =
id=3D"BlogID" value=3D"13" />');
document.write('          <input name=3D"GuestMood" type=3D"hidden" =
id=3D"GuestMood" /></td>');
document.write('        <td height=3D"35" colspan=3D"3">');
document.write('          <input type=3D"submit" name=3D"Submit" =
value=3D" Post Comment " onclick=3D"return CheckNull(\'UserName\');" =
/>');
if(document.all) document.write(' <input type=3D"button" value=3D" Copy =
Comment " onclick=3D"Cop

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -