永发信息网

关于JSP中插入flash内容的问题

答案:1  悬赏:0  手机版
解决时间 2021-05-07 10:59
  • 提问者网友:wodetian
  • 2021-05-06 13:40

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>1</title>
   
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">   
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This is my page">
 <!--
 <link rel="stylesheet" type="text/css" href="styles.css">
 -->
    <script type="text/javascript" src="js/swfobject.js"></script>
  </head>
 
  <body bgcolor="#000000" topmargin="0" bottommargin="0" leftmargin="230">
  <div id="flashcontent"><font></font></div>
 <script language="JavaScript" type="text/javascript">
   // <![CDATA[
      var so = new SWFObject("http://localhost:1101/1/WebRoot/images/main.swf", "main", "900", "600", "9", "#000000");
      so.addParam("wmode", "opaque");
                    so.addParam("scale", "noscale");
      so.write("flashcontent");
  // ]]>
                  function tests()
                     {
                       location.reload();
                     }
 </script>
  </body>
</html>
flash显现不出来,请教了

最佳答案
  • 五星知识达人网友:一叶十三刺
  • 2021-05-06 15:06
<%@网页的语言=“java的”进口=“java.util中.*”pageEncoding =“的UTF - 8”%>
<%
字符串路径= request.getContextPath();
弦乐basePath = request.getScheme ()+"://"+ request.getServerName ()+":"+ request.getServerPort()+路径+"/";
%>
<!的DOCTYPE网页公开“ - / / W3C的/ / DTD中的HTML 4.01过渡/ /英”>
<html>
的<head>
    <基地的HREF ="<%= basePath%>“>
    <标题> 1 </标题>
    
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This是我page">
 <! -
 <link rel="stylesheet" type="text/css" href="styles.css">
  - >
    <script type="text/javascript" src="js/swfobject.js"> </脚本>
  </头“
  
  <body bgcolor="#000000" topmargin="0" bottommargin="0" leftmargin="230">
  <div id="flashcontent">的<FONT> </字体> </分区>
 <script language="JavaScript" type="text/javascript">
   / / <![的CDATA [
    因此=新变种SWFObject(“http://localhost:1101/1/WebRoot/images/main.swf”,“主”,“900”,“600”,“9”,“#000000”);
    so.addParam(“wmode”,“不透明”);
    so.addParam(“规模”,为“noScale”);
    so.write(“flashcontent”);
  / /]]>
    功能测试()
    (
    location.reload();
    )
 </脚本>
  </身体>
</ html的>
闪存显现不出来,请教了
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯