Javascript: create shortcuts using Javascript. Javascript tutorial
You must set the site as a trusted site.Var fso = new ActiveXObject ("Scripting. FileSystemObject ");Var shell = new ActiveXObject ("WScript. Shell ");Var tagFolder = "c: \ Temp ";If (! Fso. FolderExists (tagFolder )){Fso. CreateFolder (tagFolder );// A
JavaScript: use JavaScript to split strings. Javascript tutorial
The following is a reference clip: String splitting
Function getmulti (oldstr ){
Var newstr = oldstr; // field content
Var I = 0, j = 0, t = 1; // determine whether there are multiple parts
Var foreindex; // record the
JavaScript: JavaScript system function learning, Javascript tutorial
Decodes an encoded URI string into the original string;
3) Example:
var encodeStr = encodeURI( " http://www.amigoxie.com/index.jsp?name=阿蜜果 " );alert( " encodeStr: " + encodeStr);var decodeStr = decodeURI(encodeStr);alert( " decodeStr: " + de
Javascript: Javascript nbsp; two important techniques for operating form fields. Javascript tutorial description:
Tip 1:
Confirm with the client when the form is submitted or reset
Tip 2:
Lists All elements in a form field and their important attributes, including names and values of input and select.
Summary:
You c
JavaScript: JavaScript enables proportional scaling of webpage images. For the Javascript tutorial, refer to some code and write a script for Image Scaling. You can click to zoom in and use the mouse wheel to scale freely. // scale the image proportionally. You can enter a parameter to set the initial size.
Function re
event capture phase and the event bubbling phase. We can use the two methods provided by the "DOM2 level Event" AddEventListener () and RemoveEventListener () to bind or delete an event handler for a particular element:Element.addeventlistener (event, function, Usecapture)Element.removeeventlistener (event, function, Usecapture)Event: Names of events to be processedFunction: Functions of event handlersUsecapture: Boolean value specifies which event stream to use. False takes the event bubbling
JavaScript plugin development tutorial (1): javascript plugin
I. Opening Analysis
Hi everyone! Today, this series of articles mainly talk about how to develop plug-in-type development based on "JavaScript". I think many people are familiar with the word "plug-in,
Some people may be called "components" or "components".
Example of alert pop-up prompt box in the basic JavaScript tutorial, basic tutorial alert
A prompt box is displayed for the alert command.
This section provides several simple examples for beginners to learn JavaScript. The following code is an example of a pop-up prompt box:
Copy codeThe Code is as follows:
Save the a
Use Javascript to read Chinese cookies set in PHP. LieHuo. Net PHP Tutorial PHP program writes some Chinese data in the COOKIE, but cannot be correctly displayed when reading Javascript? I believe many of my friends have met this situation.
Tutorial on PHP of Kangli website building Institute (Bkjia. Com)The PHP progra
JS Tutorial: JavaScript for ... In method and example tutorial
In the order of ... In a statement it is used to loop (repeat) through an array of elements, or through the performance of an object.
ExampleFor in the declaration ...How to use ... An array of elements that circulate in a statement.
Results.
SaabVolvoBMW
J
In the process of creating a webpage, you sometimes need to know the exact position of an element on the webpage. In the following article, we will introduce how Javascript is used to create a webpage, you sometimes need to know the exact location of an element on a webpage.
The following tutorial summarizes the knowledge of Javascript in web page locating.
1.
Javscript: Javascript enables timed closure of ad pages. If the following code is added to the webpage source code in the Javascript tutorial, the window will be automatically closed in 20 seconds! This works well with a small pop-up window! In the Code, "I = 20" indicates that the delay for disabling is 20 seconds, which can be modified at will.
T
JavaScript: similar Windows Shutdown effect, JavaScript tutorial
Basic Principle AnalysisWindows Shutdown Result AnalysisWhen a user in Windows shuts down, the displayed interface only allows the user to choose to shut down, unregister or cancel the action, and the programs on the desktop cannot be used, and the screen is dimmed.In this example, the effect of the
The first article in this series discusses how jQuery develops plug-ins. in this article, we will continue to develop plug-ins. I hope you will like it.
I. opening analysis
Hi everyone! Remember the previous article ------ the beginning of this series (JavaScript plug-in development tutorial 1 ). This article mainly describes how to develop plug-ins in jQuery mode ",
So today we will continue our plug-in d
JavaScript: AJAX basics: Implementation of classes in JavaScript. The Javascript tutorial understands the implementation mechanism of classes.
In JavaScript, you can use the function keyword to define a "class" and how to add members to the class. Variables or methods refer
JavaScript: three members of the JavaScript class in AJAX, public members of the implementation class in the Javascript tutorial
All the class members defined above belong to the category of public members. any instance of this class discloses these attributes and methods.
Private member of the implementation class
Basic JavaScript tutorial Arithmetic Operators
Operator
Operator description
Example
Example
+
Addition
X + Y
If X is an integer of 2, Y is an integer of 5, X + Y is equal to 7If X is the string "text1" and Y is the string "fun ",X + Y equals to "text1fun"
-
Subtraction
X-y
*
Multiplication
X * y
JavaScript plugin development tutorial (2): javascript plugin
I. Opening Analysis
Hi everyone! Remember the previous article ------ the beginning of this series (JavaScript plug-in development tutorial 1 ). This article mainly describes how to develop plug-ins in jQuery mode
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:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.