You may have encountered a situation in your project before. You can click the same html component to execute different methods or functions. So I wrote the following method myself, which is stupid, but still executable.
The core code is as
I saw a good article about css attributes called by js just now. (pai_^) is good! Forget it, and summarize it to your blog! (* ^__ ^ *) Xi ......
1. for css attributes without hyphens, you can directly use style. attribute name.
For example, obj.
Author: Tian xiangbing
This is not a series of tutorials, but also a series of tutorials. It is a personal experience for beginners. I hope to give them a learning direction. There are too many basic tutorials on jquery on the Internet, this is
Function public_GetParentByTagName (element, tagName)
{
Var parent = element. parentNode;
Var upperTagName = tagName. toUpperCase ();
// If this element is not the desired tag, continue to trace
While (parent & (parent. tagName. toUpperCase ()! =
Today, I am so bored that I have encountered a problem when a friend in the group used canvas to draw curve images. Of course, I can't help but look at the problem as a very enthusiastic friend, after helping the friend solve the problem, he found
Hover the mouse over the image:
Onmouseover = "mouseOver ()" onmouseout = "mouseOut ()">
Js display Weather Forecast:
Js uses focus to select websites:
Baidu
Google
Youku
potatoes
From haitaoDoit
Main Code:
Html section:
Agree
Disagree
Js part (note the introduction of jquery-1.4.2.js files ):
// Processing with or without consent
$ ("# "). attr ("disabled", "disabled ");
$ ("Input [name = 'rblsure ']"). eq (0). click
/*
* Simulate a queue
*/
Var Qu = {};
// Constructor
Qu. Queue = function (len ){
This. capacity = len; // maximum queue capacity
This. list = new Array (); // queue data
};
// Enter the team
Qu. Queue. prototype. enqueue = function (data
HTML4.01 defines five attributes for the script Tag:
Charset is optional. Specifies the character set of the src introduced code. This value is ignored by most browsers.Optional. Delayed script execution is equivalent to placing the script tag at
Concatenation of strings in javaScript:Similar to other languages, strings of ECMAScript are immutable, that is, their values cannot be changed. Consider the following code:Var str = "hello ";Str + = "world ";In fact, the steps behind the scenes are
1. window. print mode:Jsp page printing button:Js:Function print (){Window. print ();In the style, set the hide button to print:2. WebBrowser Control ModeWebBrowser is a browser control built in IE, which does not need to be downloaded by users.I.
This article will serve as a record of future js knowledge.1. The datepicker plug-in is used during development and the following two methods are used:[Html]$ ('# Date'). datePicker ({ClickInput: true,StartDate: new Date (1900,1, 1). asString
As shown in the following figure, when the content in the "current status" column is 1, it is changed to "exception" and displayed in red. { Header: 'Current status ',Align: 'center ',DataIndex: 'iswork ',Sortable: true,// MenuDisabled: true,Width:
JavaScript code can be executed only through HTML/XHTML documents. There are two ways to do this.1. Place the JavaScript code between the 2. Another better way is to save JavaScript code as an independent file with the extension. js. A typical
Basic Introduction:ShowModalDialog () (IE 4 + supported)ShowModelessDialog () (IE 5 + supported)The window. showModalDialog () method is used to create a modal dialog box that displays HTML content.The window. showModelessDialog () method is used to
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.