Motivation: I first thought of making a binary tree because I needed to make a company structure chart. The previous approach was to draw a picture directly using graphics software. It looks great, but you need to paint a new one every time there are changes. On the other hand, the display and layout of the lines on the webpage are quite limited. The dynamic generated data is very difficult to layout and positioning, and it is also unsatisfactory in beauty. After making various attempts, I decided to use XML+XSL as data operations; use VML to beautify the lines and use JavaScript to locate the object. Material: The structure of the XML volume has 2 files: Flow2.xml and Flow2.xsl Effect: Browse here Explanation: Sort tree idea (1) & lt; html xmlns: v = "urn: schemas-microsoft-COM: vml" & gt "& gt ; & lt; style & gt; v \:*{behavior: url (#default#vml)} & n
## 1. xml's actual combat number (5): Structural tree map
This profile: I first thought of making a binary tree because I needed a corporate structure. The previous approach was to draw a picture directly using graphics software. It looks great, but you need to paint a new one every time there are changes. On the other hand, the display and layout of the lines on the webpage are quite limited. Typesetting and positioning based on dynamically generated data are very difficult, and the aesthetics are not satisfactory. After making various attempts, I decided to use XML+XSL for data operations; use VML to beautify lines, and use JAVASCRIPT to position objects.
2. XML Volume Practical Tips (4): Menu Linkage
: Now we are doing a small example of applying XML in IE: solve the problem of connectivity of double -drop pull menu. The most common possibility of everyone is the example of changing the city options after selecting the province, so let's try it to complete it with XML.
# 3. XML volume actual combat number (3): dynamic tabs
#: In order to facilitate users to view a large number of data, we will use dynamic paging, so the paging function is the most common and most commonly used functional module we have seen on the website. In the past, information paging was connected to the database, and every click required the support of the background database. This not only increases the burden on the server, but also seriously affects the user's browsing speed.
4. XML Volume Practical Tips (2): Dynamic Query
Introduction: The query function is the most common and commonly used functional module we have seen on the website. In the past, information queries were connected to the database, and every click required the support of the backend database. However, in many cases, users often only operate on a certain part of the data, which not only increases the burden on the server, but also seriously affects the user's browsing speed.
5. Practical Tips for XML Volume (1): Dynamic Sorting
Introduction: The sorting function makes the data on our page appear more humane, which is a very common functional effect we have seen on websites. In the past, automatic sorting was done with a lot of script code, which was difficult for ordinary enthusiasts. However, it is much simpler to deal with it using XML. Make your page more gorgeous, haha, are you excited too?
The above is the detailed content of Recommended 5 articles about actual combat bags. For more information, please follow other related articles on the PHP Chinese website!