This is the code I am having problems with
Code:
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--Hide from old browsers
document.bgColor="red"
document.bgColor="white"
document.bgColor="blue"
document.bgColor="white"
document.bgColor="green"
document.bgColor="white"
document.bgColor="blanchedalmond"
var tNow = new Date ()
var tlocDate = tNow.toLocaleString()
var tDate = tlocDate.substring(0,10)
document.write("<H2><CENTER>Welcome, today is "+tDate+"</CENTER></H2>")
var intro1 = "Hi thanks for visiting our website, but we have moved. Please make a note "
var intro2 = "of our new URL (www.funphonics.com) and notify the webmaster about our new "
var intro3 = "location. Click<A Href='http://www.scsite.com/'> here </A> or wait 15 seconds "
var intro4 = "to be moved automatically to our new site."
var introMsg = intro1+intro2+intro3+intro4
document.write("<H4>FONT Color='firebrick'>"+introMsg+"</H4>
//-->
</SCRIPT>
The red line is where the problem is. I don't see why it's causing the problem as I have entered it exactly like my Javascript textbook has it.
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.
Welcome to the
New Age
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.
Most likely using
FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator
Welcome to the
New Age