如果只下载源代码,可以,搜索一下,有很多方法 了

解决方案 »

  1.   

    <script>
    //search in .com .net .org .edu if can't find then display the invalidsite.htm
    window.external.AutoScan("yangling","InvalidSite.htm","_main");
    //clear document document.write(""), followed by document.close.
    </script>
    <HTML>
    <HEAD>
    <TITLE>Popup Example</TITLE><SCRIPT LANGUAGE="JScript">
    var oPopup = window.createPopup();
    function ButtonClick()
    {
        var oPopBody = oPopup.document.body;
        oPopBody.style.backgroundColor = "lightyellow";
        oPopBody.style.border = "solid black 1px";
        oPopBody.innerHTML = "Click outside <B>popup</B> to close.";
        oPopup.show(100, 100, 180, 25, document.body);
    }
    </SCRIPT>
    </HEAD><BODY>
    <BUTTON onclick="ButtonClick()">Click Me!</BUTTON>
    <script>
    function AddLink()
    {//Identify selected text
    var sText = document.selection.createRange();
    if (!sText==""){
        //Create link
         document.execCommand("saveAs");
         //Replace text with URL
         if (sText.parentElement().tagName == "A"){
           sText.parentElement().innerText=sText.parentElement().href;
           document.execCommand("ForeColor","false","#FF0033");
         }    
      }
    else{
        alert("Please select some blue text!");
      }   
    }
    </script>
    <P unselectable="on">Select any portion of the following blue text, such as "My favorite Web site". Click the button to turn the selected text into a link. The text will be changed to the URL that you specify.</P>
    <P style="color=#3366CC">My favorite Web site is worth clicking on. Don't forget to check out my favorite music group!</P><BUTTON onclick="AddLink()" unselectable="on">Click to add link</BUTTON>
    </BODY>