example1.jsp
来自「具有代表性的示例,是初学java编程者不错的选择.」· JSP 代码 · 共 71 行
JSP
71 行
<HTML> <HEAD> <TITLE>Applet时钟</TITLE> </HEAD> <BODY> <h1>Applet时钟</h1> <hr> <!--"CONVERTED_APPLET"--><!-- HTML CONVERTER --><jsp:plugin classid = "clsid:CAFEEFAC-0014-0002-0005-ABCDEFFEDCBA" codebase = "http://java.sun.com/update/1.4.2/jinstall-1_4_2_03-windows-i586.cab#Version=1,4,2,30" WIDTH = 170 HEIGHT = 150 > <jsp:params> <jsp:param name="CODE" value = "Clock.class" /> <jsp:param name = "type" value = "application/x-java-applet;jpi-version=1.4.2_03"/> <jsp:param name = "scriptable" value = "false"/> </jsp:params> <jsp:fallback>
您的浏览器不支持Java Applet.
</jsp:fallback></jsp:plugin><!--<APPLET CODE = "Clock.class" WIDTH = 170 HEIGHT = 150>alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!</APPLET>--><!--"END_CONVERTED_APPLET"--> <p> The clock applet now has three parameters; the background color (bgcolor), the main foreground color (the hands and dial) (fgcolor1) and the secondary foreground color (the seconds hand and numbers) (fgcolor2). These three parameters are hexadecimal RGB numbers (like the ones used for the body bgcolor tag in HTML). For example: <p> <applet code="Clock.class" width=170 height=150><br> <param name=bgcolor value="000000"><br> <param name=fgcolor1 value="ff0000"><br> <param name=fgcolor2 value="ff00ff"><br> </applet><p> would give you a black background, a red dial and hands, and purple numbers. <p> For those who don't convert to hexadecimal easily, here are some common values: <ul> <li>black = 000000 <li>blue = 0000ff <li>cyan = 00ffff <li>darkGray = 404040 <li>gray = 808080 <li>green = 00ff00 <li>lightGray = c0c0c0 <li>magenta = ff00ff <li>orange = ffc800 <li>pink = ffafaf <li>red = ff0000 <li>white = ffffff <li>yellow = ffff00 </ul> <hr> <a href="Clock.java">The source</a>. </BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?