下面是引用228011as於2005-01-3 10:22 PM發表的 :
抱歉~~我會寫~~
但是我不會像1樓的大大一樣~~
可以出現在回覆中~~
只好請你自己去看了~~
.......
此類教學如能加註在何處加入該程式碼,程式碼用"插入代碼"
的方式貼上來,在程式碼需修改處以附註說明,最好能提供範例網頁。此類教學文章若能依照以上格式,財富30UP
在<head> </head>中加上下面這段複製程式
<script language="JavaScript">
<!--
function namosw_rotate_banner_go()
{
var targetstr = document._rotatetargets[document._rotate_no];
if (targetstr == 'blank') {
window.open(document._rotatelinks[document._rotate_no], 'win1');
} else {
var frameobj;
if (targetstr == '') targetstr = 'self'
if ((frameobj = eval(targetstr)) != null)
frameobj.location = document._rotatelinks[document._rotate_no];
}
}
function namosw_rotate_banner()
{
if (!document._rotateimages) {
document._rotateimages = new Array();
document._rotatelinks = new Array();
document._rotatetargets = new Array();
document._rotate_name = 'image1'
document._rotate_interval = 3000;
document._rotate_itemnum = 3;
<!-- 輪撥圖片檔名及位址指定 -->
document._rotateimages[document._rotateimages.length] = "../aaa/1.gif";
document._rotatelinks[document._rotatelinks.length] = "http://";
document._rotatetargets[document._rotatetargets.length] = "self";
document._rotateimages[document._rotateimages.length] = "../aaa/4.gif";
document._rotatelinks[document._rotatelinks.length] = "http://";
document._rotatetargets[document._rotatetargets.length] = "self";
document._rotateimages[document._rotateimages.length] = "../aaa/5.gif";
document._rotatelinks[document._rotatelinks.length] = "http://";
document._rotatetargets[document._rotatetargets.length] = "self";
setInterval("namosw_rotate_banner()", document._rotate_interval);
document._rotate_no = -1;
}
document._rotate_no++;
if (document._rotate_no == document._rotateimages.length)
document._rotate_no = 0;
document.images[document._rotate_name].src = document._rotateimages[document._rotate_no];
}
// -->
</script>
在<body> </body>下複製程式
<!-- 網頁載入時先載入此段程式碼 -->
<body OnLoad="namosw_rotate_banner();">
<!-- 在你要放照片跑馬燈+影像輪替特效的地方放下面這段 -->
<span class='tpc_content'><marquee width=90% behavior=alternate scrollamount=8><a href="javascript:namosw_rotate_banner_go()" target="_self"><img src="../aaa/5.gif" border=0 onload='if(this.width>560)this.width=560' width="207" height="130" name="image1"></a>