Effect as shown:
The code is as follows:
Suspension window example try scrolling this window. This is a suspension window
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Because for browsers that support DOM, adding events is using the AddEventListener () method to add events to the Object!
For MSIE, the attachevent () is used to add events to the Object! This allows us to use a container to load the two different
1. Remain non-invasiveMy HTML tags don't want to know your JavaScript code.2. Modification and extension of object.prototype! is strictly prohibitedThis is important and requires a rule that is entirely against it. Objects are the basic building
A Cell object in the Table.rows collection
cell.innerhtml = "123"
In the innerHTML of the table is 123
cell.innerhtml = "123"
In the innerHTML of the table is 123
So set the cell.innerhtml without adding
Besides, I didn't see the book I
Since there is no such function in JavaScript, how do we implement it? Below I give this function, you can put: Add to your ASP page;
? Include ("Formatnumber.js")?> Add to the PHP page;
to join the JSP page.
This formatnumber function is as
1, Cross Highlight
2, click on the upper left corner of "1;1", "2;2" to observe the changes in all cell values
3, click on the upper left corner of the "3,3", "4,4" to observe the changes in all cell fonts
4, after clicking the unit, the unit color
First download the JavaScript package:Http://thecodecentral.com/wp-content/uploads/2007/08/yuilightboxwdep.zipModify the following path based on the downloaded JavaScript packageAdd a preview pictureUsage: Note: Keep the picture ID and data source
This article illustrates a JavaScript simple implementation that follows the scroll bar's return top button effect. Share to everyone for your reference, specific as follows:
The more excellent one is more than a screen height to show, follow the
javascript Grammar Learning function f () {var str= ' 1,2,3,4 ';
var str1= ' 1,4,5,6 ';
str = ', ' + str + ', '; for (Var i=0;i
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
New Document &L t;/title> + click Show Love worry-free, my idol is the fruit of love worry-free, my idol is the fruit + click Show ;/div> Love worry-free, fruit I adore you love worry, fruit I adore you Love worry-free, daily
Copy Code code as follows:
javascript Print Page
Printing
"WebBrowser" width= "height=" classid= "CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
Set Title
here is the content to be printed
hello
hello
hello
Use JavaScript to move the DIV layer-javascript drag layer:
Program function: Use JavaScript development in the interface of arbitrary drag the following HTML code in the div layer.
JavaScript Move div layer-javascript drag layer code-
HTML code:
Suppose the main page has a Div, which places an IFRAME
Copy Code code as follows:
3 menu links, loading 1.html, 2.html, 3.html three pages in IFrame respectively.
3 sub pages loaded on their own page window.onload
Attachevent Method Button onclick
AddEventListener Method Button click
The rationale for the use of the two is that it is not the same as the priority of execution, as the following examples explain:
Attachevent method, attaching additional handling
First
Second
a third
Fourth
No matter which div we click, feedback is the content of the 4th Div. The reason is that each div click event with the test method formed a closure, and each div click events share the same closure scope chain.
The 1th method:
IE6:
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
IE7:
[Ctrl + A All SELECT Note: If the need to introduce external JS need to
Lodash was initially a fork of the Underscore.js library because it disagreed with other contributors (underscore.js). The original goal of John-david Dalton is to provide more "consistent cross-browser behavior ... and improve performance". Since
The data types of JavaScript are divided into six kinds, respectively,,,,,, null undefined boolean string number object . objectis a reference type, and the other five are basic types or primitive types.
For example Number() , or parseInt() ,
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