JS right lower corner of the floating Advertising Code (four code)

Source: Internet
Author: User
Tags eval

Immediately ad

document.write ("<span id=" Tmpmsgdiv "></span>");
var Randoms=math.floor (Math.random () *5+1);
if (randoms%2==0) {

Str= "<a href=" Http://www.111cn.net/?tn=codefans "target=" _blank "></a><br><span style= ' position:absolute; Z-index:105;display:block;width:35px;height:20px;line-height:20px;left:5px;bottom:2px;cursor:pointer; Text-align:center;display:none ' id= ' closespan ' ><a href= ' ### ' onclick= ' closeyxj () ' style= ' color: #111817; ' > Close </a></span> ";
}else{
Str= "<a href=" Http://www.111cn.net/?tn=codefans "target=" _blank "onclick= ' showclose" () ' ></a><br><span style= ' position:absolute; Z-index:105;display:block;width:35px;height:20px;line-height:20px;left:5px;bottom:2px;cursor:pointer; Text-align:center;display:none ' id= ' closespan ' ><a href= ' ### ' onclick= ' closeyxj () ' style= ' color: #111817; ' > Close </a></span> ";
}
ShowMsg (str);
function ShowMsg (str) {
var s= "";
var _width= "_height="; "160";
try{
if (document.compatmode && document.compatmode!= ' Backcompat ') {
s+= (' <div style= ' z-index:9;right:2px;bottom:1px;height: ' +_height+ ' px;width: ' +_width+ ' Px;overflow:hidden; position:fixed; ' + (/msie 7/.test (navigator.appversion)? ': ' _position:absolute; _margin-top:expression ( document.documentelement.clientheight-this.style.pixelheight+document.documentelement.scrolltop); ') + ' "id=" bottommsg ">");
}else {
s+= (' <div style= ' z-index:9;right:2px;bottom:1px;height: ' +_height+ ' px;width: ' +_width+ ' Px;overflow:hidden; Position:fixed;*position:absolute;*top:expression (eval (document.body.scrolltop) +eval ( document.body.clientheight)-this.style.pixelheight); "id=" bottommsg ">");
}
s+= (str);
s+= (' </div> ');
document.getElementById (' Tmpmsgdiv '). innerHTML = S;
}catch (err) {}
}
function Closeyxj () {
$ ("bottommsg"). style.display= ' None ';
Setadcookie ("Yxjok", "OK", 10);
}
function Showclose () {
$ ("Closespan"). style.display= ' block ';
Setadcookie ("Yxjok", "OK", 10);
}

Floating AD Code Two

document.write ("<span id=" Tmpmsgdiv "></span>");
ShowMsg ();
function ShowMsg () {
var s= "";
var _width= "_height="; "160";
try{
if (document.compatmode && document.compatmode!= ' Backcompat ') {
s+= (' <div style= ' z-index:9;right:2px;bottom:1px;height: ' +_height+ ' px;width: ' +_width+ ' Px;overflow:hidden; position:fixed; ' + (/msie 7/.test (navigator.appversion)? ': ' _position:absolute; _margin-top:expression ( document.documentelement.clientheight-this.style.pixelheight+document.documentelement.scrolltop); ') + ' "id=" bottommsg ">");
}else {
s+= (' <div style= ' z-index:9;right:2px;bottom:1px;height: ' +_height+ ' px;width: ' +_width+ ' Px;overflow:hidden; Position:fixed;*position:absolute;*top:expression (eval (document.body.scrolltop) +eval ( document.body.clientheight)-this.style.pixelheight); "id=" bottommsg ">");
}
s+= (' <a target= "_blank" href= "http://www.111cn.net" ></a>");
s+= (' </div> ');
document.getElementById (' Tmpmsgdiv '). innerHTML = S;
}catch (err) {}

}

Floating AD Code Three

Immediately ad

document.write ("<span id=" Tmpmsgdiv "></span>");
var Randoms=math.floor (Math.random () *5+1);
if (randoms%2==0) {

Str= "<a href=" http://www.111cn.net "target=" _blank "></a > ";
}else{
Str= "<a href=" http://www.111cn.net "target=" _blank "></a > ";
}
ShowMsg (str);
function ShowMsg (str) {
var s= "";
var _width= "_height="; "160";
try{
if (document.compatmode && document.compatmode!= ' Backcompat ') {
s+= (' <div style= ' z-index:9;right:2px;bottom:1px;height: ' +_height+ ' px;width: ' +_width+ ' Px;overflow:hidden; position:fixed; ' + (/msie 7/.test (navigator.appversion)? ': ' _position:absolute; _margin-top:expression ( document.documentelement.clientheight-this.style.pixelheight+document.documentelement.scrolltop); ') + ' "id=" bottommsg ">");
}else {
s+= (' <div style= ' z-index:9;right:2px;bottom:1px;height: ' +_height+ ' px;width: ' +_width+ ' Px;overflow:hidden; Position:fixed;*position:absolute;*top:expression (eval (document.body.scrolltop) +eval ( document.body.clientheight)-this.style.pixelheight); "id=" bottommsg ">");
}
s+= (str);
s+= (' </div> ');
document.getElementById (' Tmpmsgdiv '). innerHTML = S;
}catch (err) {}
}
function Closeyxj () {
$ ("bottommsg"). style.display= ' None ';
Setadcookie ("Yxjok", "OK", 10);
}

Floating ads Four

lastscrolly=0;
function Heartbeat () {
var Diffy;
if (document.documentelement && document.documentelement.scrolltop)
Diffy = Document.documentelement.scrolltop;
else if (document.body)
Diffy = Document.body.scrolltop
Else
{/*netscape stuff*/}
alert (Diffy);
Percent=.1* (diffy-lastscrolly);
if (percent>0) Percent=math.ceil (percent);
else Percent=math.floor (percent);
document.getElementById ("Lovexin12"). Style.top=parseint (document.getElementById ("Lovexin12"). Style.top) + percent+ "px";
document.getElementById ("Lovexin13"). Style.top=parseint (Diffy + document.documentelement.clientheight) -199 + "px";
document.getElementById ("Lovexin14"). Style.top=parseint (document.getElementById ("Lovexin12"). Style.top) + percent+ "px";
Lastscrolly=lastscrolly+percent;
alert (lastscrolly);
}//from 111cn.net
suspendcode12= "<div id=" lovexin12 "style= ' left:0;position:absolute;top:190px;width:18px;height:220px"; Background: #efefef ' ><a href= ' http://www.111cn.net/' target= ' _blank ></a></div> '
suspendcode14= "<div id=" lovexin14 "style= ' right:0;position:absolute;top:190px;width:18px;height:220px"; Background: #efefef ' ><a href= ' http://www.111cn.net ' target= ' _blank ></a></div> '
suspendcode13= "<div id=" lovexin13 "style= ' right:0;position:absolute;width:250px;height:200px;background:#" Efefef ' ><span style= ' position: absolute; Z-index:105;display:block;width:35px;height:20px;line-height:20px;background:red;right:1px;top:3px;cursor: Pointer;text-align:center; ' ><a href= ' # ' onclick= ' $ ("#lovexin13"). Hide (); ' style= ' color: #ffcc00 ' > Off </a></span></div > "
document.write (SUSPENDCODE12);
document.write (SUSPENDCODE13);
document.write (SUSPENDCODE14);
Window.setinterval ("Heartbeat ()", 1);

SOURCE Download Address

Http://down.111cn.net/down/code/js/duilianguanggao/2010/0911/20750.html

Effect Preview Address

Web Effects/js/20100911/right/">http://g.111cn.net/javascript/js/20100911/right/

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.