Hey all, I am building an art web site for a friend of mine. And while I am building it he wants his new domain to redirect his new visitors to his current site(I didnt do that site, it sucks). Let me know what is going wrong, I took this code from a tutorial from one of my school text books, and the bottom two scripts arent working. What do you guys/gals think? Thanks for the input.
<
html>
<head>
<title>Utopia0666.com</title>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--Hide from old browsers
function chngSite() {
alert("You are to be transported to the current site location!")
location = "
http://www.geocities.com/chrono0666/"
}
//-->
</SCRIPT>
</head>
<body>
<center><img src="fun.jpg" HSPACE=5 vspace=5 height=64 weight=300></center>
<center><hr width="59%"></center>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--Hide from old browsers
document.bgColor="#c10000"
var tNow = new Date()
var tlocDate = tNow.toLocaleString()
var tDate = tlocDate.substring(0, 35)
document.write("<H3><CENTER>Welcome, today is "+tDate+"</CENTER></H3>")
var intro1 = "Hi, thanks for visiting my Web site. My new page is currently "
var intro2 = "under construction. You can click <a href="
http://www.geocities.com/chrono0666/" here </a> or "
var intro3 = "wait 10 seconds to me moved automatically to my current site. "
var introMsg = intro1+intro2+intro3
document.write("<H4><CENTER>"+introMsg+"</CENTER></H4>")
setTimeout("chngSite()",10000)
//-->
</SCRIPT>
</body>
</
html>