Easy Ui + Jquery pop-up window

Source: Internet
Author: User

The easy Ui has a variety of pop-up windows

I'm just going to come up with a feeling that I realized is handy.

The easy UI JS referenced first

<script type= "Text/javascript" src= ". /js/jquery-1.8.2.min.js "></script><script type=" Text/javascript "src=". /js/easyui/jquery.easyui.min.js "></script>
As well as his style. css files are also referenced

Now, let's play the window and define a div.

<div id= "Win" style= "Display:none;" > Pop-up window content </div>
It is important to note that the style of div is to be hidden

function Openwindow (id,titlename,vwidth,vheight) {     $ (' # ' +id). Window ({                width:vwidth,                height:vheight,                modal:true,    title:titlename,    collapsible:false,    minimizable:false,//min    maximizable:false ,//Maximize    Resizable:false    });      }
This is our JS pop-up window method.

ID is the ID of your div.

TitleName is what you see on the top of the window, such as New user modification user

Vwidth and Vheight are the size of your pop-up window.

Let's start by looking at JS inside how to call

First, we're going to display=block the div style when we call.

document.getElementById ("Win"). style.display= "Block";    Openwindow (' Win ', ' Modify department ', 300,340);
Also close the window is very simple

$ (' #win '). Window (' close ');
All right, there's a lot of properties in the pop-up window, and I'm not going to show you how to find the easy UI on the official web.







Easy Ui + Jquery pop-up window

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.