谁帮我看看这段JS 有什么问题???在线等

来源:百度知道 编辑:UC知道 时间:2024/06/23 17:18:05
var delta=0.08
var collection;
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()',10);
}
}
function play()
{

for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[

document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:80px;background-color:aqua; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'dddddddd'+'</DIV>');
高度 是在这里设 height:60px 改了就可以改DIV 的高度

theFloaters.addItem('followDiv2',6,80,'<EMBED src=images/duilian.swf quality=high WIDTH=100 HEIGHT=300 TYPE=application/x-shockwave-flash id=ad wmode=opaque></EMBED>');

HEIGHT=300 这个HEIGHT 改了就可以改flash的高度

我这里运行的 时候背景图也没问题 你没有 给FALSH 出来
无法看到效果
现在只能帮你这些 希望你 补充点falsh 出来!!

补充: 看不到 效果我没办法 帮你该错
你可以这样测试 先把FALSH 拿开
看看能不能行 !! 不行的话 估计是你的js里面 有问题
如果可以!!估计是你的 flash 样式的问题
或者是 你的层的 样式 出现问题

document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:80px;background-color:aqua; height:60px;le