简体   繁体   English

嵌入在“ index.html”中的“ index.swf”在同一页面中显示两次相同的网站。 HTML标题标记/属性还显示值“未定义”

[英]'index.swf' embedded in 'index.html' showing same website twice in one page. HTML Title tag/attribute also showing the value 'undefined'

I have an issue with my current website. 我当前的网站有问题。 Upon hosting this Online, the .SWF shows at the top of the page, roughly covering 1/4 and also again at the bottom, covering 3/4. 托管此Online后,.SWF将显示在页面顶部,大致覆盖1/4,并且再次显示在底部,覆盖3/4。 If I zoom in and out, the bottom half of the page slightly covers the top, but the top is still showing. 如果放大和缩小,页面的下半部分会稍微覆盖顶部,但顶部仍会显示。 It is asif the .SWF has been embedded twice.. here is my code; 好像.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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>

I have also noticed that the Page Title is showing correct, but with the value 'underfined' next to it.. 我还注意到页面标题显示正确,但旁边带有“未定义”值。

eg. 例如。 should be 'Home Page', showing 'Homepageundefined' 应该是“首页”,显示“首页未定义”

I really appreciate any help that can be given in regards to the above issues. 对于上述问题,我将深表感谢。

One issue may be that you have not closed the quote properly 一个问题可能是您没有正确关闭报价

<div id="flashContent>

should be 应该

<div id="flashContent">

I dont see menu code here can u post that aswell? 我在这里看不到菜单代码,您也可以张贴吗?

It makes perfect sense, since you've embedded the .swf with both an <object> tag and with SWFObject . 由于您已经将.swf嵌入了<object>标记和SWFObject ,因此这是非常有意义的。 Simply just use one and you'll see just one instance of the .swf. 只需使用一个,您将只看到.swf的一个实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我的网站一直显示旧 index.html、style.css、app.js...? - Why does my website keep showing old index.html, style.css, app.js...? zeit serve 命令不允许在 url 上显示 `index.html` 字符串 - zeit serve command is not allowing `index.html` string showing on url AngularJS Web应用程序视图页面源仅显示“ index.html”内容 - AngularJS web application view page source only showing “index.html” contents 我的网站加载出现问题。 这是嵌入到index.html中的.SWF文件 - Having an issue with my Web site loading. This is a .SWF file embedded into the index.html Dragtable Javascript库并非适用于每个页面。 仅在Index.html中导入库的位置? - Dragtable Javascript library isn't working for every page. Only in Index.html where library is imported? GWT ScriptInjector VS将脚本标记添加到index.html页面 - GWT ScriptInjector VS adding script tag to index.html page 更快显示HTML标题属性 - Showing HTML title attribute faster HTML“标题”属性显示单词“未定义”-例如 “首页未定义” - HTML 'Title' attribute showing the word 'undefined' - eg. 'Home Pageundefined' index.html中已禁用按钮标记 - button tag alway disabled in index.html Express呈现index.html,但没有其他页面 - Express renders index.html but no other page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM