//js document
//全屏广告开始
var delayloadms=50; var delayunloadms=6000;
var adid=new Array;
function load_ad(){for(var i=1;i < adid.length;i++){eval("document.getElementById('adid"+i+"').innerHTML=adid["+i+"]");}}
function hidAll(){hidead(); document.all.yaf2000.style.display = 'block';}
function disAll(){document.all.yaf2000.style.display = 'none'; showad=showad00; scall();}
document.write('
');
document.write('

');
document.write('
');
//全屏广告结束
//对联广告开始----------------------------------------------------------------------------
var delta=0.15 ;
var collection;
var showdistich_ad=false;
function floaters() {
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write(''+content+'
');
var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;
this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',10);
}
}
function play()
{
for(var i=0;i < collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);
if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
//if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
// var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
// dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
// followObj.style.top=followObj.offsetTop+dy;
// }
followObj.style.display = '';
}
}
setTimeout("listdistich()",delayunloadms+12);
showdistich_ad=true;
if (window.screen.width>=1024 && showdistich_ad) //当分辨率达到 1024 时才显示广告
{
var theFloaters = new floaters();
theFloaters.addItem('followDiv1','document.body.clientWidth-106',80,'
');
theFloaters.addItem('followDiv2',6,80,'
');
theFloaters.play();
}
function hideaddistich(){
showdistich_ad=false;
document.getElementById('followDiv1').style.visibility='hidden';
document.getElementById('followDiv2').style.visibility='hidden';
}
function listdistich(){
showdistich_ad=true;
document.getElementById('followDiv1').style.visibility='';
document.getElementById('followDiv2').style.visibility='';
}
hideaddistich();
//-------------------对联广告代码结束----------------------