下面是引用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>