Meta-Page and JavaScript


Meta-Pages

I was just browsing around and I saw something new and thought it was worth sharing. I'm not sure what they're called, but I'm calling them Meta-Pages. Comsider the following three files :

test1.html
<html><header>
<META HTTP-EQUIV="REFRESH" CONTENT="3; URL=test2.html">
</header>
<body>
<img src="images/spot.gif">
</body>
</html>
test2.html
<html><header>
<META HTTP-EQUIV="REFRESH" CONTENT="5; URL=africa.html">
</header><body>
<img src="images/japan.gif">
</body>
</html>
africa.html
<TITLE>Play Time</TITLE>
<body text="#00b0b0" bgcolor="#004040" link="#FFFF00"
vlink="#C0C0C0" alink="#FF8000">
<center>
<table>
<td><font size=7>Play Time</font>
<td><img src="images/cyberdemon.gif" align=middle><tr>
<td><td><center>"<a href="sounds/dsspidth.au">Die Scum!</a>"</center><tr>
</table>
</center>
<p>
<!-- etc... -->

I put these files in my public_html directory and here's what happened when I pointed Netscape at
http://www.cs.rpi.edu/~escobarj/test1.html


Notice the lines that look like this :

<META HTTP-EQUIV="REFRESH" CONTENT="3; URL=test2.html">
tell Netscape to wait 3 seconds and then go to the specified URL. The ``3'' seconds and the specified URL are the arguments to ``CONTENT''. I stumbled across this by accident. I looked at someone's page - it displayed a really nice image and then went to the main page. I'm not sure what other things you can do with the ``META HTTP-EQUIV'' stuff though.



JavaScript

I tried getting some Java to work on RCS, but I think JavaScript works. JavaScript is basically (for our intents) special Java code sandwiched between script language="JavaScript"... script tags. I stole a JavaScript program called ``TickerTape'' and made a page (which is linked in from the CS1 page) that demonstrates this. Feel free to look at it and copy the HTML/JavaScript code if you wish. It's at :
http://www.cs.rpi.edu/~escobarj/cs1/rec/R03/ticker.html