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>
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;

&lt;FRAMESET cols='200,*'&gt; 
  &lt;FRAME src='photosturismLF.html' name='treeframe'  &gt;
  &lt;FRAME SRC='photos.html' name='basefrm'&gt; 
&lt;/FRAMESET&gt; 

&lt;/HTML&gt;
</PRE><P>to<P>
<PRE>&lt;html&gt;
&lt;head&gt;
&lt;link rel='stylesheet' href='ftstyle.css'&gt;
&lt;!-- Infrastructure code for the tree --&gt;
&lt;script language = 'Javascript' src = 'ft.js'&gt;&lt;/script&gt;
&lt;script language = 'Javascript' src = 'ftoptions.js'&gt;&lt;/script&gt;
&lt;script language = 'Javascript' src = 'photosturism.js'&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;FRAMESET cols='200,*' onLoad='self.blank()'&gt;
  &lt;FRAME SRC = 'ftblank.htm' name='menufrm' &gt; 
  &lt;FRAME SRC='photos.html' name='basefrm'&gt; 
&lt;/FRAMESET&gt; 
&lt;/HTML&gt;</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 + -
显示快捷键?