¤U­±¬O¨â­Ó·|ÀH·Æ¹«²¾°ÊÂà´«¹Ï§Îªº¹Ï§ÎÁpµ²«ö¶s

¦ó³B¹Ð®J¾ÉÄý> HTML Link Site Link <¦ó³B¹Ð®J¾ÉÄý



½d¨Ò¸Ñ»¡

¾Þ§@¤è¦¡
½Ð¥Î·Æ¹«¤À§O¦b¤W¤è¨â­Ó¹Ï§Î¶s²¾°Ê¤Î«ö¤U¡A§A·|µoı¹Ï§Î¶s¦b·Æ¹«²¾¤J²¾¥X¤Î«ö¤U ®É¡A¤À§O·|ÅÜ´«¤£¦Pªº¦â±m¡A¦pªG§A¦b¨ä¤¤ªº«ö¶s«ö¤U©ñ¶}«á¡Aºô­¶±N¸õ©¹¨ä¥L¶W Ápµ²³]©w¦nªººô­¶¡C
½d¨Ò¥Øªº
¼¶¼g­nÂI
  1. ¥Ñ©ó­n¥Î¹Ï§Îªº¤è¦¡¨ú¥N¯Â¤å¦r¶W³sµ²¡A¨Ã¥B­nÀH·Æ¹«°Ê§@´«¹Ï¡A©Ò¥H­n ¥Î¦n´X±i¹Ï¨Ó²Õ¦¨ºô­¶¤Wªº¤@­Ó«ö¶s¡A¥»¨Ò«ö¶s¤@«ö¶s¥Î¤T±i¹Ï¡A¤À§O¬O ·Æ¹«²¾¤J²¾¥X¤Î«ö¤Uªº®É­Ô¥[¥H´«¹Ï¡C¦Cªí¦p¤U¡G

    ¹Ï¤ù¼v¹³¹Ï¤ù¦WºÙ©ÒÄÝ«ö¶s¶°¨Ï¥Î®É¾÷
    HTML Up Button hidup.gif HTML «ö¶s ¨S¦³·Æ¹«°Ê§@©Î·Æ¹«²¾¥X®É§e²{ªº¹Ï¤ù
    HTML On Button hidon.gif HTML «ö¶s ·Æ¹«²¾¤J®É§e²{ªº¹Ï¤ù
    HTML Down Button hiddn.gif HTML «ö¶s ·Æ¹««ö¤U®É§e²{ªº¹Ï¤ù
    Site Up Button pidup.gif ¤ÀÃþ­¶ «ö¶s ¨S¦³·Æ¹«°Ê§@©Î·Æ¹«²¾¥X®É§e²{ªº¹Ï¤ù
    Site On Button pidon.gif ¤ÀÃþ­¶ «ö¶s ·Æ¹«²¾¤J®É§e²{ªº¹Ï¤ù
    Site Down Button piddn.gif ¤ÀÃþ­¶ «ö¶s ·Æ¹««ö¤U®É§e²{ªº¹Ï¤ù

  2. ¬JµM¬O«ö¶s­n¨Ì·Æ¹«²¾¤J²¾¥X´«¹Ï¡A·íµM DHTML ªº Script °Ï¬q¤£¥i¤Ö¡A §Ú­Ì¥²¶·¥h°»´ú¨Ã³B²z·Æ¹«²¾¤J(onmouseover)¡B·Æ¹«²¾¥X(onmouseout)©M ·Æ¹««ö¤U(onmousedown)µ¥¤T­Ó·Æ¹«Ä²µo°Ê§@¡C
ª`·N¨Æ¶µ
´N¦p«e­±©Ò»¡¡A§Ú­Ì¥²¶·­n¨Ì¾Ú·Æ¹«ªº¤T­ÓIJµo°Ê§@°ÊºA§ó´«¹Ï¤ù¡A³o¦b Explorer ùجO¤Q¤À²³æªº¨Æ¡A¦]¬° Explorer ªº IMG Tag ¥i¥HIJµo¨Ã±µ¦¬·Æ¹«ªº³o¨Ç¨Æ¥ó¡A¦ý Navigator ´N¤ñ¸û³Â·Ð¡A¦]¬°¥¦ªº IMG Tag ¬O¨S¿ìªk¥hIJµo¤Î±µ¦¬³o¨Ç¨Æ¥óªº¡A©Ò¥H Åܳqªº¿ìªk´N¬O¥Î Anchor Tag ¥h¥]ÂÐ IMG Tag ¡A¦]¬°¦b Navigator ùØ¡AAnchor Tag ¬O¥i¥HIJµo¨Ã±µ¦¬·Æ¹«¨Æ¥ó¡A¦b¥¦±µ¦¬¨ì·Æ¹«³o¨Ç¨Æ¥ó«á¡A¦A¦b Script ±Ô­z¤¤¥h§ï´« IMG Tag ªº¹Ï¤ù¡C¬°¤F°µ¦¨ IE ©M NC ³q¥Îªººô­¶¡A§Ú­Ì¥²¶·²o´N Navigator ¡A¦b HTML ±Ô­z¤¤§Ú­Ì¥²¶·³o»ò¼g¡G
<A HREF="LinkURL"
  onmouseout="funcname()"
  onmouseover="funcname()"
  onmousedown="funcname()">
  <IMG SRC="filepathname" NAME="imgname" BORDER="0">
</A>
¥»½d¨Òªº Script °Ï¬q
/* «Å§i»P HTML «ö¶s¶°¹Ï¤ù¬Û¹ïÀ³ªº Image ÅܼơA
¨Ã«ü©ú¨ä¹Ï§ÎÀɤ§¦ì§}¡C */
var icon1=new Image();
icon1.src="hidup.gif";

var icon1a=new Image();
icon1a.src="hidon.gif";

var icon1b=new Image();
icon1b.src="hiddn.gif";

/* «Å§i»P ¤ÀÃþ­¶ «ö¶s¶°¹Ï¤ù¬Û¹ïÀ³ªº Image ÅܼơA
¨Ã«ü©ú¨ä¹Ï§ÎÀɤ§¦ì§}¡C */
var icon2=new Image();
icon2.src="pidup.gif";

var icon2a=new Image();
icon2a.src="pidon.gif";

var icon2b=new Image();
icon2b.src="piddn.gif";

/* °õ¦æ§ó´« IMG Tag ¹Ï¤ùªº JavaScript ¦Û­q¨ç¼Æ
°Ñ¼Æ¥\¯à¡G
imgname:«ü©ú­n§ó´«¨º¤@­Ó IMG Tag
gifname:­n§ó´«¦¨¨º­Ó¹Ï§ÎªºÅܼƦWºÙ
*/
function MouseThrow(imgname,gifname)
{
    /* ¦pªG IE or NC ¦b 4.0 ¥H¤W¤~°õ¦æ */
    if (navigator.appVersion.substring(0,1) >= 4)
    {
        /* Img Tag ªº src ÄÝ©Ê´N¬O¹Ï¤ùªº©Ò¦b¦ì§}¡A§ïÅÜ src 
           §Y¥i¹F¦¨§ó´«¹Ï¤ùªº®ÄªG¡C */
        document.images[imgname].src=eval(gifname+".src");
    }
    else
    {
        alert("!!©êºp!!\n§A¥²¶·¨Ï¥Î IE or NC 4.0 ¥H¤WªºÂsÄý¾¹");
    }
}
¥»½d¨Òªº HTML °Ï¬q

<H3 ALIGN=CENTER>¤U­±¬O¨â­Ó·|ÀH·Æ¹«²¾°ÊÂà´«¹Ï§Îªº¹Ï§ÎÁpµ²«ö¶s</H3>
<TABLE ALIGN=CENTER><TR>
    <TD><B>¦ó³B¹Ð®J¾ÉÄý></B></TD>
    <TD>
    <!-- ³o¬O HTML «ö¶sªº³]©w¡A¨Æ¥ó³B²z¬O¼g¦b Anchor ¼ÐÅÒùØ¡A
            ¦Ó¤£¬O IMG ¼ÐÅÒùØ -->
    <A HREF="../../index.htm"
        onmouseout="MouseThrow('button1','icon1')"
        onmouseover="MouseThrow('button1','icon1a')"
        onmousedown="MouseThrow('button1','icon1b')">

    <!-- NAME ÄݩʬO³]µ¹ IMG ¦Ó¤£¬O Anchor¡Aªí¥Ü­n¦b Script 
            °Ï¬qùاïÅܪº¬O IMG ¦Ó¤£¬O Anchor ¡C -->
    <IMG NAME="button1" SRC="hidup.gif" BORDER="0"></A>
    </TD>
    <TD>

    <!-- ³o¬O ¤ÀÃþ­¶ «ö¶sªº³]©w -->
    <A HREF="../../../partexp.htm"
        onmouseout="MouseThrow('button2','icon2')"
        onmouseover="MouseThrow('button2','icon2a')"
        onmousedown="MouseThrow('button2','icon2b')">
    <IMG NAME="button2" SRC="pidup.gif" BORDER="0"></A>
    </TD>
    <TD><B><¦ó³B¹Ð®J¾ÉÄý</B></TD>
</TR></TABLE>

¥´¥]¤U¸ü¡AÂ÷½u¾\Ū¡C




¦ó³B¹Ð®J¾ÉÄý> HTML Link Site Link <¦ó³B¹Ð®J¾ÉÄý
1