The skin exchanging effect of the Web software UI is realized by realizing the mixing of the background picture and the label bottom color through utilizing the transparency; and the difficulty of Web software development and maintenance is reduced by using the method.
The invention discloses a skin exchanging method for a Web software UI (User Interface). The method comprises the following steps of: 1) manufacturing a pattern UI and cutting a map; 2) setting the transparency of the map and storing as a PNG (Portable Network Graphic) format type picture; 3) adopting an HTML (Hypertext Markup Language) container label to apply the PNG format type picture on the UI; and 4) according to a color selected by a user, dynamically applying the color to a CSS (Cascading Style Sheet) file by the UI; and generating skins with different color tones by the UI. By using mixed color tones of a background picture and a label bottom color, the skin exchanging effect of the Web software UI is realized. According to the method, one label only needs one background picture and the skin exchanging effect is finally realized by realizing the mixing of the background picture and the label bottom color through utilizing the transparency; and the difficulty of Web software development and maintenance is reduced by using the method.