<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function makeArray(q){
for(i=1 ; i < q ; i++){
this[i]=0
}
}
w=1;
howmanysites=4;
Sites = new makeArray(howmanysites);
Sites[1] = "http://www.yahoo.co.jp";
Sites[2] = "http://www2.crl.go.jp/cgi-bin/JST.cgi";
Sites[3] = "http://www.drive.co.jp/drive/post/index.html";
Sites[4] = "http://www.telgeo.com/";
Names = new makeArray(howmanysites);
Names[1] = "ヤフー";
Names[2] = "日本標準時";
Names[3] = "郵便番号検索";
Names[4] = "電話番号検索";
function showSites() {
if (w > howmanysites) {
w=1;
}
var string=Sites[w]
var name=Names[w]
document.form.url.value=string;
document.form.name.value=name;
w+=1;
window.setTimeout('showSites()',2500);
}
function visitSite() {
window.open(document.form.url.value);
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<center>
<form name=form>
<table><tr><td align=center>
<input type=button name=name value="Visit" onClick="visitSite()" size=25>
<input type=hidden name=url value="">
</td></tr></table>
</form>
</center>
<script>
showSites();
</script>
</BODY>
</HTML>
|