Summary of commonly used jQuery plug-ins in website development (1) Prompt plug-in aler.pdf

Source: Internet
Author: User

1. alerw.plug-in Function

This function is used to display friendly prompt boxes Instead of alert, confirm, and prompt in js.

2. Alibaba official address

Http://fabien-d.github.io/alertify.js/
The official website has provided a detailed description of alervice and online display.

3. alervice usage

1. Files used
You must use three files and two css(alertify.core.css, alertify.default.css) to set the style of the prompt box. A js (alerw.min. js or alerw.js) is used to implement the prompt box function.

2. Implement the prompt box code
Alervice is easy to use. The main steps are initialization (initializing alervice)-"binding (binding events)

For example, simple prompt box, confirmation box, and prompt box are implemented.

= Reset = "Confirm" "cancel" 5000 "OK" $ ("alert "). onclick = "prompt box" $ ("confirm "). onclick = "confirmation box", "click confirm" "click Cancel" $ ("prompt "). onclick = "prompt input box", "click OK. The input content is:" + "click Cancel" Default Value"

Display Results (input prompt box ):

4. alervice modify the style

The main idea is to modify two cssfiles (alertify.core.css,alertify.default.css) and overwrite them. For example, add

{:;:;:;:;:;}

The result is displayed after modification:

Demo address: http://www.1100w.com/wp-content/uploads/2013/09/alertify.html

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.