migrating.htm
来自「非常好的JAVASCRIPT树型」· HTM 代码 · 共 71 行
HTM
71 行
<HTML><HEAD><TITLE>Migrating from version 2</TITLE>
<link rel='stylesheet' href='ftstyle.css'></HEAD><BODY><P>
<CENTER><H1>Migrating from version 2</H1></CENTER><BR>
<P><B>Q:</B> <B>How do I migrate from version 2?</B>
<P><B>A:</B> This describes the steps to take to migrate from version 2 of foldertree, as found on Marcelino Martin's web site, to version 4. It describes what changes need to be made to the files contained in the version 2 download. Working directory refers to the directory of your current version 2 installation. Download directory refers to the directory where you downloaded and installed the new version 4.
<OL><LI>Download the version 4 zip file and unzip into a new download directory.</LI>
<P><LI>In the file photosturism.js in your working directory, change all occurrences of 'foldersTree' to 'fT'.</LI>
<P><LI>Delete the following existing files in your working directory:<P><UL><LI>ftv2folderclosed.gif</LI>
<LI>ftv2folderopen.gif</LI>
<LI>ftv2doc.gif</LI>
<LI>ftv2mnode.gif</LI>
<LI>ftv2pnode.gif</LI>
<LI>ftv2plastnode.gif</LI>
<LI>ftv2mlastnode.gif</LI>
<LI>ftv2link.gif</LI>
<LI>ftv2blank.gif</LI>
<LI>ftv2lastnode.gif</LI>
<LI>ftv2vertline.gif</LI>
<LI>ftv2node.gif</LI></UL>
<P>and replace them with the following equivalent files from the new download directory (these are generally the same files with a different file name, plus some extra document and folder icon files for mouseover events)
<P>
<UL>
<LI>ftb.gif</LI>
<LI>ftd.gif</LI>
<LI>ftdo.gif</LI>
<LI>ftfc.gif</LI>
<LI>ftfo.gif</LI>
<LI>ftvl.gif</LI>
<LI>ftn.gif</LI>
<LI>ftfn.gif</LI>
<LI>ftln.gif</LI>
<LI>ftmn.gif</LI>
<LI>ftmfn.gif</LI>
<LI>ftmln.gif</LI>
<LI>ftpn.gif</LI>
<LI>ftpfn.gif</LI>
<LI>ftpln.gif</LI>
</LI></UL></LI>
<P><LI>Change the name of file ftie4style.css in your working directory to ftstyle.css</LI>
<P><LI>Copy files ftblank.htm, ft.js, ftoptions.js, EssfT.class and EssfTBeanInfo.class from the download directory into your working directory.</LI>
<P><LI>Change the file ftexample.html in your working directory, which is currently:
<PRE>
<html>
<head>
</head>
<FRAMESET cols='200,*'>
<FRAME src='photosturismLF.html' name='treeframe' >
<FRAME SRC='photos.html' name='basefrm'>
</FRAMESET>
</HTML>
</PRE><P>to<P>
<PRE><html>
<head>
<link rel='stylesheet' href='ftstyle.css'>
<!-- Infrastructure code for the tree -->
<script language = 'Javascript' src = 'ft.js'></script>
<script language = 'Javascript' src = 'ftoptions.js'></script>
<script language = 'Javascript' src = 'photosturism.js'></script>
</head>
<FRAMESET cols='200,*' onLoad='self.blank()'>
<FRAME SRC = 'ftblank.htm' name='menufrm' >
<FRAME SRC='photos.html' name='basefrm'>
</FRAMESET>
</HTML></PRE></LI>
<P><LI>Delete the file photosturismLF.html in your working directory. It is no longer needed.</LI>
<P><LI>Test by opening file ftexample.html in your browser.</LI></OL>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?