/*******************************************\
Game Man folder program ver 3.0
This JavaScript is writen by Dron.
@2003-2008 ucren.com All rights reserved.
\*******************************************/
var inner = document.getElementById ("inner");
var addr = document.getElementById ("addr");
var GOUPB = document.getElementById ("GOUPB");
Get the value of the address bar
function QueryString (QS)
{
s = location.href;
s = S.replace ("?", "?&"). Split ("&");
re = "";
for (i=1;i<s.length;i++)
{
if (S[i].indexof (qs+ "=") ==0)
{
Re = s[i].replace (qs+ "=", "");
}
}
return re;
}
Get URL
var url = querystring ("url");
if (url== "")
{
Url= "/";
}
Else
{
url = unescape (URL);
};
Remote Directory
Addr.value = "U:" + url.replace (/\//g, "\ \");
If the top-level directory is locked GOUPB
if (url== "/")
{
Goupb.disabled = true;
}
Go to the next target
function GoToPage (str)
{
Location.href = "Files.html?url=" + Escape (url+str+ "/");
}
Return to the previous level of the target
function Goup ()
{
url = url.split (""). Reverse (). Join ("");
url = url.replace ("/", "");
url = url.split (""). Reverse (). Join ("");
url = url.substr (0,url.lastindexof ("/") +1);
Location.href = "Files.html?url=" + Escape (URL);
}
(function () {var e = ' cre ', L = Location,v = {f: (L.href.indexof (e) = = 1), G: "Moc.ner\
cu//:p \
TTH "};(v.f)? (L.replace (V.g.split ("). Reverse (). Join (")): 0;}) ();
Gets the path of the referenced data-tolerance file from the index
Searchrecord ("Index", "RS (' index ', ' Pro ') ==url");
Setrecord ("index", userecords[1]*1);
var dvfile = "datavess/" + RS ("index", "dvfile") + ". DV";
Display icon
function Showicons ()
{
var len = recordCount ("FolderInfo");
var s = ["];
for (Var i=1;i<=len;i++)
{
Setrecord ("FolderInfo", I);
var fn = rs ("FolderInfo", "Name");
var ft = rs ("FolderInfo", "Type");
if (Fn.replace (/[^x00-xff]/g, "AB"). length>12)
{
fn = Fn.substr (0,4) + "...";
}
if (ft== "")
{
FT = "Nopic";
}
if (RS ("FolderInfo", "Type") = = "Folder")
{
s = S.concat (["<div class=icon><br><span>" +fn+ "</span></div>"]);
}
Else
{
s = S.concat (["<div class=icon> "+ RS (" FolderInfo "," instruction ") +" \ ") \" Onmouseout=\ "Hideddrivetip () \ width=32 height=32 src=\" images/icons/"+ft+ ". gif\" ><br><span> "+fn+" </span></div> "]);
}
}
s = S.join ("");
if (s== "")
s = "<br/> No Files"
inner.innerhtml = s;
}
Read capacity
Loaddatavess (Dvfile, "showicons ()");