語法展示:: http://home.graffiti.net/lihfngffdd/
請用IE6.0或更新版本觀看語法特效展示
將以下程式碼複製,貼在<body>及</body>標籤之間。
<script language="JavaScript1.2">
<!--
var marqueewidth=380
var marqueeheight=20
var speed=2
var marqueecontents='│<a href="http://tw.yahoo.com/" target="_blank">奇摩</a>│<a href="http://chinese.yahoo.com/" target="_blank">雅虎</a>│<a href="http://www.yam.com/" target="_blank">蕃薯藤</a>│<a href="http://www.sina.com.tw/" target="_blank">新浪網</a>│<a href="http://www.pchome.com.tw/" target="_blank">PChome</a>│<a href="http://blog.pixnet.net/como0925" target="_blank">紫蓮の翼</a>│'
if (document.all)
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}
window.onload=regenerate2
-->
</script>
<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
<layer name="cmarquee02"></layer>
</ilayer>
留言列表