<!doctype html>
<!--div{ font:微软雅黑 20px green;} --> function time(){ document.getElementById("layer").style.left= Math.random()*500; document.getElementById("layer").style.top= Math.random()*500; setTimeout("time()",1000); }
完全看不出你想干嘛 咋样的漂浮效果
这是每隔一秒,随机闪现吧,没有看到让显示的东西移动的步骤啊