Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/457.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
网守javascript_Javascript_Html - Fatal编程技术网

网守javascript

网守javascript,javascript,html,Javascript,Html,我正在使用一个名为gatekeeper的脚本。这是我的密码: <!-- start GateKeeper code --> <!-- http://www.HTMLisEasy.com/keeper/ --> <form name="keeper" action="javascript:location.href = window.document.keeper.page.value + '/index.html'" style="margin:0;">

我正在使用一个名为gatekeeper的脚本。这是我的密码:

<!-- start GateKeeper code -->
<!-- http://www.HTMLisEasy.com/keeper/ -->
<form name="keeper" action="javascript:location.href =
    window.document.keeper.page.value + '/index.html'" style="margin:0;">
   <div style="display:inline;">
      <input type="text" name="page" />
      <input type="submit" value="Go" />
      <noscript>
         <div style="display:inline;color:#ff0000;
    background-color:#ffff66; font:normal 11px tahoma,sans-serif;">
            <br />Javascript is required to access this<br />area. Yours seems
            to be disabled.
         </div>
      </noscript>
   </div>
</form>
<!-- end GateKeeper code -->

访问此
区域需要使用Javascript。你的似乎 被禁用。
与其在那里寻找文件夹,我想知道它是否可以在一个文件夹中寻找一个文件夹,而不用将文件放在所有文件夹所在的位置。如果这不可能,请告诉我


也许现在这样更好,当你在框中输入一些东西时,它会查看那里是否是一个文件夹,然后打开index.html,但我希望它查看一个文件夹,其中包含所有其他文件夹,而不仅仅是它现在所在的位置。

如果我理解正确,您应该能够在表单开始标记中将文件夹作为操作字符串的前缀:

<form name="keeper" action="javascript:location.href = 'subfolder/' +
    window.document.keeper.page.value + '/index.html'" style="margin:0;">


第一行末尾的“子文件夹”是您想要的目录。

谢谢!我知道这很简单!对于OP和任何其他想要使用网守“解决方案”的人,请注意,由于机密页面列在您的浏览器历史记录中,任何拥有您用来访问您的站点的设备的人也可以访问您的站点,直到历史记录被清除为止。