Nếu bạn không muốn hiệu quả của việc mã jQuery tay của bạn, bạn có thể sử dụng một công cụ tuyệt vời Glimmer được gọi là sản xuất bởi Microsoft cung cấp một cách tiếp cận dựa trên hướng dẫn | CHAPTER 12 JQUERY Additional Effects In addition to the previous effects a number of additional effects can be downloaded fold pulsate puff bounce and explode my personal favorite . For more details on these effects please go to http docs. UI Effects. Glimmer If you don t want to hand-code your jQuery effects you can use a great tool called Glimmer produced by Microsoft that offers a wizard-based approach see Figure 12-4 . Refer to http lab glimmer. Figure 12-4. Glimmer allows you to easily construct jQuery effects Glimmer allows the construction of simple effects such as rotating images drop-down menus and animation. jQuery Tools jQueryPad http .com jquerypad and http can be very useful tools for prototyping and playing with jQuery. 282 CHAPTER 12 JQUERY Chaining Events The real power of jQuery comes from its capability to chain functions together. Imagine that we wanted to fade our div in and out a number of times. This procedure can be easily accomplished with the following code div1 .fadeOut .fadeIn .fadeOut .fadeIn .fadeOut Customizing jQuery You can add your own functions to the jQuery library. For example to create a simple function that will pop up an alert box you can do so with the following code don t use alias in case user overrides it function message alert jQuery says message return this You can then call the new function with the following code . hello .say good bye And there is of course no reason why you couldn t write a new effects function and use it as part of a chain of effects. For more information please refer to http Plugins Authoring. AJAX Methods It is very common for performance optimization to need to retrieve data or code from an external source after a page is loaded. jQuery makes this very easy. Load and Run JavaScript File The following code loads an external JavaScript file called and then executes it .ajax type GET url dataType .