中文(繁体)
<!-- 將下列程式碼放到<head>區域中--> <STYLE type=text/css>BODY { MARGIN: 25px 25px 25px } #all TD { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT -FAMILY: "Verdana", "Arial","新宋體", "宋體" } INPUT { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體" , "宋體" } SELECT { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體" } P { FONT-SIZE: 12px; LINE- HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋體", "宋體" } TEXTAREA { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial" ,"新宋體", "宋體" } #all A:active { COLOR: #7d070c } #all A:visited { COLOR: #7d070c } #all A:hover { COLOR: #336699 } #all A:link { COLOR : #7d070c } </STYLE> <script language="JavaScript1.2"> //1) 設定顯示的內容var scroller_msg='歡迎你的光臨' //2) 設定多久後才顯示滾動的內容var dismissafter=0 var initialvisible=0 if (document.all) document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1px solid black;font-size:14px;background;border:1px solid black;font-size:14px;background;border:1px solid black;font-size:14px;background;border:1px solid black;font-size:14px;background;border:1px solid black;font-size:14px;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+10 curscroll.style.top=document.body.scrollTop+event.clientY+10 } function dismissmessage(){ curscroll.style.visibility="hidden " } if (document.all){ document.onmousemove=followcursor document.ondblclick=dismissmessage if (dismissafter!=0) setTimeout("dismissmessage()",dismissafter*1000) } //--> </script>