Ivy 發問時間: 電腦與網際網路程式設計 · 1 0 年前

留言版游標..

我留言版要用游標,,

所以麻煩大大幫我製作一下..

字:學習微笑

顏色:紫

加點小圖案不錯唷˙ˇ˙

麻煩大大了>ˇ<!!

1 個解答

評分
  • 1 0 年前
    最佳解答

    跑 馬 游 標

    ....................................................................

    <SCRIPT language=JavaScript1.2>

    <!--

    //1) set message to display

    var scroller_msg='在這裡輸入文字內容'

    //1) 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 #AECB9C;font-size:12px;font-face:Verdana;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>

    ....................................................................

    滑 鼠 帶 圖

    ....................................................................

    <div id="cursor" style="position:absolute; left:100; top:160; width:20; height:10; z-index:0; visibility: visible">

    <img src="填入圖檔名" width="17" height="20">

    </div>

    <script language="JavaScript">

    <!--

    function YY_Mousetrace(evnt) { //v1.2 copyright (c)1998 Yaro von Flocken

    if (yyns4)

    {if (evnt.pageX) {yy_ml=evnt.pageX; yy_mt=evnt.pageY;} }

    else{

    yy_ml=(event.clientX + document.body.scrollLeft);

    yy_mt=(event.clientY + document.body.scrollTop);

    }

    if (yy_tracescript)eval(yy_tracescript)

    }

    function m()

    {

    document.all.cursor.style.left=yy_ml+10

    document.all.cursor.style.top=yy_mt+10

    }

    //-->

    </script>

    <script language="JavaScript">

    <!--

    var yyns4=window.Event?true:false; var yy_mt = 0; var yy_ml = 0;

    if (yyns4) document.captureEvents(Event.MOUSEMOVE);

    document.onmousemove = YY_Mousetrace;

    yy_tracescript = 'm()';

    //--></script>

    ....................................................................

還有問題?馬上發問,尋求解答。