背投广告

<!--背投广告代码 begin-->
<script language="javascript" type="text/javascript">

(function () {

var pthis = this;

//获取cookie
this.getAdCookie = function (N) {
var c = document.cookie.split("; ");
for (var i = 0; i < c.length; i++) { var d = c[i].split("="); if (d[0] == N) return unescape(d[1]); }
return "";
};

//设置cookie
this.setAdCookie = function (N, V, Q) {
var L = new Date();
var z = new Date(L.getTime() + Q * 60000);

// document.cookie=N+"="+escape(V)+";path=/;expires="+z.toGMTString()+";";
document.cookie = N + "=" + escape(V) + ";path=/;domain=sina.com.cn;expires=" + z.toGMTString() + ";";

};

//构造函数
this.init = function () {
try {
document.write('\
<style type="text/css">\
body{background:url(http://images2.dichan.com/2010/bt_20100705.jpg) repeat-x top center}\
#DitanactiveBar{width:960px; margin:0 auto; height:110px;position:relative;}\
#DitanactiveBlank{clear:both;width:960px;height:0px;line-height:0;font-size:0;overflow:hidden;}\
</style>\
<div id="DitanactiveBar">\
<a href="http://bbs.dichan.com/expo/" target="_blank" style="display:block;text-indent: -999px; width:960px; height:100px;"></a>\
<div id="60Btncls" style="width:40px;height:18px;padding:0;margin:0;position:absolute;right:0;top:0;cursor:pointer;display:block;background:url(http://d2.sina.com.cn/shh/demo/090907/60_zty_cls2.jpg) no-repeat;z-index:2;" title="关闭背景"></div>\
</div>\
<div id="DitanactiveBlank" style="display:none;"></div>\
');

var tmpImg = document.createElement("img");
tmpImg.src = "http://d3.sina.com.cn/shh/demo/090907/60_zty_cls2.jpg";


jQuery('#60Btncls').mouseover(function () {
jQuery('#60Btncls').css('background', "url(http://d3.sina.com.cn/shh/demo/090907/60_zty_cls1.jpg) no-repeat");
});
jQuery('#60Btncls').mouseout(function () {
jQuery('#60Btncls').css('background', "url(http://d2.sina.com.cn/shh/demo/090907/60_zty_cls2.jpg) no-repeat");
});
jQuery('#60Btncls').click(function () {
document.body.style.background = "none";
jQuery('#DitanactiveBar').hide();
jQuery('#DitanactiveBlank').show();
pthis.setAdCookie("nasdaqcric1016", 0, 1440);
});
} catch (e) { }
}

var cookie = pthis.getAdCookie("nasdaqcric1016");
cookie = cookie == "" ? 1 : cookie;
if (cookie == 1) { pthis.init(); }

})();
</script> <style type="text/css"> body{background:url(http://images2.dichan.com/2010/bt_20100705.jpg) repeat-x top center} #DitanactiveBar{width:960px; margin:0 auto; height:110px;position:relative;} #DitanactiveBlank{clear:both;width:960px;height:0px;line-height:0;font-size:0;overflow:hidden;} </style> <div id="DitanactiveBar"> <a href="http://bbs.dichan.com/expo/" target="_blank" style="display: block; text-indent: -999px; width: 960px; height: 100px;"></a> <div id="60Btncls" style="margin: 0pt; padding: 0pt; background: transparent url(http://d2.sina.com.cn/shh/demo/090907/60_zty_cls2.jpg) no-repeat scroll 0% 0%; width: 40px; height: 18px; position: absolute; right: 0pt; top: 0pt; cursor: pointer; display: block; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; z-index: 2;" title="关闭背景"></div> </div> <div id="DitanactiveBlank" style="display: none;"></div>
<!--背投广告代码 end-->
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值