Use the pop-up window code generator and various pop-up window floating advertisement Codes

Source: Internet
Author: User

Http://tool.admin5.com/tools/OpenWindows.html pop-up Code Generator

Http://top.admin5.com/daima/ all kinds of Advertising Code (
Text rolling message Advertisement
Two focus codes (just like the ads with pictures changed in the upper left corner of thunder)
Cinema model magic lamp advertisement (same as focus) 10 JS advertisement Codes
Advertisement
Http://www.haofa.net/code/adcode/ggdm.htm

Code generated after use

Pop-up window automatically

<! -- Perform the following steps:

<! -- Step one: paste the following code in the

<Head>

<Script language = "JavaScript">
Function popup (){
Props = Window. open ('HTTP: // www.sina.com.cn ', 'poppage', 'toolbars = 1, scrollbars = 0, location = 0, statusbars = 1, menubars = 0, resizable = 0, width = 500, Height = 300, Left = 390, Top = 362 ');
}
// End -->
</SCRIPT>

<! -- Step 2: paste the onload event processor in the <body> tag -->
<Body onload = "javascript: popup ()">

<! -- Code end -->

Image click ads

<! -- Perform the following steps:

<! -- Step one: paste the following code in the

<Head>

<Script language = "JavaScript">
Function popup (){
Props = Window. open ('HTTP: // www.sina.com.cn ', 'poppage', 'toolbars = 1, scrollbars = 0, location = 0, statusbars = 1, menubars = 0, resizable = 0, width = 500, Height = 300, Left = 390, Top = 362 ');
}
// End -->
</SCRIPT>

<! -- Step 2: Use the following link to open a new window -->
<A href = "javascript: popup ()"> open the popup window </a>

<! -- Code end -->

Bounce onUnload

<HTML>
<Script language = "JavaScript">
<! --
VaR exit = true;
Function ext ()
{
If (Exit)

Window. Open ('HTTP: // www.admin5.net ');
Window. Open ('HTTP: // www.admin5.com/html ');
}
// --> </SCRIPT>
<Body onUnload = "ext ()">
</Body>
</Html>

 

Advertising back (that is, advertising on a website page, closed regularly)

<Div align = "center" id = "miman">
<Table width = "760" border = "0" cellspacing = "0" cellpadding = "0">
<Tr>
<TD> <a href = "http://www.admin5.com" target = "_ blank"> </a> </TD>
</Tr>
</Table>
</Div>

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> code of the AD with Timed Shutdown </title>
<Script language = "JavaScript">

VaR time_out = 3000;
Function log_start ()
{
Window. miman. style. Visibility = "visible ";
Window. setTimeout ("real_log_start ()", time_out );
Return false;
}
Function real_log_start ()
{
Window. miman. style. Display = "NONE ";
}
</SCRIPT>
</Head>

<Body onload = "log_start ()">
<P> Lala, </P>

</Body>
</Html>

 

 

Delayed pop-up

<SCRIPT>

Window. setTimeout ("START ()", 1000); // The window appears in 1 s.

Function start ()

{

Window. Open ('HTTP: // www.admin5.com/html ');

}

</SCRIPT>

<Body onload = "Pop ()">

Floating window (directly add to the head of a webpage with the floating effect. The effect is that the image will be moved along with the pull-down of the webpage .)

<Script language = "JavaScript">
VaR Delta = 0.15.
VaR layers;
Function floaters (){
This. Items = [];
This. additem = function (ID, X, Y, content ){
Document. write ('<Div id =' + ID + 'style = "Z-index: 10; position: absolute; width: 80px; Height: 60px; left: '+ (typeof (x) = 'string '? Eval (x): x) + '; top:' + (typeof (y) = 'string '? Eval (y): Y) + '">' + content + '</div> ');
VaR newitem = {};
Newitem. Object = Document. getelementbyid (ID );
If (Y> 10) {Y = 0}
Newitem. x = X;
Newitem. Y = y;
This. items [This. Items. Length] = newitem;
}
This. Play = function (){
Layers = This. Items
Setinterval ('play () ', 10 );
}
}
Function play (){
For (VAR I = 0; I <layers. length; I ++ ){
VaR OBJ = Layers [I]. object;
VaR obj_x = (typeof (layers [I]. X) = 'string '? Eval (layers [I]. X): layers [I]. X );
VaR obj_y = (typeof (layers [I]. y) = 'string '? Eval (layers [I]. Y): layers [I]. y );
If (obj. offsetleft! = (Document. Body. scrollleft + obj_x )){
VaR dx = (document. Body. scrollleft + obj_x-obj.offsetLeft) * delta;
DX = (dx> 0? 1:-1) * Math. Ceil (math. Abs (dx ));
OBJ. style. Left = obj. offsetleft + dx;
}
If (obj. offsettop! = (Document. Body. scrolltop + obj_y )){
VaR DY = (document. Body. scrolltop + obj_y-obj.offsetTop) * delta;
DY = (dy> 0? 1:-1) * Math. Ceil (math. Abs (dy ));
OBJ. style. Top = obj. offsettop + dy;
}
OBJ. style. Display = '';
}
}

VaR strfloat = new floaters ();
Strfloat. additem ("followdiv", 6, 80, "Strfloat. Play ();
</SCRIPT>

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.