If this is the first time you have customized this folder, clicking the Next button causes the customization wizard to copy Folder.htt from the location listed above to the current folder. If this is not the first time you have customized this folder, the customization wizard will use the existing Folder.htt in the current folder. The wizard then allows you to edit this file. Another file, Desktop.ini, is also created in the directory and is used by the shell to locate Folder.htt.
By default the folder customization wizard invokes notepad to edit Folder.htt, but the .htt extension may be associated with any suitable HTML editor. Microsoft FrontPage is a popular choice.
The general layout of the HTML in the default Folder.htt file is as follows:
Defined for use throughout the file.
Normal Banner DIV:
Banner displayed when the folder view window is large enough.
Banner displayed when the folder view window is too small.
Left Info Panel DIV:
Panel that displays the folder and the selected item attributes, including the thumbnail view. Also includes a commented out section where custom HREF's may be added easily.
FileList object tag:
Instantiation of the FileList control used primarily in the SelectionChanged event script above.
The FileList control is a ShellFolderView object and is documented in the Microsoft Developer Network (MSDN):
Please note that the ShellFolderView object is only valid inside a Folder.htt file. The ShellFolderView object cannot be used anywhere else (for example, in a Visual Basic program or a Web page), because the object is self-initializing and there is no way to get it to navigate to a folder.
While the folder view provided by the default Folder.htt is perhaps the most intuitive, it is not the only display available. The contents of Folder.htt are fully customizable and can provide any of the functionality that a normal Web page provides.
文章 ID：181689 - 上次审阅时间：2012年9月20日 - 修订版本： 1