“index.swf”嵌入在“index.html”中,在一个页面中显示同一网站两次.HTML 标题标签/属性也显示值“
'index.swf' embedded in 'index.html' showing same website twice in one page. HTML Title tag/attribute also showing the value 'undefined'
我当前的网站有问题。在托管此在线时,.SWF 显示在页面顶部,大致覆盖 1/4,再次显示在底部,覆盖 3/4。如果我放大和缩小,页面的下半部分略微覆盖了顶部,但顶部仍然显示。就好像.SWF 已被嵌入两次。这是我的代码;
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Kush Kouture" />
<meta name="keywords" content="Kush Kouture" />
<meta name="description" content="Kush Kouture" />
<title>Kush Kouture</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="swfaddress.js"></script>
<script type="text/javascript" src="swffit.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.url_config = "xml/configuration_site.xml";
flashvars.initServices = true;
var params = {};
params.allowfullscreen = true;
params.allowScriptAccess = "always";
var attributes = {};
attributes.id = 'flashObject';
attributes.bgcolor = '#000000';
swfobject.embedSWF("flash/index.swf", "Alternative", "100%", "100%", "11.0.0", false, flashvars, params, attributes);
</script>
<style type="text/css">
/* hide from ie on mac '*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #ffffff;
}
p {
font-size: 10px;
font-family: Verdana;
line-height:17px;
color:#ffffff;
}
.style1 {
font-size: 11px;
font-family: Verdana;
color:#ffffff;
text-transform:uppercase;
}
</style>
</head>
<body>
<div id="flashContent>
<object id="flashObject" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=11,0,0,0" width="100%" height="100%">
<param name="movie" value="flash/index.swf" />
<param name="wmode" value="transparent" />
<param name="width" value="100%" />
<param name="height" value="100%" />
<param name="scale" value="noscale" />
<object type="application/x-shockwave-flash" data="flash/index.swf" align="" scale="noscale" wmode="transparent" width="100%" height="100%">
</object>
</object>
</div>
<div id="Alternative">
<p style="color:#999999"> Kush Kouture | You require the latest version of Adobe Flash Player in order to view this site. Please use the button below to download the latest version.</p>
<p><a href="http://get.adobe.com/flashplayer/"><img src="flash.jpg" alt="Get Adobe Flash player" /></a></p>
</div>
</body>
</html>
我还注意到页面标题显示正确,但旁边有值"underfined"。
例如,应该是"主页",显示"主页未定义"
我非常感谢在上述问题上可以提供的任何帮助。
一个问题可能是您没有正确关闭报价
<div id="flashContent>
应该是
<div id="flashContent">
我在这里看不到菜单代码,你也可以发布吗?
这是
完全有道理的,因为您已经嵌入了<object>
标签和SWFObject
的.swf。只需使用一个,您只会看到.swf的一个实例。
相关文章:
- 从桌面读取python文件时高亮显示代码
- 使用JS如何动态更改显示的html文件中的文本背景颜色
- Angular2:Index.html没有't显示该文件;正在加载&”;
- “index.swf”嵌入在“index.html”中,在一个页面中显示同一网站两次.HTML 标题标签/属性也显示值“
- 嵌套的 ng 重复显示错误的$index
- 来自 Mirage 的 Ember 数据无法显示在 index.hbs 上
- CSS Z-Index:如何在父级的兄弟姐妹上方显示元素?(并且有父母以上的表弟)
- 如何使用Python/Flask在heroku中显示index.html页面
- Angular:循环并显示从ng中的特定$index开始的所有值
- 按$index跟踪显示的结果太多
- 使用next按钮显示z-Index幻灯片
- 显示-inline-block与z-index和jquery
- 导航条显示在内容下面——z-index不工作
- 无法使用ng-hide指令在index.html中隐藏/显示导航条
- 背景图像在Firefox中显示,但在IE中不显示,可能是z-index问题
- 将所有请求重定向到index.php并在页面上显示URL
- AngularJS - 将$index显示为字符
- 查看器js只显示index.html
- 如何显示网站而不是ip/index.html
- 在index. js中显示多个(音乐)文件