Experience: http://keleyi.com/keleyi/phtml/jquery/9.htm
Complete code:
JQuery simple implementation of the mask layer-ke leyi display mask layer, click the top right corner to close <a href = "http://keleyi.com/a/bjac/jp71q5jt.htm" target = "_ blank"> http://keleyi.com/a/bjac/jp71q5jt.htm </a> </ke leyi keleyi.comkeleyikeleyi.com ke lei.com yi ke leyi returned to the top of the Ajquery Original article keleyi.com complete code line text intermittent up scroll jQuery UI modification title bubble jquery clear textarea and other input boxes jquery turn off the light effects can change the size of the DIV layer jQuery Javascript CMS
Two jquery methods are used:
1. show (): If the selected elements are hidden, these elements are displayed.
Syntax
$ (Selector). show (speed, callback)
Speed
Optional. Specifies the speed at which elements are hidden to completely visible. The default value is "0 ".
Possible values:
Millisecond (e.g. 1500)
"Slow"
"Normal"
"Fast"
When you set the speed, the height, width, margin, padding, and transparency of an element gradually change from hidden to completely visible.
Callback
Optional. The function to be executed after the show function is executed.
To learn more about callback, visit our jQuery Callback chapter (http://keleyi.com/a/bjac/5uxhekpa.htm ).
This parameter cannot be set unless the speed parameter is set.
Tip: If the element is completely visible, the effect will not change unless the callback function is specified.
Note: This effect applies to elements hidden by jQuery, or elements declared with display: none in CSS (but not visibility: hidden ).
Ii. hide (): If the selected element has been displayed, this element is hidden.
Syntax
$ (Selector). hide (speed, callback)
Speed
Optional. Specifies the speed at which elements are visible to hide. The default value is "0 ".
Possible values:
Millisecond (e.g. 1500)
"Slow"
"Normal"
"Fast"
When you set the speed, the height, width, margin, padding, and transparency of an element gradually change from visible to hidden.
Callback
Optional. The function to be executed after the hide function is executed.
To learn more about callback, visit our jQuery Callback chapter (http://keleyi.com/a/bjac/5uxhekpa.htm ).
This parameter cannot be set unless the speed parameter is set.
Tip: If the element is completely visible, the effect will not change unless the callback function is specified.
This article: http://www.cnblogs.com/jihua/p/zhezhaoceng.html
Original article: http://keleyi.com/a/bjac/jp71q5jt.htm