As of v1.03 you can use TeamStats with multiple leagues at the same time. You don't have to put different leagues on different pages. To load additional leagues into TeamStats (aside from the one given in the Applet-tag) you use the JavaScript-functions setLeaguefile() and loadLeaguefile(). setLeaguefile() first downloads the league and then displays it. Because the league data is transported across the net there is a small delay before the league is displayed. If the league already has been downloaded it will be displayed immediately. loadLeagufile() will download the league in the background without displaying it. To display the league you have to use setLeaguefile(). loadLeaguefile() can be used in the onLoad-event in the BODY-tag to automatically download leagues when the page is loaded. More information on JavaScript-functions is available here.
When you display Previous matches in Compare teams TeamStats will automatically look through the leagues that have been loaded and try to find meetings from previous seasons. In order for this to work the teams have to have the exact same names in the different leagues. It's also important that the parameters LeagueName and Season are set so it's clear in what league the meeting occurred. The leagues are sorted according to the value of the Season parameter. So it's important to be consistent when using this parameter. It doesn't matter what format you use (1996/97, 96-97, 1997 etc) as long as you use the same format. Don't use 1995/96 one season and 96-97 the next.
Note that TeamStats will go through all the loaded leagues looking for previous meetings. That means that if you have two leagues with nothing in common but with teams with the same names TeamStats will display these matches as previous meetings. To prevent this you can use the NoPrevSeason parameter. If you set it to "True" TeamStats will not look for matches from previous seasons.
This is an example of a league displaying meetings
from previous seasons.