JQuery basic tutorial notes for JavaScript beginners page 1/2

1,: eq () and nth-child ()See the following code:2,: odd and: even: Odd number of rows: Even number of rowsNew users often say that it seems to be the opposite of what we do?In fact, like the eq () selector, the subscript starts from 0,That is, the

Effect of common code running in forums implemented by pure js

Put runcode. js in the website directory when using it, and put the following code where you need to run the codeCopy codeThe Code is as follows: {1} tip: you can modify some code before running You can.Runcode. js FileCopy codeThe Code is

A Simple Method for js to find a parent node

title Project 1 subclass 1 subclass 2 Project 1 project In the code above, when you click a project or subclass, the parameters are the same because the trigger event is the same, which can distinguish whether the user clicks "Project

Consecutive seamless horizontal scrolling of images conforming to W3C Web standards

This time I encountered another such problem. After searching for a long time, I finally found a good one on the Internet. After reading the code, the idea was very simple, but there were too many codes and the versatility was not good, I have

Use the ActiveXObject control in javascript to replace word bookmarks. Export the content to word and print page 1/2.

Recently, you need to export data to word and edit and print the data.I have thought of several solutions:1. Use jacob.2. Use apache poi.3. Use itext.Because of the tight schedule, I have to study the above toolkit in a few cases. Now I use

Functions for parsing xml strings using javascript

But it is an XML string, it will be different in the two browsers. in IE, you can directly use the LoadXML method to parse the XML string, and in FF, you need to use the parseFromString () of the DOMParser object () the method isVar oParser = new

Set of javascript String extension methods

// Obtain the character arrayString. prototype. ToCharArray = function (){Return this. split ("");}// Obtain N identical stringsString. prototype. Repeat = function (num){Var tmpArr = [];For (var I = 0; I Return tmpArr. join ("");}// Reverse

Javascript String object

The following describes how to use a string in Javascr into pt:1. Change the string case sensitivity.String. toUpperCase ();String. toLowerCase ();2. string SEARCHThe indexOf () method is used to determine whether a short string is in another long

Js verification form Overview

Good JS verification ~~~~~~~~~~~~~~~~~~~~~~~~~Purpose: Verify the IP address format.Input: strIP: IP AddressReturn: If the verification succeeds, true is returned; otherwise, false is returned;*/Function isIP (strIP ){If (isNull (strIP) return false;

Solve the [trouble using event] Problem in FireFox

Writing event processing functions in FireFox is troublesome.Because FireFox does not have window. event. To get the event object, you must declare the first parameter of the time processing function as event.To be compatible with IE and FireFox,

A simple section of JavaScript code that allows automatic image Switching

Copy codeThe Code is as follows:You can configure the time interval for switching each image, and set the path of each image (either absolute or relative)Although very simple, it is very practical.

Differences between event. x, event. clientX, and event. offsetX

X: set or obtain the position of the outer boundary of the parent element of the mouse relative to the target event on the x coordinate.ClientX: The x coordinate position of the client region, excluding the scroll bar, that is, the body area.Offsetx:

Javascript is compatible with FireFox!

Untitled Document open open [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]Find document. body. onclick = function (evt ),In IE, this evt does not exist, but in fireFox (it seems like it

Interesting ideas ~~ JS imitation WINXP logout desktop fade-out effect

Since I have seen a lot of people in the past, this kind of imitation XP is not very realistic, and I have come up with an idea in the past few days.... Hey, it's funny.Can you see it ~~ It should be okay ~~ HOHO ..The general idea is that, no

Changes to the select CSS style in HTML

I thought it would be easy to solve the problem in CSS like input. I didn't expect to try it to know that the conventional CSS simply couldn't change the select style. How can I do it in CSS, select is still the default 3D style. So I searched the

Use TextRange to obtain the cursor position in the input box

TextRange is an object used to express text in HTML elements. Although we do not usually use this object, it is provided in IE4.0. However, the call methods provided by TextRange are obscure, so what can we do with it?The traditional use of

Activate js flash for couplet advertisements

Ad. jsCopy codeThe Code is as follows:Var delta = 0.08.Var collection;Function floaters (){This. items = [];This. addItem = function (id, x, y, content){Document. write ('' + content + ' ');Var newItem = {};NewItem. object = document. getElementById

Prototype for beginners. Send a JS Code that accepts URL parameters.

Copy codeThe Code is as follows:

Simplified DOM tutorial

Let's look at a simple document tree.Obviously, the top-level node of the tree is a NodeA node. Next, you can move the node to any point in the tree by specifying the appropriate node. In combination with the following code, you can better

Differences between splice and slice

1. slice Method (Array)Returns an array.ArrayObj. slice (start, [end])ParametersArrayObjRequired. An Array object.StartRequired. The starting element of the part specified in arrayObj is the subscript calculated from scratch.EndOptional. The ending

Total Pages: 5378 1 .... 2512 2513 2514 2515 2516 .... 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.