Using the div imitation JavaScript modal window

Source: Internet
Author: User
Tags window

Although it has nothing to do with the content of this blog, but write it, I hope to help you
A few days ago in the blog to see someone say modal window in the IE7 inside show Address bar, in fact this is a good thing, and IE modal window is the function of IE, FF, opera and so do not support, I comment on the exact words

Just IE7 enhanced security features, the world is really strange, some people say that the security of IE is not strong, every day to scold Microsoft, but also support FF said what used FF will not be raped, Microsoft enhanced security, and some people say this increase in security is not good, it is difficult to wait
You have to use modal window FF is simply not open, because that is the specific function of IE, FF is not, and the other upstairs said very to add to the trusted on the line, another word you do not angry, is your level is not good, to get the greatest compatibility with Div, and div is the most beautiful, is to write a little bit of trouble.

Since said other people's level is not good, then oneself make a bar, also prove me this paragraph is not White said, these days are doing their own CMS, just use this alternative alert and modal window, this div is can move, nested

Make the following note:
Code reference Sina's news comment, Sina confused the code, in fact, the crack is very simple (it should be said not to be cracked, do not know how to say, it is called crack it)

It's easy to write, not too much to deal with, it's a meaning, if you want to use it, it needs to be modified.

Test IE7 through FF problem (JS error), SINA code FF JS no error, but the movement of Div has a problem, I have no system to learn JS so Sina's code to see is not very understand, theoretically FF can do, have the interest of perfect and I contact it, I would like to make a simple class, Do IE7 and FF compatible, this thing at least before Microsoft's Ajax popularization still can play a lot of role

It's all written in a file.
Http://zergtant.cnblogs.com/Files/zergtant/default.zip

Resources:
JAVASCRIPT+%E5%8F%AF%E7%A7%BB%E5%8A%A8%E7%9A%84%E5%B1%82&HL=ZH-CN ">http://www.google.com/search?q= Javascript+%e5%8f%af%e7%a7%bb%e5%8a%a8%e7%9a%84%e5%b1%82&hl=zh-cn
Http://www.51windows.net/data/?url=/DATA/files/file_666.asp



Related Article

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.