close

語法展示::  http://home.graffiti.net/ujhioonbg/


請用IE6.0或更新版本觀看語法特效展示

將以下程式碼複製,貼在<head>及</head>標籤之間。


<script language="JavaScript">
<!--
if (document.all) {
yourLogo = "歡迎光臨紫蓮の翼~";
logoFont = "細明體";
logoColor = "FF8000";
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>');
function Mouse() {
ypos = event.y;
xpos = event.x - 5;
}
document.onmousemove=Mouse;
function animateLogo() {
outer.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;
if (Sz[i] < 5) Sz[i] = 5;
ie[i].style.fontSize = Sz[i] / 1.7;
}
currStep -= step;
setTimeout('animateLogo()', 20);
}
window.onload = animateLogo;
}
-->
</script>


yourLogo = "歡迎光臨紫蓮の翼~"; 中修改要顯示的文字
logoFont = "細明體"; 中修改文字的字型
logoColor = "FF8000"; 中修改文字的顏色

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 就是愛吃我是好人 的頭像
    就是愛吃我是好人

    就是愛吃我是好人

    就是愛吃我是好人 發表在 痞客邦 留言(0) 人氣()