Force pop-up Ads page + automatically minimize code

Source: Internet
Author: User
Advertising | page

This window code, the effect is very good, but a bit complicated! Please look carefully!
There are three pages involved:
Window page: 1.htm to place the Bullet Window code page
Middle page: 2.htm Intermediate over page
Pop-up page: 3.htm pop-up page

In the 1.htm put the code as follows: mainly through the dialog box forced pop-up 2.htm, size for 0,0

CODE:
<script language= "JavaScript" >
Focusid=settimeout ("focus (); Window.showmodelessdialog" (' 2.htm ', ', ', ' scroll:1;status:1;help:1;toolbar=1;resizable : 1;dialogwidth:0px;dialogheight:0px ') ", 3000)
</script>


Place the code in the 2.htm as follows: Automatically closes the dialog page 2.htm, while the window is 3.htm


CODE:
<script language= "JavaScript" >
<!--
function OpenWindow2 (url,name,features) {//v2.0
window.open (url,name,features);}
OpenWindow2 (' 3.htm ', ' Pop ', ' resizable,height=600,width=1024,toolbar,menubar,scrollbars,location,left=0,top=0 ');
-->
SetTimeout (' Window.close (); ', 0);
</script>

Place code in 3.htm: Automatically minimize after eject

CODE:
Add in the body tag: <body >
The following code joins the <body></body> area
<object id= "min" type= "Application/x-oleobject" classid= "Clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" >
<param name= "Command" value= "Minimize" >
</object> <object id= "Max" type= "Application/x-oleobject" classid= "CLSID: Adb880a6-d8ff-11cf-9377-00aa003b7a11 ">
<param name= "Command" value= "Maximize" >
</object>



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.