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.