DreamweaverMX鼠标跟随特效的问题

来源:百度知道 编辑:UC知道 时间:2024/06/10 19:40:54
为什么在把代码输入后,预览时 动滑轮以后 特效(比如 花环.文字...) 就与鼠标分开了?

<SCRIPT LANGUAGE="JavaScript">
if (document.all) {
yourLogo = "你是一个傻瓜~大傻瓜~大傻瓜~";
logoFont = "宋体";
logoColor = "#FF0000";
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 100;
logoHeight = -30;
ypos = 0;
xpos = 0;
step = 0.03;
currStep = 0;
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < L; i++) {
document.write('<div id="ie" style="position:absolute;top:0px;left:0px;'
+'width:10px;height:10px;font-family:'+logoFont+';font-size:12px;'
+'color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');
}
document.write('</div></div>