当前位置: 移动技术网 > IT编程>开发语言>.net > 三层动态下拉菜单的例子

三层动态下拉菜单的例子

2018年09月14日  | 移动技术网IT编程  | 我要评论

尉劼,龙腾小说阅读,美军推战车现代化

写了一个三层动态读取文件夹的下拉菜单的例子,供大家参考!
<%
得到文件夹路径。注意设置文件名字
urlpath=server.mappath("ook")
set fsobrowse=createobject("scripting.filesystemobject")

设置文件夹路径
if request("path")="" then
lpath=urlpath&""
else
lpath=request("path")&""
end if
%>

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta http-equiv=pragma content=no-cache>
<title>中国国际航空公司</title>
<link rel="stylesheet" href="news.css">

<script language="javascript1.2">
ns4 = (document.layers) ? 1 : 0;
ie4 = (document.all) ? 1 : 0;
ver4 = (ns4 || ie4) ? 1 : 0;

if (ver4) {
    with (document) {
        write("<style type=text/css>");
        if (ns4) {
            write(".parent {position:absolute; visibility:visible}");
            write(".child {position:absolute; visibility:visible}");
            write(".regular {position:absolute; visibility:visible}")
        }
        else {
            write(".child {display:none}")
        }
        write("</style>");
    }
}

function getindex(el) {
    ind = null;
    for (i=0; i<document.layers.length; i++) {
        whichel = document.layers[i];
        if (whichel.id == el) {
            ind = i;
            break;
        }
    }
    return ind;
}

function arrange() {
    nexty = document.layers[firstind].pagey +document.layers[firstind].document.height;
    for (i=firstind+1; i<document.layers.length; i++) {
        whichel = document.layers[i];
        if (whichel.visibility != "hide") {
            whichel.pagey = nexty;
            nexty += whichel.document.height;
        }
    }
}

function initit(){
    if (!ver4) return;
    if (ns4) {
        for (i=0; i<document.layers.length; i++) {
            whichel = document.layers[i];
            if (whichel.id.indexof("child") != -1) whichel.visibility = "hide";

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网