ASP implements structured listing and viewing all files under a path

Source: Internet
Author: User
 
<! Web ASP code, can be structured list and view all files under a path, can be used to dynamically generate a website map, the specific case please see my home map: http://freehost08.websamba.com/hzhzhz/sitemap.htm>
<! Author: Tongji huangzheng http://websamba.com/hzhzhz/ application Please indicate the source>
<Style this style sheet must be retained>
<! --
U. {background-color: FEDC76; cursor: hand ;}
A {background-color: 97EF53 ;}
Font {padding-bottom: 0; padding-top: 0; margin-bottom: 0; margin-top: 0 ;}
-->
</Style>
<Title> Map of files on this site </title>
<Body>
<Span id = shhi style = "text-align: right; width: 20%; position: absolute; bottom: 0">
<A href = # onclick = 'jscript: if (rightf. style. display = "") rightf. style. display = "none"; else rightf. style. display = ""; return false 'style = background-color: red> Hide/Show => </a>
</Span>
<Div id = rightf style = "height: 100%; width: 80%; position: absolute; right: 0; top: 0">
<Iframe align = right name = "right" scrolling = auto style = "height: 100%; width: 100%;" src = "about: blank"> </iframe>
</Div>
<Base target = "right">
<Script language = VBScript>
<! --
Sub window_onscroll ()
Rightf. style. pixelTop = document. body. scrollTop
Shhi. style. top = document. body. clientHeight + document. body. ScrollTop-30
End Sub
Sub DoFold (index) 'process of displaying and hiding a node
Dim itm
Set itm = eval ("divfold" & index)
If itm. style. display = "none" then
Itm. style. display = ""
Else
Itm. style. display = "none"
End if
Set itm = document. all (itm. SourceIndex-2)
If itm. innerText = "0" then
Itm. innerText = "1"

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.