Game Man folder program ver 3.0_javascript tips

Source: Internet
Author: User

/*******************************************\
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 ()");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.