Js Regular Expression verification number, email address, delete Space// Function: Remove spaces before and after the string// Return value: the string with spaces removedFunction fnremovebrank (strsource){Return strsource. replace (/^ s */, '').
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
About ext, ajax should not be just ext. After reading the five-page discussion, I feel that most people do not support ext. Although ext may be the most popular ajax framework, but she does have a lot of problems.1. For example, the hot issue of
Function getCookie (name ){Var Found = falseVar start, endVar I = 0
// Cookie.While (I Start = IEnd = start + name. length// Name brace old eggplant Lei Ah happy to restIf (document. cookie. substring (start, end) = name ){Found = trueBreak}I ++}
/
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
What Is AJAX?
AJAX is called "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML). It is a Web page development technology used to create interactive web applications. It organically includes the following technologies:Ajax
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
Var editor;Editor = document. getElementById ("ftest"). contentWindow;Alert(editor.doc ument. body. innerHTML );// Simply enter the following settings and the iframe is immediately changed to the editor.Editor.doc ument. designMode = 'on
Javascript obtains the MAC address, IP address, and computer name of the client Nic.In a B/S system, we often need to obtain some information about the client, such as IP and MAC, for identity authentication. It is easy to obtain the MAC address of
There are N types of page refresh code in js. Next I will introduce you to the code of the page refresh in js, including: Click to refresh the page, regularly refresh pages and other implementation methods. For more information, see.
Let's briefly
This article will analyze the usage and differences between the javascript timer function setInterval () and setTimeout (). For more information, see.
SetTimeout (expression, delay time) is a Timer Program, that is, what to do after what time, only
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 (".
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:
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.