home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Plus! (NZ) 2000 May
/
PCW_MAY2000.iso
/
Topshare
/
flyswat.exe
/
FlyIE.dll
/
JAVASCRIPT
/
102
Wrap
Text File
|
1999-10-01
|
2KB
|
93 lines
<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript1.2">
///////////////// BEGIN FLYOBJECTS ///////////////////////////////
var flyobjectsversion = 5;
// Javascript Objects which are used by the Win32 code
// when generating data.
// Any of the flystyle pages should be able to assume that
// these data structures are present.
// A provider object
function FSProvider(tag, name)
{
this.tag = tag;
this.name = name;
}
// The global provider hash
function FSProviderHash()
{
this.AddProviderList = fsprovhashAddProviderList;
this.LinkTypeArray = new Array();
this.ProviderListArray = new Array();
this.index = 0;
this.GetProviderList = fsGetProviderList;
}
// Add provider list to provider hash
function fsprovhashAddProviderList(linktype, providerList)
{
this.LinkTypeArray[this.index] = linktype;
this.ProviderListArray[this.index] = providerList;
this.index++;
}
// Get provider list from provider hash
function fsGetProviderList(linktype)
{
var providers = new Array();
for (var l in this.LinkTypeArray)
{
if (this.LinkTypeArray[l] == linktype)
{
providers = this.ProviderListArray[l];
return providers;
}
}
return providers;
}
// The linktype object
function FSLinkType(name, type)
{
this.name = name;
this.type = type;
}
// the keyword object
function FSKeyword(name, code, linktypes, mt, cat, categoryWide, categoryCode)
{
this.name = name;
this.code = code;
this.mt = mt;
this.linktypes = linktypes;
this.category = cat;
this.categoryWide = categoryWide;
this.categoryCode = categoryCode;
}
// The category object
function FSCategory(name, keywords, hidden)
{
this.name = name;
this.keywords = keywords;
this.hidden = hidden;
}
// The environment object
function FSEnvironment(userID, sessionID, requestID, distTag, redirectorURL, src)
{
this.userID = userID;
this.sessionID = sessionID;
this.requestID = requestID;
this.distTag = distTag;
this.redURL = redirectorURL;
this.src = src;
}
///////////////// END FLYOBJECTS ///////////////////////////////