var delta=0.09;
var collection;
var closeB=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()',30);
}
}
function play()
{
if(screen.width<=800 || closeB)
{
for(var i=0;i0?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 = '';
}
}
function closeBanner()
{
closeB=true;
return;
}
var theFloaters = new floaters();
//-----------------------------------------------------------------------------------------------------------------------
theFloaters.addItem('followDiv2',-4,90,
'![]()
'+
''+
'');
document.write('');
document.write('');
function DL1_loadImg(){document.all.DL1_img.src='/admin/ad/Image/20061122164325.jpg';document.all.DL1_tuNum.value=1;}
document.write('');document.write('');
function setDL1Img()
{
if(document.all.DL1_tuNum.value == 1)
{
document.all.DL1_openPage.value=document.all.DL1_link1.value;
window.open(document.all.DL1_openPage.value);
document.all.DL1_tuNum.value =1;
}
else if(document.all.DL1_tuNum.value == 2)
{
document.all.DL1_img.src = document.all.DL1_src1.value;
document.all.DL1_openPage.value=document.all.DL1_link2.value;
window.open(document.all.DL1_openPage.value);
document.all.DL1_tuNum.value =1;
}
}
//---------------2
theFloaters.addItem('followDiv1','document.body.clientWidth-110',90,
'![]()
'+
''+
'');
document.write('');
document.write('');
function DL2_loadImg()
{
document.all.DL2_img.src='/admin/ad/Image/20064594909.gif';document.all.DL2_tuNum.value=1;
}
document.write('');
document.write('');
function setDL2Img()
{
if(document.all.DL2_tuNum.value == 1)
{
document.all.DL2_openPage.value=document.all.DL2_link1.value;
window.open(document.all.DL2_openPage.value);
document.all.DL2_tuNum.value =1;
}
else if(document.all.DL2_tuNum.value == 2)
{
document.all.DL2_img.src = document.all.DL2_src1.value;
document.all.DL2_openPage.value=document.all.DL2_link2.value;
window.open(document.all.DL2_openPage.value);
document.all.DL2_tuNum.value =1;
}
}
//---------------------3
theFloaters.addItem('followDiv3',0,310,
'![]()
'+
'');
document.write('');
document.write('');
function DL3_loadImg()
{
}
document.write('');
document.write('');
function setDL3Img()
{
if(document.all.DL3_tuNum.value == 1)
{
document.all.DL3_openPage.value=document.all.DL3_link1.value;
window.open(document.all.DL3_openPage.value);
document.all.DL3_tuNum.value =1;
}
else if(document.all.DL3_tuNum.value == 2)
{
document.all.DL3_img.src = document.all.DL3_src1.value;
document.all.DL3_openPage.value=document.all.DL3_link2.value;
window.open(document.all.DL3_openPage.value);
document.all.DL3_tuNum.value =1;
}
}
//---------------------------------4
theFloaters.addItem('followDiv4','document.body.clientWidth-110',310,
'![]()
'+
'');
document.write('');
document.write('');
function DL4_loadImg(){document.all.DL4_img.src='/admin/ad/Image/200726105118.gif';
document.all.DL4_tuNum.value=1;}document.write('');
document.write('');
function setDL4Img()
{
if(document.all.DL4_tuNum.value == 1)
{
document.all.DL4_openPage.value=document.all.DL4_link1.value;
window.open(document.all.DL4_openPage.value);
document.all.DL4_tuNum.value =1;
}
else if(document.all.DL4_tuNum.value == 2)
{
document.all.DL4_img.src = document.all.DL4_src1.value;
document.all.DL4_openPage.value=document.all.DL4_link2.value;
window.open(document.all.DL4_openPage.value);
document.all.DL4_tuNum.value =1;
}
}
DL1_loadImg();
DL2_loadImg();
DL3_loadImg();
DL4_loadImg();
theFloaters.play();