我需要設置約1秒的時間間隔,這樣的功能:的setInterval的隨機函數
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="/documents/templates/bilgiteknolojileri/standalone.swf"
myimages[2]="/documents/templates/bilgiteknolojileri/mobil.swf"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<embed wmode="transparent" src="'+myimages[ry]+'" height="253" width="440"></embed>')
}
random_imglink()
請SMB幫助!