One of the effects of JQuery Show () is always what you need, jqueryshow

Source: Internet
Author: User

One of the effects of JQuery Show () is always what you need, jqueryshow

1. show () and hide () Methods


$ ("Selector"). show () 
Restore the default or set display attribute of an element from display: none
$ ("Selector"). hide () 
Set the display style of the element to none, equal to $ ("selector" ).css ("display", "none ")
(Note: After passing in parameters ,. show () and. the hide () method simultaneously changes the width, height, and transparency attributes of the element. The input parameter controls the explicit/hidden speed, in milliseconds, for example. show (600). You can also set fast, normal, slow, fast to 200 milliseconds, normal to 400 milliseconds, and slow to 600 milliseconds)


2 fadeIn () method and fadeOut () method


$ ("Selector"). fadeIn () 
The control transparency is increased from display: none to full display within the specified time.
$ ("Selector"). fadeOut () 
The control transparency is reduced to display: none within the specified time;


3. slideUp () and slideDown () Methods


$ ("Selector"). slideUp () 
The height of the control element is reduced from bottom to top to display: none within the specified time;
$ ("Selector"). slideDown () 
The height of the control element extends from display: none to the complete height within the specified time.


4. Custom Animation method animate ()


$ ("Selector"). animate (params, speed, callback ); 
Params: A ing containing style attributes and values, for example, {property1: "value1", property2: "value2 ",...}
Speed: The speed parameter. Optional.
Callback: The parameter (that is, the callback function) That is executed when the animation is completed. Optional.


Jquery show () hide () effects Heroes help me

Onbeforeunload is also called when the page is refreshed or closed. Onbeforeunload is called when the server is about to read a new page.

According to your description, What you click should be a pseudo hyperlink in the form of <a href = "javascript: void (0)
You only need
The onunloadfun () method starts with the judgment code, and the Onbeforeunload is triggered by canceling the pseudo hyperlink. (Only IE will be triggered by clicking the pseudo hyperlink, and other browsing will not:

Var targHref = Invalid variable Doc ument. activeElement. href;
If (targHref & targHref. toLowerCase (). indexOf ("javascript:") = 0)
{
Return false;
}

For the jquery show () method, use js to write a div layer, which is filled with an input. When the show () method is called,

Try with latency
Show (2000, function (){
SetTimeout (function () {$ (id). focus ();}, 100 );
});
100 cannot be changed.

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.