I'll write a few for you to see
One, click on the Reference method
Copy Code code as follows:
1
2
3
4
111111
222222
333333
444444
Let me explain.
var list =
If this DOM element has no style, it is not operational. 2. We can also write DOM elements directly into HTML with JS dynamically.
We'll talk about these two applications today in this chapter.
(i) Operation of existing DOM elements in HTML.
As I
General Introduction
Learn the flavor and use native JavaScript to implement some of the features in jquery
Define your own library of functions Lquery
The implementation of the $ () selector
jquery is object-oriented, so write your own
Recently confused with JavaScript closures and inheritance, write a small thing to find the feeling.
js+css Simulate Select Drop-down box, select form Effect
A Drop-down box that is implemented using the SELECT syntax in a Web page is common,
PNG TransparentAlphaImageLoader
Filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (Enabled=benabled,sizingmethod=ssize,src=surl)
enabled: Options available. A Boolean value (Boolean). Sets or retrieves whether the filter is active. true:
OK, no more nonsense, implement a JavaScript timer bar
Slightly more functional than the AS3 timer class.
Timer2.src.js
Copy Code code as follows:
/**
* Timer Model
*
* @author Rainsilence
* @version 2.0
*/
(function () {
/**
*
Copy Code code as follows:
Dateobj is a Date object, days indicate to this date add how many day, for example 4,5 (days)
function DateAdd (dateobj,days) {
var tempdate = dateobj.valueof ();
Tempdate = tempdate + days * 24 * 60 * 60 * 1
if (document.form1.csrq.value== "") {
Alert ("Please fill in the date of birth!");
Document.form1.csrq.focus ();
return false;
}
if (document.form1.csrq.value== "") {
Alert ("Please fill in the date of birth!");
Document.form1.csrq.focus ();
return
Instructions for use:
The program is simpler, there are instructions in the code, here to say how to use.
The first is to instantiate a calendar and set the parameters.
Parameter description:
Year: Years to display
Month: The Month to
demo 1. Picture and zoom in using different pictures (size picture to proportional phase The same) can also specify the magnification (relative to the small picture calculation) new imagezoom ("Img1", {//mul:6,//Specify the magnification
1. The HTML code for the page is as follows:
Argentina
Armenia
Australia
Austria
bosnia and Herzegovina
Bangladesh
Belarus
Belgium
Bulgaria
Bolivia
Botswana
Brazil
Bulgaria
Canada
Chile
China
Colombia
costa rica
Croatia
Cuba
czech
The Rotation (function remx ()) is recorded by updating the transformation matrix.
Using the matrix to calculate the rotation of the cube vertex coordinates,
The space coordinates of each vertex are converted into planar coordinates (function p2d ())
Can you use JavaScript to write a counter for me? The one with the text, I want to use it in ASP? Please ...
I have written one, is not with the text, who can help me to make up for it?
Application.Lock ();
Application ("Counter") = parseint
Simply put, the identifier naming rules are as follows:
The first character can be any Unicode letter, and a dollar sign ($) and an underscore (_).
The second and subsequent characters can also be used as numbers.
These are all valid identifiers.
IndexOf () method
indexOf() method returns the position of the first occurrence of a specified string value in a string.
Note: indexOf() methods are sensitive to case sensitivity!
Note: If the string value to retrieve does not appear, the method
1. Stringobject.charat ()
Function: Returns the subscript of a string
var str= "This is a string of strings";
Console.log (Str.charat (0))//This
2. Stringobject.charcodeat ()
Function: Method to return the Unicode encoding of the
There are a lot of objects in JavaScript, and there are a few more explanations for what you feel.
Learn some books on the web and read JavaScript.
If you want this manual can leave a message, see I will send you. Well, here's a summary of my
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.