TOB Web Ring
Javascript Menu Source Code



[ Home | Examples | Table Code | Standard Code | Vertical Code | Javascript Code ]


Here is the code for the JavaScript, thanks to the Java Script Ringmaster:



One thing you need to remember about java script code. It needs to be in a specific format. By this I mean that the way that it is displayed here is the EXACT way that it needs to stay. It is like lines of program code. Get it out of line or sequence and you will get java errors when you try to load the page. The best way to keep this from happening is to turn "word wrap" off. <!---------------------------------------------------------------------------> <!-- START COPYING HERE FOR JAVASCRIPT CODE ---------------------------------> <!---------------------------------------------------------------------------> <table border=0><caption><font size=1> <a href="http://www.oocities.org/heartland/hills/1222" target="_top">Member of the TOB Web Ring</a> </font></caption> <tr><td><a href="http://www.oocities.org/heartland/hills/1222" target="_top"> <img src="//www.oocities.org/heartland/hills/1222/tobring.gif" alt="TOB Web Ring" width=90 height=60></a></td> <script language="JavaScript"> <!-- Hide this from older browsers function gotoPage (form) { if (form.way.selectedIndex == 0) parent.location="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;next"; if (form.way.selectedIndex == 1) parent.location="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;skip"; if (form.way.selectedIndex == 2) parent.location="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;next5"; if (form.way.selectedIndex == 3) parent.location="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;prev"; if (form.way.selectedIndex == 4) parent.location="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;sprev"; if (form.way.selectedIndex == 5) parent.location="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;random"; } document.write('<td valign="middle"><form name="JSWR">'); document.write('<input type="button" value="Go !!!" onClick="gotoPage(this.form)"><br>'); document.write('<select name="way">'); document.write('<option checked>Next site'); document.write('<option>Skip next site'); document.write('<option>Next 5 sites'); document.write('<option>Previous site'); document.write('<option>Back 2 sites'); document.write('<option>Random site'); document.write('</select>'); document.write('</form></td>'); // End hide --> </script> <noscript> <td valign="middle"><font size="2"><ul> <li><a href="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;next" TARGET="_top">Next site</a> <li><a href="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;skip" TARGET="_top">Skip next site</a> <li><a href="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;next5" TARGET="_top">Next 5 sites</a> <li><a href="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;prev" TARGET="_top">Previous site</a> <li><a href="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;sprev" TARGET="_top">Back 2 sites</a> <li><a href="http://www.webring.org/cgi-bin/webring?ring=TOBWebRing;id=SITE_ID_GOES_HERE;random" TARGET="_top">Random site</a> </ul></font></td> </noscript> </tr> </table> <!---------------------------------------------------------------------------> <!-- STOP COPYING HERE FOR JAVASCRIPT CODE ---------------------------------> <!--------------------------------------------------------------------------->




[ Home | Examples | Table Code | Standard Code | Vertical Code | Javascript Code ]




This page hosted by GeoCities Get your own Free Home Page