⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdc.jsp

📁 JSP核心技术源代码,和本站的JSP核心技术分析,可以合用
💻 JSP
字号:
<html>
<head>
   <title>adSpace</title>
   <meta name="GENERATOR" content="Mozilla/2.01Gold (Win32)">
</head>
<body>

<center><p><b><font SIZE=+3>adSpace</font></b></p></center>

<p>
<hr><!--Applet runs here--><applet code="adSpace.class" codebase="/examples/jsp/plugin/applet" width=468 height=60><param name=adList value="adlist.txt"><param name=pause value=4000><param name=deltaY value=2><param name=scrollPause value=40><param name=aniAudio value="danger.au"></applet>
<hr></p>

<jsp:plugin type="applet" code="adSpace.class" codebase="/examples/jsp/plugin/applet" jreversion="1.2" width="468" height="60" >


 <jsp:fallback>
        Plugin tag OBJECT or EMBED not supported by browser.
    </jsp:fallback>
</jsp:plugin>

<p>Applet Name: &quot;adSpace&quot; 
<br>Import(s): java.applet, java.awt, java.io, java.lang, java.net, java.util

<br>Feature(s): image, audio, animation, network, mouse 
<br>Source: <a href="adSpace.java">adSpace.java</a><a href="adspace.java">

<br></a>Author: <a href="mailto:vong@21cn.com">Haowen Huang</a>, <a href="mailto:susanhuang@263.net">Susan 
Huang</a></p>

<h2>Usage Guide:</h2>

<p>The adSpace emulates a football stadium style rotating advertising hoarding.
It downloads a series of image files, and resizes them to create a rotating
animation. Clicking the mouse over the current image follows the hypertext
link associated with that image. The images and associated URLs are specified
in a configuration file, which is downloaded and parsed by the applet.
The applet parameters are:</p>

<p>adList: The URL to the configuration file. 
<br>
<br>pause: The length of time (in milliseconds) to display each image 
<br>
<br>deltaY: The pixel length between each frame in the rotation 
<br>
<br>animation scrollPause: The length of time (in milliseconds) between
each frame in the rotation animation. 
<br>
<br>numFrames: The number of frames in each rotation animation (takes precedence
of the deltaY parameter) 
<br>
<br>aniAudio: The URL to an audio file used during rotation animation </p>

<pre>The config file format is:

{
URL to image1
URL image1 should link to when clicked
[URL to audio1 file]
}
{
URL to image2
URL image2 should link to when clicked
[URL to audio2 file]
}
etc.

Usage example:

&lt;applet code=&quot;adSpace.class&quot; width=468 height=60&amp;lg &lt;param name=adList value=&quot;adlist.txt&quot;&amp;lg
&lt;param name=pause value=4000&amp;lg
&lt;param name=deltaY value=2&amp;lg
&lt;param name=scrollPause value=40&amp;lg
&lt;param name=aniAudio value=&quot;danger.au&quot;&amp;lg
&lt;/applet&amp;lg</pre>

<center><pre>


<hr>
<a href="../index.html"><img src="../images/mantoid.gif" alt="Return to index." border=0 height=109 width=109></a>




</pre></center>

</body>
</html>

⌨️ 快捷键说明

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