Exploring Lao Zhao's blog jQuery using IE6

Source: Internet
Author: User

Very depressing. Do I have to install a browser when I read a blog? I am very lazy. I just want to use IE6!
Recently, I was reading jQuery. I just got into the door and found an interesting function. I started my experiment with Lao Zhao's blog.
  
Load the latest version of an HTML webpage.
JQuery code:
Copy codeThe Code is as follows:
$. Ajax ({
Url: "test.html ",
Cache: false,
Success: function (html ){
$ ("# Results"). append (html );
}
});
<Div id = "results"> </div>

Use this to change the address to Lao Zhao's blog to see what the effect will be.
Create a new text file named a.htm. Copy the code in the example, modify the URL, and run it.
I saw it, haha, and so on. Why did I jump back? It seems that the js script in the blog is also running. Find the script. Isn't that OK if you have killed it.
After searching for half a day (js is poor), I finally found it.
Code
Copy codeThe Code is as follows:
<! -- [If IE 6]>
<Script language = "javascript" type = "text/javascript">
Var url = window. location. toString ();
Window. location = "http://files.cnblogs.com/JeffreyZhao/no-ie6.xml? R = "+ Math. random (). toString () +" & from = "+ encodeURIComponent (url );
</Script>
<! [Endif] -->

This is the code that is in disorder. Replace "window. location ...... You can.
Code
Copy codeThe Code is as follows:
<Html>
<Head> <title> Use IE6 to view Lao Zhao's blog v1.1 </title>
<Script src = "aspnet_client/jquery/jquery-1.3.1.js" type = "text/javascript"> </script>
<Script type = "text/javascript">
$ (Document). ready (function (){
$. Ajax ({
Url: "http://www.cnblogs.com/JeffreyZhao/default.aspx ",
Cache: false,
Success: function (html ){
Ss = html;
Ss = ss. replace (/location/g, "status ");
$ ("# Results"). append (ss );
}
});
});
</Script>
</Head>
<Body>
<Div id = "results"> loading... </div>
</Body>
</Html>

(According to your help, I modified the code .)
The code is like this. Create a local text file, rename it, copy it, and run it. Then you can see Lao Zhao's blog in IE6.
Ps: Run this code on the website and say "no permission ". So it cannot be demonstrated online.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.