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


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

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

<script language=JavaScript1.2>
<!--
//1) set message to display
var scroller_msg='歡迎光臨 紫蓮の翼'
//2) set whether message should auto disappear after x seconds (0=perpetual).
//Note that double clicking page will also dismiss message
var dismissafter=0
var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="position:absolute;width:100px;border:1px solid #FF0000;font-size:9pt;font-face:細明體;color:#0000FF;background-color:#FFFF00;visibility:hidden">'+scroller_msg+'</marquee>')
function followcursor(){
//move cursor function for IE
if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}
curscroll.style.left=document.body.scrollLeft+event.clientX+20
curscroll.style.top=document.body.scrollTop+event.clientY+20
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
-->
</script>


var scroller_msg='歡迎光臨 紫蓮の翼' 中修改跑馬燈的文字
width:100px 中修改跑馬燈的寬度
border:1px 中修改框線的粗細
solid #FF0000; 中修改框線的顏色
font-size:9pt; 中修改文字的大小
font-face:細明體; 中修改文字的字體
color:#0000FF; 中修改文字的顏色
background-color:#FFFF00; 中修改跑馬燈的底色
curscroll.style.left=document.body.scrollLeft+event.clientX+20 中修改跑馬燈距離游標左右的位置
curscroll.style.top=document.body.scrollTop+event.clientY+20 中修改跑馬燈距離游標上下的位置
arrow
arrow
    全站熱搜

    eeredqq 發表在 痞客邦 留言(0) 人氣()