<html> <head> <script language="Javascript" type="text/javascript"> var data; function pingTimeoutData(){ var oRequest = new XMLHttpRequest(); var sURL = window.location.href.substring(0, window.location.href.lastIndexOf("/") + 1) + "data.txt"; oRequest.open("GET",sURL,false); oRequest.send(null); data = oRequest.responseText; oRequest.abort(); } </script> <script type="text/javascript"> function await_9(){ pingTimeoutData(); if (data == 9){ //PLAY document.movie1.Play(); setTimeout("await_9()", 9000); }else if(data == 8){ // STOP and REWIND document.movie1.Rewind(); document.movie1.Stop(); document.movie1.Rewind(); setTimeout("await_9()", 1000); }else if(data == 7){ // GO TO CS MACHINES setTimeout("window.location='http://www.cs.utexas.edu/~jcasares/current_rev.html?noCache=' + Math.floor(Math.random()*99999)", 5000); }else if(data == 5){ // FLASH BLUE document.bgColor='#0000FF'; setTimeout("await_9()",data * 1000); }else if(data == 4){ // RESET TO BLACK document.bgColor='#000000'; setTimeout("await_9()",data * 1000); }else{ // KEEP COUNTING setTimeout("await_9()",data * 1000);} } </script> <title>RTF 331: Soundscapes Project 1</title> <style> table{ margin-left: auto; margin-right: auto; text-align: left; } </style> </head> <body bgcolor="Black"> <table> <tr> <td> <OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="180" height="160" id="movie1" > <PARAM name="scale" value="tofit"> <EMBED width="0" height="0" src="t2_cubes_audio.mov" name="movie1" autoplay="false" enablejavascript="true" loop="false" controller="false"> </EMBED> </OBJECT> </td> </tr> </table> <script type="text/javascript"> await_9(); </script> </body> </html>