JAVA Code For YOUR Web Page


If you use the JAVA Code the link on your page will look like the one below.




Member of  ShopNH Web Ring
Next site
Skip next site
Next 5 sites
Previous site
Back 2 sites
Random site
List of sites


JAVA 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. These are lines of program code. If they get it out of line or sequence 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.

Instructions:

Cut and Paste the code below into your Web page and make the following replacements:

  1. Download a Shop New Hampshire Logo image from the Image page.
  2. You may replace the image with the one you have selected.
  3. You must replace _SITE_ID with the number that we have assigned for your site.



<!--  JavaScript Code Example Start  -->

<table border=0><caption><font size="-1">
<a href="http://www.nhcoupons.com/shopnh/">Member of Shop New Hampshire Web Ring</a>
</font></caption>

<tr><td><a href="http://www.nhcoupons.com/shopnh/" target="_top">
<IMG SRC="shopnh.gif" WIDTH=90 HEIGHT=90 ALT="" BORDER="0"></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=shopnh;id=_SITE_ID;next";
if (form.way.selectedIndex == 1)
parent.location="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;skip";
if (form.way.selectedIndex == 2)
parent.location="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;next5";
if (form.way.selectedIndex == 3)
parent.location="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;prev";
if (form.way.selectedIndex == 4)
parent.location="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;sprev";
if (form.way.selectedIndex == 5)
parent.location="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;random";
if (form.way.selectedIndex == 6)
parent.location="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;index";
}
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('<option>List of sites');
document.write('</select>');
document.write('</form></td>');
// End hide -->

</script>

<noscript>
<td valign="middle"><font size="2">
<a href="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;next" TARGET="_top">Next site</a><br>
<a href="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;skip" TARGET="_top">Skip next site</a><br>
<a href="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;next5" TARGET="_top">Next 5 sites</a><br>
<a href="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;prev" TARGET="_top">Previous site</a><br>
<a href="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;sprev" TARGET="_top">Back 2 sites</a><br>
<a href="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;random" TARGET="_top">Random site</a><br>
<a href="http://www.webring.org/cgi-bin/webring?ring=shopnh;id=_SITE_ID;index" TARGET="_top">List of sites</a>
</font></td>
</noscript>

</tr>
</table>

<!--  JavaScript Code Example Stop  -->


Home
Last Updated on August 20, 1999
By Webmaster
Email: ringmaster@nhcoupons.com
jenicasm.gif (5283 bytes)
Visit our sponsor: www.NHcoupons.com
Copyright © 1997, 1998, 1999 Jenica Corporation. All rights reserved.
Shop New Hampshire Web Ring, a service of Jenica Corporation.
10 Pine Street Extension, Unit 80 Nashua, NH 03060
1.888.NHCOUPS (1.888.642.6877) Fax 1.603.880.9209