簡單點說就是用js控制img的src屬性,達到切換效果 function swapIC2(n) { document["ICImage2"].src=arICImages2[n]; } ===================================================== <script language="javascript"> //這是頁面裡主要的程式碼,用了陣列 var arICImages2 = new Array(6);arICImages2[0]="
http://i.thestylehome.com/disimage.php?id=10002608&img=image.jpg
http://i.thestylehome.com/disimage.php?id=10002608&img=10002608_1_image.jpg
http://i.thestylehome.com/disimage.php?id=10002608&img=10002608_3_image.jpg
http://i.thestylehome.com/disimage.php?id=10002608&img=10002608_5_image.jpg
簡單點說就是用js控制img的src屬性,達到切換效果 function swapIC2(n) { document["ICImage2"].src=arICImages2[n]; } ===================================================== <script language="javascript"> //這是頁面裡主要的程式碼,用了陣列 var arICImages2 = new Array(6);arICImages2[0]="
http://i.thestylehome.com/disimage.php?id=10002608&img=image.jpg
";arICImages2[1]="http://i.thestylehome.com/disimage.php?id=10002608&img=10002608_1_image.jpg
"; arICImages2[2]="http://i.thestylehome.com/disimage.php?id=10002608&img=10002608_3_image.jpg
"; arICImages2[3]="http://i.thestylehome.com/disimage.php?id=10002608&img=10002608_5_image.jpg
"; function swapIC2(n) { document["ICImage2"].src=arICImages2[n]; } ... </script>