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


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

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

按我複製程式碼

 


<script language=JavaScript>
<!--
var cx=0;
var cy=0;
var val=0;
function locate()
{ cx=window.event.x;
cy=window.event.y;
}
document.onmousemove=locate;
function follow(i)
{ var x;
if(i<4)x=cx-50+i*10;
else x=cx-25+i*10;
var y=cy-20+Math.floor(Math.random()*40);
w=eval("word"+i);
with(w.style)
{
left=x.toString()+"px";
top=y.toString()+"px";
}
}
function show(i)
{
var w=eval("word"+i);
with(w.style)
{
visibility="visible";
s=parseInt(fontSize);
if(s>=200)s-=100;
else if(s>90&&s<=100)
{
s-=85;
clearInterval(val);
if(i<6)val=setInterval("show("+(i+1)+")",20);
}
fontSize=s;
}
}
function start()
{ for(i=1;i<=6;i++)
{
val=setInterval("show(1)",20);
setInterval("follow("+i+")",100);
}
}
-->
</script>
<script language=JavaScript>
<!--
var word=new Array(6);
word[1]="哈";word[2]="囉";word[3]="紫";word[4]="蓮";word[5]="";word[6]="";
for(i=1;i<=6;i++)
document.write("<div id='word"+i+"' style='width:20px;height:20px;position:absolute;font-size:1000;visibility:hidden'><font face='細明體' color='#FF0000'>"+word[i]+"</font></div>");start();
-->
</script>


部份修改文字的總字數
部份修改想要顯示的文字
部份修改文字的字型及顏色
arrow
arrow
    全站熱搜

    紫蓮の翼 發表在 痞客邦 留言(0) 人氣()