generalfaq.html

来自「ANFY特效」· HTML 代码 · 共 757 行 · 第 1/3 页

HTML
757
字号
                  the right parameters for your purposes and your images, but 
                  you still have to copy and paste the resulting <applet> 
                  tag in your html document. You can use the "Copy all files 
                  to" function to save an html document that contains only 
                  the applet, and then re-open it with your preferred html editor 
                  to add what you want.<br>
                  <br>
                  <b>3)</b> Upload the .html file, .class files and any others 
                  (images etc.) to your web page directory as usual.<br>
                  Please note that you have to upload the .class files using FTP 
                  in BINARY mode and not in ASCII mode !! Otherwise the applets 
                  will not work (a &quot;<b>java.lang.ClassFormat</b>&quot; or 
                  &quot;<b>java.lang.MethodVerification</b>&quot; or &quot;<b>Bad 
                  Magic Number</b>&quot; error message will be displayed).<br>
                  Be sure file names and file lenghth is not changed during upload 
                  process: if files are of different size, or have different name 
                  (for example ends with .cla instead of .class) something went 
                  wrong.</font></font></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr bgcolor="#FF6666"> 
                <td><font size="3"><b><font color="#FFFFFF">Most common errors:</font></b></font><font face="Arial,Helvetica" size="3"> 
                  </font></td>
              </tr>
              <tr> 
                <td><font size="2"><b><font size="3">A)</font></b> <font size="3"><b>LONG 
                  FILENAMES TRUNCATION AND LETTER CASE CHANGE</b>: Many MS-DOS 
                  users are still using PKUNZIP to decompress zip archives or 
                  16 bit programs to copy and upload files, and do not take into 
                  consideration the difference between FiLe.ExE, FILE.EXE and 
                  fILe.eXe. This is not good for various reasons: <br>
                  <br>
                  The first one is the use of <b>long file names</b>: msdos (and 
                  old 16 bit win 3.1 programs) are only able to support file names 
                  with 8+3 characters.<br>
                  Newer systems on the other hand support long file names, for 
                  example MyNiceApplet.class, which has a suffix of 5 chars. If 
                  you use PKUNZIP to unzip the applet archives, or upload the 
                  .class files on the server with an old Windows 3.1 FTP program 
                  or similar, you will TRUNCATE the filename, and the result will 
                  be MYNICEAP.CLA ! <br>
                  Trying to run the applet will result in a &quot;<b>java.lang.ClassNotFound</b>&quot; 
                  error displayed. Ensure you unzip using &quot;winzip 32&quot; 
                  or similar in win95, and to copy/upload the files with these 
                  newer programs that do not truncate the filenames. <br>
                  <br>
                  Consider the case of the characters as well since many servers 
                  on the Internet (Unix) are <b>case sensitive</b>.<br>
                  For example, if the applet is named &quot;MyNiceApplet.class&quot; 
                  and you write &quot;Myniceapplet.class&quot;, the applet will 
                  not work. The most common mistakes are in mismatched image filenames, 
                  because win95 is not case sensitive and it loads an image even 
                  if the case is different. <br>
                  For example, if you save an image as &quot;image1.jpg&quot; 
                  you will also be able to load it from your local harddrive if 
                  you refer to it as IMAGE1.JPG, image1.JPG or IMAGE1.jpg. But 
                  once you put it on your ISP's server it will only work if you 
                  refer to it as image1.jpg. <br>
                  Ensure the names of images you load from an applet are identical 
                  in case and characters. <br>
                  <br>
                  <b>B) Wrong image or applet size</b>: read the instructions 
                  for the applet carefully because images usually MUST be of fixed 
                  sizes (for example 64*64, 128*128 etc.). Do not enlarge the 
                  applets too much, and images more than a width of 600 pixels, 
                  will not be fully visible to those using a video mode of 640*480 
                  pixels. <br>
                  In most cases, Anfy wizard can detect an incorrect image 
                  or applet size, and this will help prevent one of the most common 
                  errors.</font></font> </td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr bgcolor="#FF6666"> 
                <td><font size="3"><b><font color="#FFFFFF">Less common errors:</font></b> 
                  </font> </td>
              </tr>
              <tr> 
                <td><font size="2"><b><font size="3">A)</font></b> <font size="3">&quot;Using 
                  Netscape Gold 3, the applets work offline but fail to work online, 
                  displaying a <b>java.lang.NullPointerException</b> error.&quot;<br>
                  <br>
                  This is a bug in the browser that randomly appears. If this 
                  occurs, try reloading, clearing the cache, or in rare cases 
                  deleting the cache files manually from netscape cache directory. 
                  Similar &quot;NullPointer&quot; error messages happen occasionally 
                  on Netscape 4.04. <br>
                  However, visitors will have no problems seeing the applet. <br>
                  <br>
                  <br>
                  <b>B)</b> &quot;I updated all the class files on my <b>GEOCITIES</b> 
                  site, and when I reloaded the page I got an error message (<b>java.lang.NoClassDefFoundException</b>) 
                  in applets&quot;.<br>
                  <br>
                  This is a temporary problem generated by Geocities and some 
                  other sites. If you reload the page after a couple of minutes, 
                  the applets will run correctly.<br>
                  In other circumstances, this error means you forgot to upload 
                  some .class files (for example anfy.class).<br>
                  <br>
                  <br>
                  <b>C)</b> &quot;Using Netscape 3, I got an error message (<b>java.awt.image.Memory 
                  ImageSource: method newPixels()</b>, or <b>java.lang.NoSuchMethodError: 
                  java.awt.image. Memory ImageSource</b>) in applets&quot;.<br>
                  <br>
                  This is a problem related to anfy.class: probably you are using 
                  an old or incorrect anfy.class file, or you have in cache an 
                  old one.<br>
                  Check if you are using the same anfy.class that comes with the 
                  applets, and clear the caches.<br>
                  <br>
                  <br>
                  <b>D)</b> &quot;I am using the <b>AOL browser</b>, and everything 
                  else on page would appear but the applet. Instead there was 
                  a message -Loading image-, and the image never appeared, just 
                  a gray rectangle&quot;. <br>
                  <br>
                  In this case, you have to turn off graphics compression in the 
                  AOL internet browser preferences as follows: <br>
                  On the AOL Toolbar, click Members, Click Preferences, Click 
                  WWW Icon (Picture of world globe), and you will see a dialog 
                  box. Click the &quot;Web Graphics&quot; tab, and a page appears 
                  with the question &quot;Do you want Web Graphics to be compressed. 
                  This will display pages faster&quot;; under the question is 
                  a box that you &quot;check&quot; if you want compression, otherwise 
                  leave it blank. If it is checked, clear it.<br>
                  <br>
                  <br>
                  <b>E)</b> &quot;I am using a <b>transparent gif</b> image in 
                  one applet (lens, water, lake, etc.) as <b>main image</b>, and 
                  I see gray background instead of transparency&quot;.<br>
                  <br>
                  This is because <b>transparent background is not supported in 
                  Java&#153;</b>. You can use transparent images ony as overlay images.<br>
                  <br>
                  <br>
                  <b>F)</b> Strangely, sometime the <b>GIF overlay images are 
                  not draw totally by Netscape</b>, when are draw ok on Explorer.<br>
                  <br>
                  In most cases, you just have to re-save the GIF image in <b>interlaced 
                  mode if it was in normal mode, or vice-versa</b>, then it is 
                  displayed correctly.<br>
                  This problem is more frequent on larger images.<br>
                  <br>
                  <br>

                  <b>G)</b>&quot;I try to put the applets on my <B>ANGELFIRE</B>
	       site, but i'm not able to run them, or I'm not able to copy anfy.class<BR><BR>
	       On angelfire by default all the .class files are uploaded in the /images directory, 
	       to run the applets properly angelfire users must add the codebase tag into the html source:<BR>
	      &quot;&lt;applet codebase="images" code="nameofthe.class" width=xxx height=xxx&gt;&quot;
	      <BR>
	      Angelfire in the beginning does not allow to copy the anfy.class in the standard mode.
	       You need to use the Angelfire FTP option to load the anfy.class file to the server.
	       <br>
                  <br>
                  <br>
                  <b>H)</b> &quot;I <b>removed the &lt;param name=&quot;credits&quot;</b> 
                  parameter, and applet is not running any more, even if it is 
                  <b>registered</b>&quot;.<br>
                  <br>
                  With registration, you purchase a regcode that enables link 
                  parameters and removes the credits window that pop ups when 
                  applet is clicked. This does not includes the &quot;credits&quot; 
                  parameter: it is only a signature of the applet, not visible 
                  by the visitors (except who looks at page source code), this 
                  is why is not modified by registration. Why you want remove 
                  it? As written in instructions, it's unremovable.</font></font> 
                </td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr bgcolor="#FFCC33"> 
                <td><font size="3"><b><font color="#FFFFFF">Tips &amp; Tricks:</font></b> 
                  </font></td>
              </tr>
              <tr> 
                <td><font size="2"><b><font size="3">1)</font></b><font size="3"> 
                  You may be thinking, &quot;What will people <b>without Java&#153; 
                  browsers</b> see instead of the applet ?&quot; <b>You can specify 
                  an alternate text, image, or a whole html segment to be used 
                  instead of the applet</b>: <br>
                  <br>
                  &lt;applet code=&quot;MyApplet.class&quot; width=150 height=150&gt;<br>
                  &lt;param name=param1 value=&quot;1234&quot;&gt;<br>
                  &lt;param name=param2 value=&quot;5678&quot;&gt;<br>
                  <b>&lt;IMG ALT=&quot;*&quot; ALIGN=center SRC=&quot;alternateimage.gif&quot; 
                  border=0&gt;</b><br>
                  &lt;/applet&gt;<br>
                  <br>
                  You can even load images for applets from a cgi-bin/ dir, maybe 
                  a 'pic of the day' cgi or similar: <br>
                  <br>
                  &lt;applet code=&quot;MyApplet.class&quot; width=150 height=150&gt;<br>
                  <b>&lt;param name=image value=&quot;/cgi-bin/Image.cgi&quot;&gt;</b><br>
                  &lt;param name=param2 value=&quot;5678&quot;&gt;<br>
                  <b>&lt;IMG ALT=&quot;*&quot; ALIGN=center SRC=&quot;/cgi-bin/Image.cgi&quot; 
                  border=0&gt;</b><br>
                  &lt;/applet&gt;<br>
                  <br>
                  So, you can display a normal image if Java&#153; is not present, rather 
                  than manipulations of the image if Java&#153; is present. In 
                  the Anfy wizard, you can enter this alternate text or html 
                  in the &quot;For no Java&#153; browser&quot; field.<br>
                  <br>
                  <br>
                  <br>
                  <b>2) If you want to read .class files from another dir or path, 
                  just use the codebase tag:</b> <br>
                  <br>
                  &lt;applet <b>codebase=&quot;http://www.app.com/app/&quot;</b> 
                  code=&quot;MyApplet.class&quot; width=150 height=150&gt; <br>
                  &lt;param name=param1 value=&quot;1234&quot;&gt;<br>
                  &lt;param name=param2 value=&quot;5678&quot;&gt;<br>
                  Sorry, your browser doesn't support Java&#153;.<br>
                  &lt;/applet&gt;<br>
                  <br>
                  <br>
                  <br>
                  <b>3)</b> When you try to use a mask for applet, there is a 
                  thin (about 1-2 pixel) border at the top of the applet before 
                  the round image:<br>
                  <br>
                  To remove it, use the <b>HSPACE</b>=&quot;0&quot; and <b>VSPACE</b>=&quot;0&quot; 
                  tags, within the <b>&lt;applet&gt;</b> tag:<br>
                  <br>
                  &lt;applet code=&quot;MyApplet.class&quot; hspace=0 vspace=0 
                  width=150 height=150&gt; </font></font></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr bgcolor="#6666FF"> 
                <td> <font size="3"><b><font color="#FFFFFF">Frontpage users:</font></b> 
                  </font></td>
              </tr>
              <tr> 
                <td><font size="3">Here is an example of the configuration steps 
                  for the Anfy Water applet: <br>
                  <br>
                  <b>1)</b> If you don't already have an image, use Image Composer 
                  ( FrontPage's Tool ) to create and save an image as &quot;water.gif&quot; 
                  for example, in a new empty folder. <br>
                  <br>
                  <b>2)</b> In the Anfy wizard main screen, select WATER, 
                  press the NEXT button, then press &quot;browse&quot; button 
                  and choose your image for the effect. Then press the NEXT button 
                  4 times, and use the publish function &quot;<b>Copy all files 
                  to</b>&quot; to save all the needed files in the new folder.<br>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?