不断变化的带说明框体的链接
脚本说明:
把如下代码加入区域中
function makeArray(q){
for(i=1 ; i < q ; i++){this[i]=0}}
w=1;
howmanysites=4; // How many sites are listed below?
Sites = new makeArray(howmanysites);
Sites[1] = "http://www.js-planet.com~JavaScript Planet|Hundreds of JavaScripts!";
Sites[2] = "http://www.js-planet.com/dhtml~dHTML Scripts|Free dHTML Scripts!";
Sites[3] = "http://www.altavista.com~Altavista|The best search engine";
Sites[4] = "http://www.dynamicdrive.com~Dynamic Drive|More dHTML Scripts";
function showSites() {
if (w > howmanysites) { w=1; };
var string=Sites[w] + "";
var split1=string.indexOf("~");
var split2=string.indexOf("|");
var url=string.substring(0,split1);
var name=string.substring(split1 + 1,split2);
var word=string.substring(split2 + 1,string.length);
document.form.url.value=url;
document.form.name.value=name;
document.form.word.value=word;
w+=1;
window.setTimeout('showSites()',3000);
// You can change the speed! 3000 = 3 sec delay. 5000 = 5 sec delay, etc.
}
function visitSite() {
window.location=document.form.url.value;
}
showSites();