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.