Although jquery supports the css selector, some css rules can be placed in js. js is more flexible than css in any case. But js modifies the stlye of dom htmlelement, which is an operation rather than a rule. When we need a rule, we cannot perform
One ideal method for building tree controls is to use simple tag combinations such as ul and li, but if you want to implement something more complex, such as node editable, drag-and-change style, I think ExtJS is the best choice.
1.
ExtJS TreePanels
This code is used to open a div by clicking a button and clicking the mouse in the blank area of the page to hide this div
Adsfsdf
Dfdfdfsdf
Adsfsdf
Dfdfdf
Dfdfdfdf
Adsfsdf
Dfdfdf
Dfdfdfdf
Script
Var
Through actual operations, the author found that Javascript code can be used for simple implementation: For images larger than 100X100, it is reduced to 100X100. If the image size is smaller than this, the original image size is kept. Recently, due
Non-IE browser "userdata" SOLUTION
GlobalStorage
This is also proposed in html5. After the browser is closed, the information stored in globalStorage can still be retained, and the storage capacity is much larger than that of userdata in IE. The
Sometimes you need to use the following knowledge when using multiple characters. 1. Put the definition of the number of cycles in the external body of the Loop: It seems that all languages are the same, and the effect on more than 100 elements is
Use a browser internal converter to implement conversion by dynamically creating a container tag element. Method 1:
Use a browser internal converter to implement conversion by dynamically creating a container label element, such as DIV, and setting
During online listening to songs a few days ago, I encountered the problem of obtaining the stream play address and LRC File Content Based on the song name. It took me a few hours to sort out the interface for everyone tonight, they are
Several common JavaScript string processing functions: split (), join (), substring (), and indexOf ()
Function: split ()
Function: uses a specified separator to split a string and store it in an array.
Example:
Str = "jpg | bmp | gif | ico |
When the browser is closed through javascript, the system's default prompt box is displayed, prompting you whether to close the browser. This can be solved through javascript, but IE6, the solution for IE7 is different. Please refer to the following
When writing a JavaScript script, to create a class, if the framework is not used, we usually use prototype to add a public method to the class to be created.
The Code is as follows:
// Code from jb51.netFunction Person (name ){This. Name =
Javascriptautoscroroller automatically scrolls the class code. For more information about the learning class, see.
The Code is as follows:
/** Copyright (C) 2007-2009 skylark* Email: aohailin@gmail.com* Version: 2.1* Original program, reprinted,
What is the scrollTop attribute? In some cases, the height of "content in the element" exceeds the height of "element itself". In the following example, the height of the outer element is 200px, the height of the inner element is 300px. Obviously,
Because IE has extended many private DOM and CSS, many web page developers develop according to IE, which leads to many non-standard Web pages, as a result, the current browser browsing the same web page has different effects.
I. Javascript
1. The
This note is just a handy note for me to learn JQuery. I have made some preparations and hope it will be of reference value to new users. 1. attribute: Set a calculated attribute value for all matching elements.
// Add the class = "btn" attribute
Recently, when I was writing a javascript code compression tool, I felt the strength of JS and it also gave me a headache for a while (who called me a JS rookie ). As we all know, a javascript code ended with a semicolon and ended with a carriage
Recently, I have read a lot of Javascript closures (closure) related materials on the Internet, most of which are very academic and professional. For beginners, don't understand closures, and even the text descriptions are hard to understand. The
Javascript splits the string into arrays based on specified characters and uses the split () method.
Example:
New Document function strToArray (str) {var arr = str. split (";"); for (I = 0; I ");}} script [Ctrl + A select all Note: If
When you create a website yesterday, you need to enable the input in the drop-down box. In terms of function, when you enter a value in the text box, after reading data from the back, the drop-down menu is displayed, so we tried to use input +
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