JavaScript commonly used pop-up ads and back-projection advertising implementation methods _javascript skills

Source: Internet
Author: User

This article is an example of the common JavaScript pop-up ads and the implementation of back-projection ads. Share to everyone for your reference. The specific analysis is as follows:

Pop-up ads and background ads in large sites with more, is also a prerequisite for webmaster code, this code snippet includes pop-up ads and back ads in two forms, according to their own needs, you can choose freely.

Note: This kind of advertising does not recommend that you use, most browsers will be such ad interception, only for everyone to learn.

Copy Code code as follows:
<title>javascript popular pop-up ads and back-projection advertising code </title>
<body>
<!--back projection-->
<script language=javascript1.2>
function Openwindowback () {
var popUpWin2 = open ("Http://www.jb51.net", "popUpWin2", "width=1,height=1,top=4000,left=3000");
}
try{
Aryadseq.push ("Openwindowback ()");
}catch (e) {
Openwindowback ();
}
</SCRIPT>
<!--rear end-->

<!--front-play window-->
<script language=javascript1.2>
function Openwindowfront () {
var Popupwin = open ("/default.html", "Popupwin", "Toolbar=no,location=no,directories=no,status=no,menubar=no," Scrollbar=no,resizable=no,copyhistory=yes,width=300,height=250 ");
}
try{
Aryadseq.push ("Openwindowfront ()");
}catch (e) {
Openwindowfront ();
}
</SCRIPT>
<br/>
</body>

I hope this article will help you with your JavaScript programming.

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.