My WEBDESIGN Road - Improvement [2]

zhaozj2021-02-16  52

// I have a little bit more yesterday. . . Shy * _ * This article is still based on providing learning ideas, there is not too difficult content, putting the key points, hoping to help everyone. As mentioned earlier, everyone just learn web design, I always like to add a lot of "special effects", such as making a layer, let it fly, or a piece of flower petals drifting down. Or typing effect, flip image (swap image) :) In fact, only truly "realm", it can really take these special effects just right. Just like the sword method makes dazzling, it is not meaningful. It is necessary to use a good script effect to be used, at least for web page color, composition has a certain experience (will mention later). Strengthen the visual impact, enhance the artistic effect of the web page, which is an application of the client script. More important applications are combined with the server script. These effects are implemented with the client script. What is a client script? It is popular to embed the program in the HTML web page, which is running on the client's browser. Note that it is not the same as the previous HTML and CSS. HTML and CSS are identified language, and the client script is a real program. The currently used client script is both VBScript and JavaScript. VBScript is a subset of Visual Basic, which is designed to work in a browser, which does not include some features other than the script, such as file access and printing, etc. If you want to use VBScript in the browser script, this browser must be IE, other popular browsers may not support VBScript. Almost all browsers that allow scripts to write scripts support JavaScript. So usually we all choose JavaScript because we usually cannot control access to the webpage all use IE. The difference between VBS and JS is not much here. The following is the following learning from JS as an example. Like explaining CSS, it is not a tutorial, just got out where you need a key understanding and master. First, we must understand that JavaScript is a scripting language based on object (Object) and event driven. It is an interpretative programming language that does not need to be compiled before executing to the client, but is executed by the character code of the text format to the client. After the above knowledge is led, it will begin to actually write some small procedures to deepen understanding. Of course, you must first understand how to embed JavaScript in HTML. That is: JavaScript code is described by