JQuery pop-up to close the Mask Layer

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.