applet: 嵌入Java小程序

2017-06-06 16:00:00
admin
原创
568
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
 <title>元素applet</title>
 </head>
 <body>
 <div style="width:420px;border:2px solid #E28EEE;padding:5px">
 <center><b>很酷的液晶时钟显示</b></center><hr size="1" width="80%">
 <center><font size="2">效果演示:</font></center>
 <p align="center">
 <applet codebase="/demo/src/" code="JDClock.class" align="top" width="128" height="63">
 <param name="ShowWeek" value="yes">
 <param name="ShowDate" value="yes">
 <param name="ShowFrame" value="yes">
 <param name="24HourTime" value="yes">
 <param name="BorderColor" value="0000FF">
 <param name="BGColor" value="000000">
 <param name="FontColor" value="00FF00">
 <param name="DayColor" value="808080">
 <param name="TodayColor" value="00FF00">
 <param name="SundayColor" value="FF0000">
 <param name="TimeZone" value="+8">
 <font color="red">你的浏览器不支持Java,请先安装Java虚拟机</font>
 </applet><br><br>
 <font size="2">组件下载: <a href="/demo/src/JDClock.class">JDClock.class (9.55KB)</a></font></p>
 <textarea style="width:392px;height:190px;border:1px solid navy">
 <applet codebase="/demo/src/" code="JDClock.class" align="top" width="128" height="63">
 <param name="ShowWeek" value="yes">
 <param name="ShowDate" value="yes">
 <param name="ShowFrame" value="yes">
 <param name="24HourTime" value="yes">
 <param name="BorderColor" value="0000FF">
 <param name="BGColor" value="000000">
 <param name="FontColor" value="00FF00">
 <param name="DayColor" value="808080">
 <param name="TodayColor" value="00FF00">
 <param name="SundayColor" value="FF0000">
 <param name="TimeZone" value="+8">
 <font color="red">你的浏览器不支持Java</font>
 </applet>
 </textarea>
 </body>
 </html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络