复制代码代码如下 :
<p>
<meta content = "text/html; charset = gb2312"http-equiv = "content-type"/> <style type = "text/css">
.shuoming {마진-탑 : 20px; 국경 : 1px Solid #CCC; 패딩 바닥 : 10px; 너비 : 600px; 여백 : 0 Auto;}
.shuoming dt {높이 : 30px; 라인 높이 : 30px; 글꼴 중량 : 대담한; 텍스트 안정 : 10px;}
.shuoming dd {line-height : 20px; 패딩 : 5px 20px;} </style> </p>
<스크립트 언어 = javaScript>
var 델타 = 0.08
var 컬렉션;
기능 플로터 () {
this.items = [];
this.additem = function (id, x, y, 컨텐츠)
{
document.write ( '<div id ='+id+'style = "z-index : 10; 위치 : 절대; 너비 : 80px; 높이 : 60px; 왼쪽 :'+(typeof (x) == 'string'? eval (x) : x)+'; 상단 :'+(typeof (y) == 'string'? eval (y) : y)+' ">'+content+'</div>');
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);
}
}
함수 재생 ()
{
for (var i = 0; i <collection.length; i ++)
{
var fologobj = collection [i] .object;
var followobj_x = (typeof (collection [i] .x) == 'string'? eval (collection [i] .x) : collection [i] .x);
var fologobj_y = (typeof (collection [i] .y) == 'string'? eval (collection [i] .y) : collection [i] .y);
if (followobj.offsetleft! = (document.documentElement.scrollleft+followobj_x)) {
var dx = (document.documentElement.scrollleft+followobj_x-followobj.offsetleft)*델타;
dx = (dx> 0? 1 : -1)*math.ceil (math.abs (dx));
foldowobj.style.left = foldowobj.offsetleft+dx;
}
if (followobj.offsetTop! = (document.documentElement.scrolltop+followobj_y)) {
var dy = (document.documentElement.scrolltop+followobj_y-followobj.offsettop)*델타;
dy = (dy> 0? 1 : -1)*math.ceil (math.abs (dy));
foldowobj.style.top = foldowobj.offsettop+dy;
}
followobj.style.display = '';
}
}
var thefloaters = new floaters ();
// 右面
thefloaters.additem ( 'followdiv1', 'documentelement.clientWidth-106', 80, '<img src = http : //pic.vevb.gudu.gif id = ad/>');
// 左面
Thefloaters.additem ( 'followdiv2', 6,80, '<img src = http : //pic.vevb.com/sudu.gif id = ad/>');
Thefloaters.play ();
// 图片格式调用方法
// <a href = // www.vevb.com.net/ target = _blank> <img src = http : //pic.vevb.com/sudu.gif border = 0> </a>
</스크립트>
<table cellspacing = "0"cellPadding = "0"bgcolor = "#f4f4f4"align = "center">
<tbody>
<tr>
<td valign = "top"align = "center"> <br />
<dl> </dl> </td>
</tr>
</tbody>
</테이블>