Javascript achieves the display, structure, and behavior separation tab effect!

The feature is easy to expand. You only need to add the title and content to it and then initialize it automatically. untitled document window. onload = resetTab; function getTabTitle (tab) {var childNodesList = tab. childNodes; var titleNodes

Repeat the delayed execution function fig. js

In a project of the company, there are many places that require delayed execution of some repetitive functions (actions), and the following function is written.Well, if you don't know what it means to be more specific, it is set to: LoopRun, meaning

Use javascript to display and switch after image mosaic

[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Sliding Door, concise, for beginners (small pigeon Series)

I used to reply to several friends about the sliding door code. At that time, I didn't use IE7 or FF. As a result, I found that the code can only be run under IE6, and the code is also very long; today, another friend asked me this question. I had

Combination of XML + XSL and HTML

Currently, the Content Management System displays the specific data on the client in two ways: XML + XSL or Html. Take CSDN as an example. Currently, both methods exist. For example, in the forum, we use XML + XSL, and in the document center we use

An image zoomed in with the mouse, compatible with FF

[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Javascript template Technology

/*** Template. class. js ***/Function Template (){This. classname = "Template ";This. debug = false;This. file = new HashMap ();This. root = "";This. varkeys = new HashMap ();This. varvals = new HashMap ();This. unknowns = "remove ";This.

Use the javascript parent window to control only one child window

Recently, some questions about how to control a child window in the parent window are frequently circulated on the Internet. I have checked some questions about how to control the child window in the parent window. Most of them can only solve some

Let's talk about two things: 1. usage of the this pointer; 2. attachEvent of ie and addEventListene of firefox

First thing.This refers to a special clock in JavaScript, which points to the current object that calls this statement when the code is running.If it is an event binding function, it points to the bound element itself.It is particularly worth noting

A encapsulated beautiful progress bar

Copy codeThe Code is as follows: [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Shielding javascript code for a function of javascript in textarea

There is a textarea, And I want to block a function in this textarea focus,This is to make this function invalid and make it valid again after removing the focus. How can this function be implemented ???1st FloorIn your function, use document.

Special JavaScript characters

You can use a backslash in JavaScript to add special characters to a text string.Insert special characters A backslash is used to insert ellipsis, line breaks, quotation marks, and other special characters into a text string. See the following

Page 1/4 of the JavaScript preliminary tutorial (Lesson 1)

Interactivity! Most websites claim interactivity, that is, when you click a link to reach a new page, but strictly speaking, it does not mean that the page is truly interactive even when it has CGI language. Fill out the form, press the submit

Code that triggers an event when you click any link on the page

This row is prepared to write an automatic update and automatic collection program. To enable automatic collection, you can only put one trigger event in a place with multiple accesses, because your server is a win host, this is the same as trigger

Ajax chat. js files used on the Internet

Var xmlHttp = false;Var ichatstate;Try {XmlHttp = new ActiveXObject ("Msxml2.XMLHTTP ");} Catch (e ){Try {XmlHttp = new ActiveXObject ("Microsoft. XMLHTTP ");} Catch (e2 ){XmlHttp = false;}}If (! XmlHttp & typeof XMLHttpRequest! = 'Undefined

Code for controlling iframe scrolling using javascript

Now there is a horizontal IFRAME. You need to click an image outside the iframe to scroll a html page in the iframe horizontally, but you do not want to see the iframe scroll bar, how can this problem be solved ???? Demo.htm Onmousedown = "timer1 =

When the content on this site is copied, this article is transferred from the js Code Original with the words such as the script home.

This site is original. For reprinted, please state the source of your homeI found someone asking me for such Code recently. When I copy the article on this site, I can add a sentence as long as I copy the content on this site, this article is

Common sorting algorithms in Javascript

The code and comparison are as follows:Copy codeThe Code is as follows: common sorting algorithms in JavaScript & Lt; td width = "150" align = "center" & gt;Number of random numbers Maximum random number regenerate Time elapsed (MS): bubble

Call javascript in IE to open the Excel Code (original downmoon)

Copy codeThe Code is as follows: top 30 sales control table

Functions used to display flash in Sina

Functions used to display flash in Sina. They can be used after formatting.Sinaflash. jsCopy codeThe Code is as follows:/*** @ Author [sina] zhangping1 @* @ Version v1.1.3* Date: 2006-9-8 2006-12-15*/If (typeof (sina )! = "Object") {var sina =

Total Pages: 5378 1 .... 2523 2524 2525 2526 2527 .... 5378 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.