masterpage 无法用html代码显示flash的解决方法
2007-04-12 17:13
776 查看
masterpage 无法用html代码显示flash的解决方法
by greenerycn
很奇怪,当我在masterpage里写了如下代码时,并不能在内容页面上显示flash.
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="admin_MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<script type="text/javascript" src="js/flash.js"></script>
<title>无标题页</title>
</head>
<body>
</div>
<form id="form1" runat="server">
<div id="hd">
<script type="text/javascript">
Insert_Flash("hd","../media/logo.swf",750,81);
</script>
<div>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</div>
</form>
</body>
</html>
刚开始以为是层的id变了,看了下,id没变.奇怪,一直找不到原因.
不过找到了解决办法:
在msterpage里拖一个Label控件.
把label控件的text值
<asp:Label ID="Label1" runat="server" Text="<embed src='../media/logo.swf' quality=high width=750 height=81 type='application/x-shockwave-flash'></embed>"></asp:Label><br />
3.OK!
by greenerycn
很奇怪,当我在masterpage里写了如下代码时,并不能在内容页面上显示flash.
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="admin_MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<script type="text/javascript" src="js/flash.js"></script>
<title>无标题页</title>
</head>
<body>
</div>
<form id="form1" runat="server">
<div id="hd">
<script type="text/javascript">
Insert_Flash("hd","../media/logo.swf",750,81);
</script>
<div>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</div>
</form>
</body>
</html>
刚开始以为是层的id变了,看了下,id没变.奇怪,一直找不到原因.
不过找到了解决办法:
在msterpage里拖一个Label控件.
把label控件的text值
<asp:Label ID="Label1" runat="server" Text="<embed src='../media/logo.swf' quality=high width=750 height=81 type='application/x-shockwave-flash'></embed>"></asp:Label><br />
3.OK!
相关文章推荐
- IE无法显示FLASH的解决方法
- html编写代码时,显示效果中文内容出现乱码解决方法
- Win8.1无法安装应用显示错误代码0x80070005的解决方法
- FLASH轮播广告 在谷歌浏览器中不显示的解决办法(FLash轮播放广告在谷歌浏览器中无法显示处理方法)
- Win8/win8.1的IE10/IE11无法显示Flash的多种解决方法
- KingCMS5.1{King:listcontent/}字段显示html代码(乱码)的解决方法
- vs2008与IIS 7.0使用在vista上时出现的问题及解决方法(Internet Explorer 无法显示该页面)(VS2008: IE Cannot Display Web Page)
- 在网页内无法显示Flash的问题的解决方法
- QQ空间无法显示导航,播放器等flash解决方法
- 黄聪:wordpress向mysql字段中保存html代码(使用add_option()方法),然后无法显示出问题
- windows 2003上安装测试管理工具TestDirector 8.0,访问页面显示HTML代码的解决方法
- Linux_ubuntu环境下Qt无法编译代码显示-1: error: cannot find -lGL错误的解决方法
- applet在html中无法显示 解决方法
- markdown代码片段在chrome内核浏览器无法正常显示的解决方法
- 安卓代码混淆与反射冲突,地图无法显示等问题解决及反编译方法
- Flask+Bootstrap Web开发中Python代码嵌入html 时中文显示失败的解决方法
- 安卓代码混淆与反射冲突,地图无法显示等问题解决及反编译方法
- XP中HTM/HTML文件图标无法正常显示的解决方法
- FLASH中动态文本遮罩无法显示的解决方法.
- “BindingSource绑定单个实体对象后在代码中赋值无效和无法显示”的解决方法