中文(繁体)
<!-- 將以下程式碼放到<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; } </腳本>