Text file of source used in Playing Background Music 3 ( js-bgs3.htm ) <HTML> <HEAD> <TITLE> Playing Background Music 3 </TITLE> <SCRIPT> <!-- Activate Cloaking Device //*************************************************************** // Playing Background Music 3 // by Tim Wallace (timothy@essex1.com) // // Copyright (C)1997 Timothy Wallace. All Rights Reserved. //*************************************************************** var browser_check=""; if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=3) browser_check="n3_or_better"; if(navigator.appName.substring(0,9)=="Microsoft") browser_check="msie"; function playSong(selection) { if (browser_check=="n3_or_better" || browser_check=="msie") window.location.href=selection; else alert("\nSorry but this sound scheme is NOT supported by your browser."); } // Called by View Source button - displays text file of source. function viewSource() { alert("\nA text file with source will be loaded to the full window.\n\nUse your browser BACK button to return to the examples."); top.window.location.href="js-bgs3.txt"; } // Called by About This button function about() { alert("\nOf course, this example requires sound capabilities.\n\nOnly Netscape 3 or better and MSIE are allowed access to this sound scheme."); } // Deactivate Cloaking --> </SCRIPT> </HEAD> <BODY BGCOLOR="#00FFFF"> <CENTER><STRONG><EM> <FONT COLOR="#800000" SIZE=+3>Playing Background Music 3</FONT> </EM></STRONG></CENTER> <BR><BR> <CENTER> <FONT COLOR=000000 SIZE="+1">About as simple as it gets... just open the player!</FONT> <BR><BR> <FONT COLOR=000000 SIZE="+0">(unfortunately, no looping is available with this method)</FONT> <BR><BR> <FONT COLOR=0000ff SIZE="+1"><U>Netscape 3.0 or better OR MSIE required.</U></FONT> </CENTER> <BR><BR> <CENTER><FORM><TABLE BORDER="4"><TR> <TD><INPUT TYPE="button" VALUE="PLAY 1" onClick="playSong('js-bgs31.mid')"></TD> <TD><INPUT TYPE="button" VALUE="PLAY 2" onClick="playSong('js-bgs32.mid')"></TD> <TD><INPUT TYPE="button" VALUE="PLAY 3" onClick="playSong('js-bgs33.mid')"></TD> <TD><INPUT TYPE="button" VALUE="PLAY 4" onClick="playSong('js-bgs34.mid')"></TD> </TR></TABLE></FORM></CENTER> <BR> <CENTER><FORM NAME="myform"> <TABLE BORDER="0" WIDTH="400"><TR> <TD ALIGN="center" WIDTH="200"> <INPUT TYPE="button" VALUE="View Source" onClick="viewSource()"> </TD><TD ALIGN="center" WIDTH="200"> <INPUT TYPE="button" VALUE=" About This " onClick="about()"> </TD></TR></TABLE> </FORM></CENTER> <BR> <HR WIDTH=200 ALIGN=center SIZE=2> <CENTER><ADDRESS><STRONG> Playing Background Music 3<BR> by Tim Wallace <BR> timothy@essex1.com </STRONG></ADDRESS></CENTER> <HR WIDTH=200 ALIGN=center SIZE=2> <BR> </BODY> </HTML>