急,高手帮忙看看这段JS代码怎么给flash加连接??

来源:百度知道 编辑:UC知道 时间:2024/05/18 00:46:13
var delta=0.8;
var collection;
var closeB=false;
function floaters() {
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10;

POSITION: absolute; width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)

+';top:'+(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()',30);
}
}
function play()
{
if(screen.width<=800 || closeB)
{
for(var i=0;i<collection.length;i+