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


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


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

<script language="JavaScript">
<!--
var w=650
var speed=5
var side=new Array()
var slide=''
side[0]='<a href="http://tw.yahoo.com/" target="_blank"><img src="http://tw.search.yahoo.com/pic/y!kimo_40.gif" border=0 alt="奇摩"></a>'
side[1]='<a href="http://chinese.yahoo.com/" target="_blank"><img src="http://us.yimg.com/i/cn/cat.gif" border=0 alt="雅虎"></a>'
side[2]='<a href="http://www.yam.com/" target="_blank"><img src="http://www.yam.com/searchyam/img/yamsearch12090w3.gif" border=0 alt="蕃薯藤"></a>'
side[3]='<a href="http://www.sina.com.tw/" target="_blank"><img src="http://www.sina.com.tw/service/sina_logo.gif" border=0 alt="新浪網"></a>'
side[4]='<a href="http://www.pchome.com.tw/" target="_blank"><img src="http://event.pchome.com.tw/profile/authorized/img/logo3.gif" border=0 alt="PChome"></a>'

var picspeed=speed
for (i=0;i<side.length;i++)
slide=slide+side[i]+"&nbsp;&nbsp;"
if (document.all){
document.write('<marquee id="logo" scrollAmount=0 style="width:'+w+'">'+slide+'</marquee>')
logo.onmouseover=new Function("logo.scrollAmount=0")
logo.onmouseout=new Function("if (document.readyState=='complete') logo.scrollAmount=speed")
}
function load(){
window.location.reload()
}
function load2(){
if (document.layers){
document.idea.visibility="show"
setTimeout("window.onresize=load",450)
inside()
}
if (document.all)
logo.scrollAmount=speed
}
function inside(){
document.idea.document.yan.document.write('<nobr>'+slide+'</nobr>')
document. idea.document.yan.document.close()
thelength=document.idea.document.yan.document.width
scride()
}
function scride(){
if (document.idea.document.yan.left>=thelength*(-1)){
document.idea.document.yan.left-=speed
setTimeout("scride()",100)
}
else{
document.idea.document.yan.left=w
scride()
}
}
window.onload=load2
-->
</script>


var w=450 中修改跑馬燈從右邊出現的位置
var speed=5 中修改跑馬燈的速度
自行修改連結的內容

arrow
arrow
    全站熱搜

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