Jquery.gantt is an open source JS library based on the jquery library's extensible functionality for Gantt Chart effects. It can either be graphically arranged or show the distribution of data.I on the original basis, modified some of the code, more than the original function, the main improvement is:1, fixed "a certain piece of data is empty when the original code JS
First, the realization of theoretical basis(1) First Use Pagestate this object to record the current page options, according to different options to switch data display(2) Using time function, randomly generate test data(3) Use innerHTML to add rendered content charts to the page in real time(4) using random numbers to generate random colors to the bar chart(5) Use the Title property to implement a cue box
1, in our development program, often used to generate some reports, such as pie chart, bar chart, line chart and so on. Not much to say, directly on the encapsulated code, as shown in the following echarts.jsThe following code is encapsulated in the Echarts.js file/** * Created by Administrator on 2015/8/7.*/varCharec;
"). InnerHTML = document.getElementById ("List1"). InnerHTML;}:YearsMonthDay fillyear (); fillmonth (); fillday (); Function Fillyear () { var sj = new Date (); var Nian = Sj.getfullyear (); var s = ""; for (Var i=nian-5;i { if (I==nian) { S + = "} Else { S + = " } } document.getElementById ("year"). InnerHTML = s; } Function Fillmonth () { var sj = new Date (); var Yue = sj.getmonth () +1; var s = ""; for (Var i=1;i { if (I==yue) { S + = "} Else { S
This article illustrates the method of realizing the progress bar of JS. Share to everyone for your reference. The implementation methods are as follows:
1.setTimeout and Cleartimeout
Effect Chart:
2.setInterval and Clearinterval
Effect Chart:
3.setTimeout and SetInterval Difference
SetTimeout
This article introduces the implementation of JavaScript based on the page Jump progress bar, shared for everyone to refer to, the specific content as follows
Effect Chart:
Specific code:
Code two, also very good, the operation effect chart is as follows
Code sharing:
Code directly copy and paste to run, we can test.
The above is for eve
Step-by-Step learning to make navigation bar, the end of the article to do a comprehensive page, to share to everyone a cool navigation bar for everyone's reference, the specific contents are as follows
1. The navigation bar highlighted on the current page
First is the HTML code, very simple, ul+li implementation menu
Basic effect:
Next set the
To achieve a table with a scroll bar, positioning to a TR, in fact, is very simple, only a few lines of JS code can be completed, the specific contents are as follows
JS Code
Html
Effect Chart:
Although a few lines of code, but to thoroughly understand. To be familiar with the use of animate,
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.