Jquery + jBox imitation QQ space DIV window

Source: Internet
Author: User

QQ alumni DIV simulation window:
 
Recently, a student information platform is required. It is estimated that it will become my graduation project. Like QQ alumni, I began a series of imitation.

Since ajax is essential to improve user experience, it is also essential to simulate the div window. This time I will modify the jBox source code.
Js Code
JBox. open ('jboxid2', 'inline', '<p> if you have any problems when using the System <p>', 'feedback ', 'width = 300, height = 60, center = true, draggable = true, model = true ');
 
Demo File
 
 
 
DIV window of the QQ space:
The DIV window of the QQ space looks good, but it is a pity that the source code is not easy, so you have to modify the jBox code.
As follows:


So how to call it.
Iframe is used to embed another page into the div window.
Js Code
JBox. open ('iframe-jboxid', 'iframe', 'login. aspx ', 'user logon', 'width = 400, height = 250, center = true, draggable = true, model = true ');
 
Another method is to first write code on the page that will be displayed in the div window, such:
Js Code
<Div id = "login-table" style = "display: none;"> test </div>
Next we can easily call it.
 
Js Code
$ ('# Login-table'). openjBox ('width = 400, height = 250, center = true, draggable = true, model = true', 'user log ');

Author "A +"
 

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.