📄
字号:
范例:plugin_action.jsp源代码:
001 <%@ page contentType="text/html; charset=GB2312"%>
002 <%
003 String type = request.getParameter("type");
004 %>
005 <HTML>
006 <HEAD>
007 <script language="JavaScript" type="text/Javascript">
008 <!-- Hide script from older browsers
009 function onClickRadio()
010 {
011 var selectkind="";
012 selectkind=kind.value;
013 if (selectkind.length >0)
014 {
015 this.location.replace("plugin_action.jsp?type="+selectkind);
016 }
017 }
018 </script>
019 <TITLE>plugin动作实例</TITLE>
020 </HEAD>
021 <BODY>
022 <font size="4">plugin动作范例</font>
023 <HR>
024 <%
025 if(type.equals("drawRect"))
026 {
027 %>
028 <JSP:plugin type="applet" code="PluginAction.class"
029 height="150" width="200">
030 <JSP:params>
031 <JSP:param name="title" value="drawRect"/>
032 </JSP:params>
033 <JSP:fallback>无法加载</JSP:fallback>
034 </JSP:plugin>
035 <%
036 }
037 if(type.equals("fillArc"))
038 {
039 %>
040 <JSP:plugin type="applet" code="PluginAction.class"
041 height="150" width="200">
042 <JSP:params>
043 <JSP:param name="title" value="fillArc"/>
044 </JSP:params>
045 <JSP:fallback>无法加载</JSP:fallback>
046 </JSP:plugin>
047 <%
048 }
049 if(type.equals("drawArc"))
050 {
051 %>
052 <JSP:plugin type="applet" code="PluginAction.class"
053 height="150" width="200">
054 <JSP:params>
055 <JSP:param name="title" value="drawArc"/>
056 </JSP:params>
057 <JSP:fallback>无法加载</JSP:fallback>
058 </JSP:plugin>
059 <%
060 }
061 if(type.equals("fillRect"))
062 {
063 %>
064 <JSP:plugin type="applet" code="PluginAction.class"
065 height="150" width="200">
066 <JSP:params>
067 <JSP:param name="title" value="fillRect"/>
068 </JSP:params>
069 <JSP:fallback>无法加载</JSP:fallback>
070 </JSP:plugin>
071 <%
072 }
073 %>
074 <select name=kind onchange="onClickRadio()" size="4">
075 <option value="drawArc">画空心圆</option>
076 <option value="fillArc">画实心图</option>
077 <option value="drawRect">画矩形</option>
078 <option value="fillRect">画实矩形</option>
079 </select>
080 </BODY>
081 </HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -