home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 January
/
Gamestar_80_2006-01_dvd.iso
/
Utility
/
5-11_xp-2k_dd_ccc_wdm_enu_27345.exe
/
Data1.cab
/
_440B8963FEA3411CA198A35924FFACDB
< prev
next >
Wrap
Text File
|
2003-09-15
|
2KB
|
78 lines
// Copyright (c) 2000-2003 Quadralay Corporation. All rights reserved.
//
function WWHFile_Object(ParamTitle,
ParamHREF)
{
this.mTitle = ParamTitle;
this.mHREF = ParamHREF;
}
function WWHFileList_Object()
{
this.mFileList = new Array();
this.mFileHash = new WWHFileHash_Object();
this.fAddFile = WWHFileList_AddFile;
this.fA = WWHFileList_AddFile;
this.fHREFToIndex = WWHFileList_HREFToIndex;
this.fHREFToTitle = WWHFileList_HREFToTitle;
this.fFileIndexToHREF = WWHFileList_FileIndexToHREF;
this.fFileIndexToTitle = WWHFileList_FileIndexToTitle;
}
function WWHFileList_AddFile(ParamTitle,
ParamHREF)
{
this.mFileHash[ParamHREF + "~"] = this.mFileList.length;
this.mFileList[this.mFileList.length] = new WWHFile_Object(ParamTitle, ParamHREF);
}
function WWHFileList_HREFToIndex(ParamHREF)
{
var MatchIndex = -1;
var Match;
Match = this.mFileHash[ParamHREF + "~"];
if (typeof(Match) != "undefined")
{
MatchIndex = Match;
}
return MatchIndex;
}
function WWHFileList_HREFToTitle(ParamHREF)
{
var Title = "";
var MatchIndex;
MatchIndex = this.fHREFToIndex(ParamHREF);
if (MatchIndex != -1)
{
Title = this.mFileList[MatchIndex].mTitle;
}
else
{
Title = WWHStringUtilities_EscapeHTML(unescape(ParamHREF));
}
return Title;
}
function WWHFileList_FileIndexToHREF(ParamIndex)
{
return this.mFileList[ParamIndex].mHREF;
}
function WWHFileList_FileIndexToTitle(ParamIndex)
{
return this.mFileList[ParamIndex].mTitle;
}
function WWHFileHash_Object()
{
}