I used javascript to connect to the access database. I just saw a program written by a friend who used javascript to connect to the excel database and wanted to change it to the access database. I found these two articles.
---------------------------
Obtain the parent tag
No event under FF
Use arguments [0]
No srcElement under FF
Target
No parentElement under FF
Use parentNode
The Code is as follows:
Function obj_event_onsomething (e ){Var e = window. event? Window. event: e;Var srcEle = e.
Arguments objects in javascript can be accessed without explicitly specifying the parameter names. For example:
Function hi (){
If (arguments [0] = "andy "){
Return;
}
Alert (arguments [0]);
}
Use arguments [0] to access the first parameter,
Code for Scrolling up and down with the mouse
function scroll (n) {temp = n; document. getElementById ("Out1 "). scrollTop + = temp; if (temp = 0) return; setTimeout ("scroll (temp)", 10 );} script xx xx xx xx xx [Ctrl + A select all
Various browser compatibility problems
About Setting onload event handle using scripts
script document. body. onload = function () {alert ("! ")} Script [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to
One layer gradually increases and expands, with a downward slide Effect
var act; function over () {var h = parseInt (mytd. height); if (h 30) {mytd. height = h-2; clearTimeout (act); act = setTimeout ('out () ', 10 );}} script carefree
Drag and Drop similar to Google and Windows Live
New Document Cobao ........ -x address: http://www.cobao.cn keywords: note: Sina ........ -x address: http://www.sina.com.cn keywords: note:
The differences between event. x, event. clientX, and event. offsetX are as follows. 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
PACKER2.0.2, an open-source tool for JavaScript encryption, is a non-complex coding tool that can be directly recognized by browsers After encoding. Sina is in use.
For example: http://comment4.news.sina.com.cn/comment/cmnt_xml.js href =
JavaScript object-oriented (1) 1. Traditional Prototype-based approach
To be exact, the "class" of distinct Cr into pt cannot be regarded as a real class in a strict sense. There is a relationship between the declared object and the class (estimated:
Break the limitations of website replication and right-click. If you develop a website, you like the content but cannot copy it. You can try the following method:
Paste the following text in the address bar and press Enter. Click OK to show up
JavaScript object-oriented (2) I wrote too much nonsense in the previous article and it was very bad. This time I will talk about inheritance. We learned prototype in the previous section. Now I am going to start with prototype to implement it.
For details about how to use the sort () method in Js, refer. Returns an Array object whose elements have been sorted.
Arrayobj. sort (sortfunction)
Parameters
ArrayObj
Required. Any Array object.
SortFunction
Optional. Is the name of the function
Javascript can also contain files. javascript has powerful functions, but one problem is that it cannot contain other js files. Other non-scripting languages basically have this function, so I have to feel a little sorry. When the problem is getting
Implementation of a JavaScript inheritance Author: Yin weiming
Blog: http://my.donews.com/yinwm/
As I mentioned in the previous article, for JavaScript, a class is a function, and its class methods (that is, static) are all part of this function,
PJBlog modification-the code and method to prohibit copying are in the system homepage file (default. asp) and log files (article. asp) Add the following code at the bottom. both files are in the root directory.
The Code is as follows:
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