<script>
// 滚动首页图片
isns = navigator.appName == "Netscape";
//定义播放图片张数
img1 = new Image()
img2 = new Image()
img3 = new Image()
//图片路径、文件名
img1.src = 'images/flash.jpg'
img2.src = 'images/flash2.jpg'
img3.src = 'images/flash3.jpg'
nn = 1
function change_img() {
eval('document.form1.pic.src=img' + nn + '.src');
nn++;
if (nn > 3) nn = 1
if (!isns) {
form1.pic.filters.item(0).apply()
form1.pic.style.visibility = 'visible'
form1.pic.filters.item(0).play()
setTimeout(" form1.pic.style.visibility='hidden'", 5000);
}
else
document.pic.visibility = 'visible'
tt = setTimeout('change_img()', 5000)
}
</script>--%>
<script src="js/main.js" language="javascript" type="text/javascript"></script>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
<body class="bg" onLoad="change_img();">
<img src="images/flash.jpg" name="pic" width="1000" height="340" id="pic" style='visibility:hidden;filter:revealtrans(duration=1.0,transition=10)'/>在网页上实现播放图片的功能。但是这个功能的间隔的时间在哪里设置..............main.js里面么
------解决方案--------------------------------------------------------
setTimeout里面的5000,改成其他的值
------解决方案--------------------------------------------------------
tt = setTimeout('change_img()', 5000) 5000毫秒