close

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


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

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

<script language="Javascript">
<!--
B=document.all;
C=document.layers;
T1=new Array("cdh1.gif",40,40,"cdh2.gif",35,35,"cdh3.gif",30,30,"cdh4.gif",25,25,"cdh5.gif",20,20,"cdh6.gif",15,15,"cdh7.gif",10,10)
nos=parseInt(T1.length/3)
rate=45
ie5fix1=0;
ie5fix2=0;
for (i=0;i<nos;i++){
createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")}
function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
with (document){
write((!B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
if(St){
if (C)
write(" style='");
write(St+";' ")
}
else write((B)?"'":"");
write((At)? At+">" : ">");
write((HT) ? HT : "");
if (!Op)
closeContainer(N)
}
}
function closeContainer(){
document.write((B)?"</div>":"</layer>")
}
function getXpos(N){
return (B) ? parseInt(B[N].style.left) : C[N].left
}
function getYpos(N){
return (B) ? parseInt(B[N].style.top) : C[N].top
}
function moveContainer(N,DX,DY){
c=(B) ? B[N].style :C[N];c.left=DX+5;c.top=DY+5
}
function cycle(){
//if (IE5)
if (document.all&&window.print){
ie5fix1=document.body.scrollLeft;
ie5fix2=document.body.scrollTop;
}
for (i=0;i<(nos-1);i++){
moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
}
}
function newPos(e){
moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2
)
}
if(document.layers)
document.captureEvents(Event.MOUSEMOVE)
else if(B){document.body.onscroll=newPos}
document.onmousemove=newPos
setInterval("cycle()",rate)
-->
</script>







不要忘記付件也要一起帶回家喔~!!......    
>>>>>>我是附件帶我回家<<<<<<<

下載後解壓縮,將圖檔置於網頁同一目錄下

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 我愛吃滷肉飯 的頭像
    我愛吃滷肉飯

    我愛吃滷肉飯的部落格

    我愛吃滷肉飯 發表在 痞客邦 留言(0) 人氣()