JS + Div to Implement Message prompts

Source: Internet
Author: User

When I saw a lot of beautiful Div prompts in NetEase mail, I used it as an example.
The methods include:

MessageBox: function (_ width, _ height, _ title, _ message)

Alertbox: function (_ title, _ message)

Confirmbox: function (_ title, _ message)

Some prototype. js methods are used. because it is the first time to write JavaScript classesCodeIt is not like writing JavaScript at all.

It's ugly to write. If you are interested, you can fix it for me.

Because I am relatively lazy, I always want to write some "omnipotent" methods to adapt to different applications in the future, but it is always hard to write, so I will use it here.

I still want to add the Ajax update module. I feel that it may be about the same as ajaxtemplate, so I will put it down first. I will try it later!

Download compressed package

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.