看到滑鼠帶著文字會跑訊息
這就是滑鼠帶著訊息跑馬燈


將以下語法內敘述修改成自己想敘述的文字

1.紅色標示的請改成你敘述的文字
2.綠色標示改字大小
3.土黃色標示改字粗體或整個刪調呈現正常
4.藍色標示改寬度
5.紫色標示改字色
6.粉紅標示改框座標
7.淺綠色標示改字體
8.深橘色標示改框背景色
9.淺橘色標示改框色
10.淺藍色標示表現速度1000表示1秒

<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:120px;border:1px solid #F09C48;font-size:12px;font-face:新細明體;color:#cc9900;font-weight:bold;background-color:white;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-50
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>
arrow
arrow
    全站熱搜

    haco 發表在 痞客邦 留言(1) 人氣()