中文(简体)
<!-- 将以下代码放到<head>区域中--> <SCRIPT LANGUAGE="JavaScript"> if (document.all) { yourLogo = "建站学院欢迎您的光临"; logoFont = "宋体";标志颜色=“000000”; yourLogo = yourLogo.split(''); L = yourLogo.length;三角分割=360/L; sz = new Array() 徽标宽度 = 100;标志高度=-30; y 位置 = 0; x位置 = 0;步长=0.03;当前步数 = 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;' +'颜色:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>'); } document.write('</div></div>');函数鼠标() { ypos = event.y; xpos = 事件.x - 5; } document.onmousemove=鼠标;函数 animateLogo() { external.style.pixelTop = document.body.scrollTop; for (i = 0; i < L; i++) { ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180); ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180); sz[i] = ie[i].style.pixelTop - ypos;如果 (Sz[i] < 5) Sz[i] = 5;即[i].style.fontSize = Sz[i] / 1.7; } currStep -= 步骤; setTimeout('animateLogo()', 20); } window.onload = animateLogo; } </脚本>