The Tunnels and Trolls Java Web Wring.

 

What is it?

The Wring works like a 'web-ring', it provides links for pages that have a certain theme - in this case the tabletop role-playing game Tunnels and Trolls. It's a small Java Applet (330x64 pixels, 6-12K download) that can easily be inserted onto any web page - like the Geocities guide.

I wrote it as an alternative to using any third party web-ring, most of which I find quite intimidating, and often too large for me to want to place on my pages.

Plus, you don't have to join the Wring to use it on your web page!

 

What each bit of the new Wring applet does:

This button links to the previous site on the list.

This button links to the next site on the list.

This is a "pick list" of all the sites on the Wring, selecting a site links you to it.

The buttons will look the same on any browser but the list may look different. This is how Explorer 4.5 presents them.

 

Who's on the Wring?

Anyone with a home page with significant Tunnels and Trolls content. There's a list of entries at http://www.aegidian.org/tnt/wringindex.html. I've included most people's T&T home pages from The Castle of Otranto Reference, but left out the commercial sites. My thinking is only to include those sites whose maintainers are will include the Wring on their own pages.

 

How do I put the Wring on my web page?

For the original, Java 1.0 wring all you need to do is to insert the following scrap of HTML into your page.
<APPLET CODE="TNTWring" CODEBASE="http://www.aegidian.org/tnt/"
ALT="Java Web Wring Applet" WIDTH=330 HEIGHT=64 ALIGN=bottom>
</APPLET>

As long as there's an absolute reference to the Applet (that's the 'CODEBASE' part) it'll link to the Applet sitting in Otranto's rpg directory.

For the new, Java 1.1 wring you should use:-
<APPLET CODE="NewWring" CODEBASE="http://www.aegidian.org/tnt/"
ALT="Java Web Wring Applet" WIDTH=330 HEIGHT=64 ALIGN=bottom>
</APPLET>

If your page is listed in the pick list then the Wring will pop up exactly as it is above, if you don't have an entry already (and why not?) then you won't get the [<-] and [->] buttons. They only pop up if your page is listed.

You can request entry to the Wring's list by sending details of your page to The Castle of Otranto's Giles Williams.

 

Technical FAQ:

How does it work?
The applet checks wringindex.html looking for links, which it collects into a Vector of URLs. It checks each link it finds against the URL of the page the applet is placed (its documentBase) to see if that page is included. If it is, it registers that the page is part of the Wring and adds the forward and back buttons.
Where will it work?
The original wring will work on any browser running Java 1.0.2 or Java 1.1. That's Netscape 3 and up, Internet Explorer 3 and up, iCab, HotJava, CyberDog, and most other recent browsers.
The new wring will work on any browser running Java 1.1. That's Internet Explorer 4.1 and up, iCab, and HotJava.
Why doesn't it work on my browser?
Ah hah! I don't know - mail me with details of how it doesn't work.
I don't like the colors/messages/fonts it uses -
You want to know how to customise the T&T Wring applet!
Can you write something similar for me?
I'd love to. If it's worthy I'll do it for free, otherwise I get £30 ($50) an hour. Mail me.
How come you're not doing any browser detection or using HTML 4.0 compliant <OBJECT> tags?
Oh-ho! We've got a live one here! To use the TNTWring or NewWring applet in HTML4.0's <OBJECT> tag, you could use the following code, but remember only a very few browsers support the use of this tag (so far):-
<OBJECT CLASSID="java:NewWring.class"
CODEBASE="http://www.aegidian.org/tnt/"
CODETYPE="application/java" WIDTH="330" HEIGHT="64"
STANDBY="Loading TnT Magic!" TITLE="The Wringer">
<H3 ALIGN=CENTER>Tunnels and Trolls</H3>
</OBJECT>
For full browser detection, and the clever HTML 4.0 compliancy you need to use some Javascript, this code should work on any browser capable of Javascript and Java:-
<SCRIPT TYPE="text/javascript"><!--
if (navigator.appName=="Netscape")
{
if (navigator.javaEnabled())
{
document.write("<APPLET CODE=\"TNTWring\" ");
document.write("CODEBASE=\"http://www.aegidian.org/tnt/\" ");
document.write("WIDTH=330 HEIGHT=64></APPLET>");
}
else
document.write("<H3 ALIGN=CENTER>Tunnels and Trolls</H3>");
}
else
{
if (navigator.javaEnabled())
{
if (parseFloat(navigator.appVersion)<4.00)
{
document.write("<APPLET CODE=\"TNTWring\" ");
document.write("CODEBASE=\"http://www.aegidian.org/tnt/\" ");
document.write("WIDTH=330 HEIGHT=64></APPLET>");
}
else
{
document.write("<OBJECT CLASSID=\"java:NewWring.class\" ");
document.write("CODEBASE=\"http://www.aegidian.org/tnt/\" ");
document.write("CODETYPE=\"application/java\" WIDTH=\"330\" HEIGHT=\"64\" ");
document.write("STANDBY=\"Loading TnT Magic!\" TITLE=\"The Wringer\">");
if (navigator.appName!="iCab")
{
document.write("<APPLET CODE=\"TNTWring\" ");
document.write("CODEBASE=\"http://www.aegidian.org/tnt/\" ");
document.write("WIDTH=330 HEIGHT=64></APPLET>");
}
else
document.write("<H3 ALIGN=CENTER>Tunnels and Trolls</H3>");
document.write("</OBJECT>");
}
}
else
document.write("<H3 ALIGN=CENTER>Tunnels and Trolls</H3>");
}
//--></SCRIPT>


back to The Castle of Otranto T&T Reference