Js Regular Expression verification number, email address, delete Space

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

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. At this time, I may be more inclined to jquery, but jquery's plug-in

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

Ajax & XMLHttpRequset

1 2 34 5 6 Ajax_exam1 7 8 9 10 11 12 1314 var ajax;15 function CreateAJAX ()16 {17 if (window. ActiveXObject)18 {19 try20 {21 return new ActiveXObject ("Msxml2.XMLHTTP ");22}23 catch (e)24 {25 try26 {27 return new ActiveXObject ("Microsoft. XMLHTTP

Animated Effect of google.cn

.cn effect Google pinyin Google Toolbar mobile phone location online translation train time network speed test Perpetual calendar unknown

Obtain the cookie value

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 ++}   /

Convert html to ubb Function

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.

Convert ubb to html code

Function up (str ){ Str = str. replace (/Str = str. replace (/>/ig, '& gt ;');Str = str. replace (/n/ig, ' ');Str = str. replace (/[code] (. + ?) [/Code]/ig, function ($1, $2) {return phpcode ($2 );}); Str = str. replace (/[hr]/ig, ' ');Str = str.

Implementation of div gradient background

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?

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

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

Basic web Editor Model

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

Uninterrupted text scrolling

Application Description: The page contains  Create an instance:// Direct parameter value assignmentNew Marquee ("marquee ")New Marquee ("marquee", "top ")......New Marquee ("marquee)New Marquee ("marquee", "top", 1,760, 5000)......New Marquee

Ajax cancels a request using the abort Method

New Document

Semi-automated table filling tool written in JS

semi-automated JavaScript filling

Obtain the MAC address of the client Nic

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

Detailed description of JavaScript refresh Page code

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

Javascript timing functions setInterval () and setTimeout () Analysis

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

How to use javascript to refresh iframe on the parent page

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 (".

Js framework page redirection method to jump out of the framework

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:

Total Pages: 472 1 .... 188 189 190 191 192 .... 472 Go to: GO

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.