(Several new demos recently) (used by aero windows) will be useful in subsequent updates.

Source: Internet
Author: User

Example

Http://www.baidupcs.com/file/3656787519c88489167e7e1caa5f7801? FID = 2467423588-250528-2508150713 & time
= 1362982485 & Sign = FDTA-DCb740ccc5511e5e8fedcff06b081203-J6HlqV0zl3 % 2f2g84onzkqkwjfw2g % 3d & expires = 1 h

Let's take a look at the parameters and JS files in them. I have already modified and used them in projects.

$ ('# Firefoxapp'). aerowindow ({// load when the page is opened directly
Windowtitle: 'Firefox ', // What is displayed in the upper-left corner of the pop-up box
Windowpositiontop: 50, // locate
Windowpositionleft: 900,
Required wwidth: 400, // width and height
Windowheight: 200,
Windowanimation: 'easeoutcubic ', // two modes: easeoutbounce
Windowresizable: True,
Windowdraggable: True,
Windowminimize: false, // can be minimized?
Windowmaximize: false, // whether it can be maximized
Windowclosable: True // whether it can be disabled
});

$ ('# Firefoxicon'). Click (function () {// bind a click event to a control, as shown in Web. qq
$ ('# Firefoxapp'). aerowindow ({
Windowtitle: 'Firefox ',
Windowpositiontop: 'center ',
Windowpositionleft: 'center ',
Required wwidth: 700,
Windowheight: 500,
Windowanimation: 'easeoutcubic'
});
});

Something in jquery-AeroWindow.js.

If (O. windowminimize ){
If (O. windowmaximize | O. windowclosable ){
VaR winminbtn = '<a href = "#" Title = "minimal" class = "Win-Min-BTN"> </a> <Div class = "Win-BTN-spacer "> </div> ';
} Else {
VaR winminbtn = '<a href = "#" Title = "minimal" class = "Win-Min-BTN"> </a> ';
}
} Else {
VaR winminbtn = '';
}
// BTN ---
If (O. windowmaximize ){
If (O. windowclosable ){
VaR winmaxbtn = '<Div class = "winbtnset winmax"> <a href = "#" Title = "maximized" class = "Win-max-BTN"> </a> <div class = "Win-BTN-spacer"> </div> ';
VaR winregbtn = '<Div class = "winbtnset winreg"> <a href = "#" Title = "maximized" class = "Win-reg-BTN"> </a> <div class = "Win-BTN-spacer"> </div> ';
} Else {
VaR winmaxbtn = '<Div class = "winbtnset winmax"> <a href = "#" Title = "maximized" class = "Win-max-BTN"> </a> </div> ';
VaR winregbtn = '<Div class = "winbtnset winreg"> <a href = "#" Title = "maximized" class = "Win-reg-BTN"> </a> </div> ';
}
} Else {
VaR winmaxbtn = '';
VaR winregbtn = '';
}

// This partCodeThe code in the pop-up box can be freely modified.

 

Maximizewindow () event Maximization

Minimizewindow () Minimization event

Focuswindow (window) Click Event

Others are not modified.

You can add the function that can be scaled up or down to minimize the pop-up box beautification like Web. QQ. Then you can use www.gnetcloud.com.

 

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.