anchor.htm
来自「Windows Web脚本开发指南/(美) Dan Heflin, Todd N」· HTM 代码 · 共 53 行
HTM
53 行
<html XMLNS:IE>
<head>
<title>Open in Web Folder View</title>
<STYLE>
A {behavior: url(#default#AnchorClick);}
</STYLE>
</head>
<script language="JavaScript">
function gotoFolder(){
if (document.all.selWindowType.value == "self")
document.all.objHttpFolder.navigate("http://localhost/chapter03/");
else
document.all.objHttpFolder.navigateFrame("http://localhost/chapter03/", "top");
}
</script>
<body bgcolor="#FFCC66">
<IE:httpFolder id="objHttpFolder" style="behavior:url(#default#httpFolder)" />
<table border="0" width="100%">
<tr>
<td width="16%"><font color="#FF0000"><img border="0" src="anchor.gif" align="left" width="70" height="70"></font> </td>
<td width="84%">
<p align="center"><font size="6"><font color="#FF0000">Anchor</font> DHTML
Default Behavior</font></td>
</tr>
</table>
<p><br>
Click <A HREF = http://localhost/chapter03/
FOLDER = http://localhost/chapter03/
TARGET = "self">Here</A> to view the Chapter 3 examples directory</p>
<table border="0" width="100%">
<tr>
<td width="16%"><img border="0" src="folder.gif" width="64" height="64"></td>
<td width="84%">
<p align="center"><font size="6"><font color="#FF0000">httpFolders</font>
DHTML Default Behavior</font></td>
</tr>
</table>
<p>Select a window and press the 'View Folder' button to display the Chapter 3
example direstory</p>
<form>
<table border="0" width="100%">
<tr>
<td width="36%">Window: <select size="1" name="selWindowType" id="selWindowType">
<option value="self">Self</option>
<option value="top">New Window</option>
</select></td>
<td width="64%"><input onclick="gotoFolder()" type="button" value="View Folder" name="btnViewFolder"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?