icon_old.htm

来自「applet在線上繪圖,允許在瀏覽器上繪圖,最後儲存成各式的圖檔」· HTM 代码 · 共 55 行

HTM
55
字号
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <title>Creating custom icons</title>
<link REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</head>
<body>
<a href="./index.htm">CONTENTS</a>

<h3>Creating custom icons</h3>

<p>You can create your own icons for the Tool, Pen, Font, and System Panels.<br>
For that:</p>

<ol>
<li>Create a separate directory for your own icons in the applet's directory, for example: applet/myicons/
</li>
<li>Copy the original icons into that directory and edit them (each icon is a GIF file).</li>
<li>Specify this directory as <b>icondir</b> parameter:<br>
<pre>
	&lt;param name="icondir" value="myicons/"&gt;
</pre>
</li>
</ol>

<p>&nbsp;</p>

<h5>Why do you have to create a seprate directory for your custom icons</h5>

<p>The point is that the original icons are included in both the <b>icons</b> directory and <b>painter.jar</b> file.
While loading the applet, Internet Explorer and any browser equipped with Sun's Java plug-in first looks for
the icons in the <b>painter.jar</b> and if they are not found there it tries to load the icons from the server.
Inclusion the icons to the <b>painter.jar</b> allows to accelerate the loading process for such browsers,
but in that case any icon changes in <b>/icons</b> directory become unavailable.
On the other hand Netscape 4.x looks for the icons at the server only so you have
to keep this directory if Netscape 4 compatibility is important for you.
</p>

<p><b>Note:</b> This doesn't concern the clipart icons because they are not included in <b>painter.jar</b>.
</p>

<h5>How to reduce download time for custom icons</h5>
<p>
You can reduce download time of your own icons.
For that include your icons into the <b>painter.jar</b>.<br>
<b>painter.jar</b> is an ordinary ZIP archive.
Unpack it with any zip utility and replace the original icons with your own, then pack the archive again.<p>

<p><b>Note!</b> Please keep the original directory structure of the archive.</p>


</body>
</html>

⌨️ 快捷键说明

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