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