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 "<b>java.lang.ClassFormat</b>" or
"<b>java.lang.MethodVerification</b>" or "<b>Bad
Magic Number</b>" 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> </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 "<b>java.lang.ClassNotFound</b>"
error displayed. Ensure you unzip using "winzip 32"
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 "MyNiceApplet.class"
and you write "Myniceapplet.class", 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 "image1.jpg"
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> </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">"Using
Netscape Gold 3, the applets work offline but fail to work online,
displaying a <b>java.lang.NullPointerException</b> error."<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 "NullPointer" error messages happen occasionally
on Netscape 4.04. <br>
However, visitors will have no problems seeing the applet. <br>
<br>
<br>
<b>B)</b> "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".<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> "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".<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> "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". <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 "Web Graphics" tab, and a page appears
with the question "Do you want Web Graphics to be compressed.
This will display pages faster"; under the question is
a box that you "check" if you want compression, otherwise
leave it blank. If it is checked, clear it.<br>
<br>
<br>
<b>E)</b> "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".<br>
<br>
This is because <b>transparent background is not supported in
Java™</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>"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>
"<applet codebase="images" code="nameofthe.class" width=xxx height=xxx>"
<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> "I <b>removed the <param name="credits"</b>
parameter, and applet is not running any more, even if it is
<b>registered</b>".<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 "credits"
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> </td>
</tr>
<tr bgcolor="#FFCC33">
<td><font size="3"><b><font color="#FFFFFF">Tips & 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, "What will people <b>without Java™
browsers</b> see instead of the applet ?" <b>You can specify
an alternate text, image, or a whole html segment to be used
instead of the applet</b>: <br>
<br>
<applet code="MyApplet.class" width=150 height=150><br>
<param name=param1 value="1234"><br>
<param name=param2 value="5678"><br>
<b><IMG ALT="*" ALIGN=center SRC="alternateimage.gif"
border=0></b><br>
</applet><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>
<applet code="MyApplet.class" width=150 height=150><br>
<b><param name=image value="/cgi-bin/Image.cgi"></b><br>
<param name=param2 value="5678"><br>
<b><IMG ALT="*" ALIGN=center SRC="/cgi-bin/Image.cgi"
border=0></b><br>
</applet><br>
<br>
So, you can display a normal image if Java™ is not present, rather
than manipulations of the image if Java™ is present. In
the Anfy wizard, you can enter this alternate text or html
in the "For no Java™ browser" 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>
<applet <b>codebase="http://www.app.com/app/"</b>
code="MyApplet.class" width=150 height=150> <br>
<param name=param1 value="1234"><br>
<param name=param2 value="5678"><br>
Sorry, your browser doesn't support Java™.<br>
</applet><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>="0" and <b>VSPACE</b>="0"
tags, within the <b><applet></b> tag:<br>
<br>
<applet code="MyApplet.class" hspace=0 vspace=0
width=150 height=150> </font></font></td>
</tr>
<tr>
<td> </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 "water.gif"
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 "browse" button
and choose your image for the effect. Then press the NEXT button
4 times, and use the publish function "<b>Copy all files
to</b>" to save all the needed files in the new folder.<br>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?