复制代码代码如下:
<p>
<meta content = "text/html; charset = gb2312" http-equiv = "tipe konten"/> <style type = "text/css">
.shuoming {margin-top: 20px; Perbatasan: 1px solid #ccc; padding-bottom: 10px; Lebar: 600px; margin: 0 auto;}
.shuoming dt {height: 30px; Line-Height: 30px; font-weight: tebal; Teks-inden: 10px;}
.shuoming dd {line-height: 20px; Padding: 5px 20px;} </style> </p>
<bahasa skrip = javascript>
var delta = 0,08
koleksi var;
fungsi floaters () {
this.items = [];
this.additem = function (id, x, y, konten)
{
Document.write ('<div id ='+id+'style = "z-index: 10; Posisi: absolute; lebar: 80px; tinggi: 60px; kiri:'+(typeof (x) == 'string'? Eval? (x): x)+'; atas:'+(typeof (y) == 'string'? eval (y): y)+'">'+konten+'</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);
}
}
function play ()
{
untuk (var i = 0; i <collection.length; i ++)
{
var followobj = collection [i] .Object;
var followobj_x = (typeof (collection [i] .x) == 'string'? eval (koleksi [i] .x): koleksi [i] .x);
var followobj_y = (typeof (koleksi [i] .y) == 'string'? eval (koleksi [i] .y): koleksi [i] .y);
if (followobj.offsetleft! = (document.documentelement.scrollleft+followobj_x)) {
var dx = (document.documentelement.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.documentelement.scrolltop+followobj_y)) {
var dy = (document.documentelement.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 = '';
}
}
var theFloaters = new floaters ();
// 右面
theFloaters.additem ('followDiv1', 'document.documentelement.clientwidth-106', 80, '<img src = http: //pic.vevb.com/sudu.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>
</script>
<tabel cellspacing = "0" cellpadding = "0" bgcolor = "#f4f4f4" align = "center">
<tbody>
<tr>
<td valign = "atas" align = "center"> <br />
<dl> </ll> </td>
</tr>
</tbody>
</boable>