To work, use javascript to make a statistical chart:After that, take a note to share and learn from each other. There are still some problems, which are not perfect yet.Refer to the js statistical charts of Baidu space, central management center,
Implementation of Event Capture In the W3C DOM Level2 event model specification, the event propagation process (from the root node to the target node) in the DOM tree is divided into two stages: Capture and Bubbling ). The following figure
The effect is as follows:This is the menu content. Use ul label to implement the menu:Copy codeThe Code is as follows: menu 1 sub-menu 1 sub-Menu 2 sub-menu 7 sub-menu 3 menu 2 sub-menu 4 sub-menu 5 sub-menu 6 This is the
So I changed it, encapsulated it, and made further optimization, so that the same page can use multiple such effects. The xhtm and css have not changed, if you are interested, you can compare the JavaScript code with the previous Code to make it
Onmouseout finds that it is too sensitive to trigger. when it passes through the text chain in the layer, it triggers the onmousetout event, and the function cannot be properly displayed. After some searches, It is sorted out for your
The mouse prompts appear, more beautiful than the title, can be customized.JS:Copy codeThe Code is as follows:// --------------------------- Tooltip effect start -----------------------------------// Obtain the location of an html ElementFunction
:Demo: [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]Core code:Copy codeThe Code is as follows:Function ChangeRMBToCH (Num){For (I = Num. length-1; I> = 0; I --){Num = Num. replace (",", "") //
First, let's look at the. find () method:There is a page in which the HTML code is;Copy codeThe Code is as follows: Test 1 Test 2 If we use the find () method:Var $ find = $ ("div"). find (". rain ");Alert (LOGIN find.html ());The output is as
However, recreating data on the client is not a small problem, and it is often complicated to process data with javascript. especially for large batches of data with the same structure, such as tables, the processing method is not satisfactory. if
js region selection I am the result: / p> / p> / p> [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
Function SectionCopy codeThe Code is as follows:Copy codeThe Code is as follows: fixed variable definition document lifecycle management set zookeeper configurations zookeeper management zookeeper zookeeper lifecycle
zhou's html there are three layers in total. Next, drag the layer to Magnolia Mag. nolia Mozilla Red there are three layers in the small paper, and there is another one below, drag it up with the drag layer, it is very easy to do local drag
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