XML is designed to store, transmit, and exchange data. XML is not designed to display data.
XML can separate HTML from dataBy using XML, your data can be stored outside HTML.
When we use HTML to display data, the data is stored in HTML. By using XML,
Js image carousel code with buffering effect this article provides two js image carousel codes with buffering effects, and a customizable slide and image buffering code, if you need to modify
Js image carousel code with Buffer EffectThis article
Powerful syntax highlighting engine implemented by javascript
SyCODE Syntax Highlighter is a javascript-based Syntax highlighting program. The implementation method draws on the famous db. SyntaxHighlighter to use regular expressions for keyword
DWR (Direct Web Remoting) is a WEB Remote Call framework. using this framework can make AJAX development very simple. using DWR, you can use JavaScript on the client to directly call the Java method of the service and return the value to JavaScript,
Both IE and opera support ajax well. (This is due to prototype. js encapsulation)
This example uses a file to record chat records and implement simple chat rooms.
In actual use, you must pay attention to the processing of large user concurrency,
Function pattern (str ){// Str = str. replace (/(rn | n | r)/ig ,'');Str = str. replace (/] *>/ig, 'n ');Str = str. replace (//] */>/ig, 'n ');// Str = str. replace (/[code] (. + ?) [/Code]/ig, function ($1, $2) {return phpcode ($2 );});Str = str.
gradient background gradient background-beta1 IE6, IE7, and FF2 passed the test. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. aliquam blandit nunc lobortis diam bibendum semper. nunc aliquam mi. maecenas porttitor, lorem sed mattis
Js cookie-related operation functions
// Check whether the browser supports cookiesFunction checkCookie (){// Determine whether the cookie is enabledVar cookieEnabled = (navigator. cookieEnabled )? True: false;// If the browser is not ie4 + or ns6
In JS programming under IE, the following programming methods will cause the failure to release the memory even if IE is disabled. The following categories are provided:
1. the attribute added to the DOM object is an object reference. Example:Var
Many times we will see the text on the webpage, which can be edited as long as we click it. Next I will introduce a Summary of the javascript Mouse clicking text to text box code, for more information, see.
The Code is as follows:
Copy
This article introduces how to use javascript to refresh iframe on the parent page. For more information, see.
The Code is as follows.
The Code is as follows:
Copy code
JQuery (". captcha_iframe"). attr ("src", jQuery (".
This article introduces the src Method for matching images and all image addresses in js regular expressions. For more information, see.
Implementation: Use the js regular expression to match all images and all image addresses in src.
Idea: 1. Match
This article introduces how to use prototype attributes in Javascript. This article is applicable to beginners. I hope to help you all.
First, we need to first understand the concept of a class. JavaScript itself is an object-oriented language, and
Because today we want to build a website background and the background uses a framework, the results are always in the framework when exiting. Next I will introduce a method to jump out of the framework.
Core code
The Code is as follows:
Onbeforeunload and onunload events are the functions of the two functions before and when the page is loaded, which can prevent prompt refresh when the page is refreshed or when the page is closed, next I will introduce the usage of onbeforeunload
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