We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6687061 commit fc9044bCopy full SHA for fc9044b
HTML之实现可隐藏式导航栏/tool.html
@@ -0,0 +1,27 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+ <meta charset="UTF-8">
5
+ <title>工具框架</title>
6
+ <script>
7
+ function hideOrDisplayNavFrame()
8
+ {
9
+ var frameset = window.self.top.document.getElementById("myset");
10
+ var button = window.self.document.getElementById("mybtn");
11
+ if (button.value == "隐藏导航栏")
12
13
+ frameset.cols = "0px, *";
14
+ button.value = "显示导航栏";
15
+ }
16
+ else
17
18
+ frameset.cols = "150px, *";
19
+ button.value = "隐藏导航栏";
20
21
22
+ </script>
23
+</head>
24
+<body>
25
+ <input id="mybtn" type="button" value="隐藏导航栏" onclick="hideOrDisplayNavFrame();" />
26
+</body>
27
+</html>
0 commit comments