Annoying. About how Ajax obtains HTML Content Encoding and the dynamic execution of JavaScript loading scripts. Two problems:
Question 1:
The responseText of xmlhttp is always encoded with UTF-8 by default. To solve this problem at minimal cost some
The following code uses JavaScript to control the cpu usage.
See the article about CPU usage in the control task manager. It is very interesting. I always wanted to do it myself. However, I have a limited level in C language. Therefore, you
Use js to call flash and remove code for the virtual border effect
The Code is as follows:
Function tmh _ make_ad_fodder (src, width, height){Src = src. replace ("","");Var TEMP_IMAGE = '';Var TEMP_FLASH ='+ 'Codebase = "http://download.macromedia.
3D effects produced by jsvml
rotate left pause rotation right rotation script var q = 40; var r = (q * 3.1415926) /180 var v = new Array () var l = new Array () v [0] = "0,400, 0" v [1] = "100,350, 15 "v [2] =" 200,400, 0 "v [3]
The Beijing Olympics official website uses flash for packaging and downloading. You can change the image at will. A brief description is provided.
Favorite download by yourself
Very good slide picture switching effect, implemented using flash +
ThickBox is an extension based on the JQuery class library. The following example is ThickBox3.1's instance + code call method ThickBox, which is an extension based on the JQuery class library. It can display a great UI box on the browser interface,
You can see what JSON is and what JSON is.
JSON (Javascript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to parse and generate machines. It is based on a subset of Javascript Programming Language,
Javascript implements the binary search method. Generally, binary code is used in int ..... in js, a-z may be used more flexibly, or pinyin may be used... or ......
However, it is worth pondering whether the following process is worthwhile to
Javascript reference object method code reference method on the same page:
1. Use id:
Link1.href
2. Use name:
Document. all. link1.href
3. Use sourseIndex:
Document. all (4). href // note that there are HTML, HEAD, TITLE, and BODY in front, so
The code for JS and ASP second-level domain name redirection has implemented asp second-level domain name redirection, but another method is used: the front-end JS and ASP conversion program cannot be used, the program has been debugged but cannot
Static pages use javascript to operate ACCESS Database (read, add, modify, delete) code static page reading accessdata warehouse .htm
The Code is as follows:
If the js check client is not firefox, the system prompts to download var hasIE_phone_home = 0;
// This function does the actual browser detection
Function writeCookie (name, value, hours)
{
Var expire = "";
If (hours! = Null)
{
Expire = new Date ().
Record a few small javascript-related details many and many things are easily forgotten, so I chose to record them.
Firefox does not support the obj. innerText attribute.
The value displayed by obj. innerText alert () is undefined.
Firefox
Unified interface: Add IE methods and attributes to FireFox. How does one run the code (pure js version) in Z-Blog? Because FF does not support insertAdjacentElement, the "Running code" link cannot be displayed. Today, I Googled and found a good
AddEvent. js code of the driver event
The Code is as follows:
Array. prototype. inArray = function (value ){Var I;For (I = 0; I If (this [I] === value ){Return true;}}Return false;};Function addEvent (obj, type, fn ){If (obj. addEventListener
With the increasing number of Ajax applications, various Ajax libraries (Prototype), Ajax Framework (DWR), and Ajax Toolkit (Dojo and YUI) are increasingly enriched, is there a way to combine them? Similar to Spring, of course, I cannot build an IoC
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