Requirement: when designing a web page, a window is sometimes suspended on one side of the page and floating as the browser scrolls.
Code:HTML code floating page
JS Code/* Session Panel suspension */Window. onscroll = function (){VaR DIV =
Original: http://www.cssrain.cn /? P = 305
(1) gettime (new date. gettime method)
Returns the number of milliseconds of the specified date object since midnight, January 1, January 1, 1970. This method is used to compare two or more date objects.
A summary of the methods used to select a row in the gridview using JavaScript (select row of gridview by JavaScript) was published a few days ago)
Some friends reported that it is not applicable to the DataGrid. Indeed, if you want to add
Can JavaScript access the client's SQL database? Yes! Really!
Requirements: SQL Server2000 (not tested in other versions), and WMI extensions must be installed in the database (wmi SQL server administration provider, which can be found in the "
Function Join (delimiter): concatenates all elements in the array into strings using delimiter.
Concat (array1, array2,...): merges arrays without affecting the original array, but returns the New merged array.
Pop (): delete and return the last
1. You can dynamically add object attributes and delete object attributes.
II. The most common way to define objects
Iii. Factory Mode
VaRObj1 = Createobject ();VaRObj2 = Createobject ();Obj1.get ();
Constructor with parameters:
I. OverviewStrings are almost everywhere in Javascript. When you process user input data and read or set DOM object attributes, there are more strings when operating cookies .... The core part of JavaScript provides a set of attributes and methods
From a few years ago (more than five years) until now, I have read the setTimeout and setinterval functions in many documents on JavaScript, they always think that their functions are completely the same-that is, how long it takes to execute
Convert JavaScript strings to numbers
Converts a string to a number.ParseintFunction.
Parseint (string): The function is parsed from the string and returns an integer.
Example: parseint ('20140901'): returns 123 (INT );
Parseint ('1234xxx'): 1234 (
GruntIs a task-basedJavascriptThe project command line build tool runs on the node. js platform. Grunt can quickly create projects from templates, merge, compress and validate CSS & JS files, run unit tests, and start static servers.
Install
Javascript calls functions in ActiveX Controls
The key to this interaction is to add external methods to the interface class. The procedure is as follows:
1. Create an MFC ActiveX project in. net
2. in the class view, you can see a "project name +
Connection: http://www.cnitblog.com/CoffeeCat/archive/2008/02/25/40138.html
Javascript itself does not support object-oriented features. It does not have an access control operator and does not define the class keyword. It does not support inherited
Javascript web page full screen and prohibit all webpage buttons (domestic version)
Yang Yong, bjash@126.com
The following code is sourced from network collection. Here, we only modify and integrate some errors,
This code is suitable for making
Introduction
Do you know that JavaScript is actually a functional programming language? This guide will teach you how to use the functional features of JavaScript.
Requirements:You should have a basic understanding of JavaScript and DOM.
The purpose
Original article: http://www.2ality.com/2012/01/object-plus-object.html
Recently, Gary Bernhardt pointed out an interesting JavaScript quirk in a short speech video "Wat": unexpected results can be obtained when an object and an array are mixed.
JavaScript has always been a mysterious thing for me, especially in error handling. Writing JavaScript before Firefox came out is really a headache. If the program runs successfully, I had to carefully check the program and use Alert repeatedly to
1. Standard Method
Example: ('HTTP: // www.deepteach.com ', '500px', '400px ', 'no') "> click
2. It should be noted that Firefox does not support this function. The syntax it supports is
Window. open('Openwin.html ', 'newwin ','Modal = yes, Width =
I told you how to move people in the first two lectures. Today, let's take a look at how to implement the situational dialogue similar to the legend of the Three Kingdoms. The specific link is shown below.
Javascript game development-Legend of the
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