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


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

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

<center>
<a href="http://chinese.yahoo.com/" _fcksavedurl=""http://chinese.yahoo.com/"" target="main" onMouseOut="slide(0)" onMouseOver="slide(1)">
<img alt="台灣雅虎" name="i1" src="11.jpg" border="0" vspace="2" width="70" height="19"></a>
<a href="http://cn.yahoo.com/" target="main" onMouseOut="slide(0)" onMouseOver="slide(2)">
<img alt="中國雅虎" name="i2" src="21.jpg" border="0" vspace="2" width="70" height="19"></a>
<a href="http://hk.yahoo.com/" target="main" onMouseOut="slide(0)" onMouseOver="slide(3)">
<img alt="香港雅虎" name="i3" src="31.jpg" border="0" vspace="2" width="70" height="19"></a>
</center>


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

<script language="JavaScript">
<!--
agent = navigator.userAgent;
browserVer = 2;
if (agent.indexOf("a/3",6) == -1 & agent.indexOf("a/4",6) == -1) {browserVer = 2}
else {browserVer = 3}
if (browserVer == 3) {
i1a = new Image();
i1b = new Image();
i2a = new Image();
i2b = new Image();
i3a = new Image();
i3b = new Image();
i1a.src = "11.jpg";
i1b.src = "12.jpg";
i2a.src = "21.jpg";
i2b.src = "22.jpg";
i3a.src = "31.jpg";
i3b.src = "32.jpg";
}
function slide(position) {
if (browserVer == 3) {
        if (position == 0) {
                document.i1.src = i1a.src
                document.i2.src = i2a.src
                document.i3.src = i3a.src
                return true;
                }
        else if (position == 1) {
                document.i1.src = i1b.src
                document.i2.src = i2a.src
                document.i3.src = i3a.src
                return true;
                }
        else if (position == 2) {
                document.i1.src = i1a.src
                document.i2.src = i2b.src
                document.i3.src = i3a.src
                return true;
                }
        else if (position == 3) {
                document.i1.src = i1a.src
                document.i2.src = i2a.src
                document.i3.src = i3b.src
                return true;
                }
        }
}
-->
</script>


i1a.src = "11.jpg"; i1b.src = "12.jpg"; i2a.src = "21.jpg"; i2b.src = "22.jpg"; i3a.src = "31.jpg"; i3b.src = "32.jpg"; 中修改圖形的位置及名稱


 

不要忘記付件也要一起帶回家喔~!!......     >>>>>>我是附件帶我回家<<<<<<<

下載後解壓縮,將圖檔置於網頁同一目錄下

arrow
arrow
    全站熱搜

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