[Problem resolution]ie the way the pop-up window can be placed at the top level (even if the current focus is not present, such as the IE can be minimized)

Source: Internet
Author: User
If you have used OWA (Exchange Web-side programs) you will know that this feature is quite appealing.
Copy all the code, save as popupwindow.html, run this file in IE, you know! :)
All the code is as follows:
Popupwindow. html
<HTML>
<HEAD>
<TITLE> at the top of the pop-up window </TITLE>
<script language= "JScript" >
Create a pop-up window
var opopup = Window.createpopup ();
Get the body of this pop-up window
var opopupbody = oPopup.document.body;
coordinates to begin displaying (default is the right leg)
Flymove.expand = 0;
flymove.flyy = 0;
Flymove.flyx = 0;
Progressive display of Timers
var g_idflypopup =-1;
The timer that displays the pop-up window
var timeoutflag=-1;
Ways to display pop-up windows
function Richdialog ()
{
Write text and data in a pop-up window
OPopup.document.body.innerHTML = odialog.innerhtml;
OPopupBody.style.fontSize = document.body.currentStyle.fontSize;
Opopupbody.style.backgroundcolor= ' Infobackground ';
opopupbody.style.cursor= "Pointer";
OPopupBody.style.color = "InfoText";
Opopupbody.style.borderwidth= ' 3px ';
opopupbody.style.borderstyle= ' Window-inset ';
Opopupbody.style.bordercolor= ' Activeborder ';
The following code will immediately display the pop-up window
Opopup.show (100, 50, 400, 300);
Flyinit ();
G_idflypopup = Window.setinterval (flymove,10);
}
function Flymove ()
{
Flymove.expand + 2;
Flymove.flyy-= 2;
Opopup.show (Flymove.flyx-flymove.expand, Flymove.flyy, Flymove.expand, Flymove.expand);
var opopupbody = oPopup.document.body;

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.