2012-07-06 65 views
0

我目前對我的網站'標題'有問題。這是目前顯示不正確,因爲'Kush Koutureundefined',這應該顯示'Kush Kouture'(請參閱截圖 - http://imageshack.us/photo/my-images/38/screenshotnpe.jpg/的鏈接)。顯示單詞'undefined'的HTML'Title'屬性 - 例如。 'Home Page undefined'

我的網站是由內嵌到index.html的

這裏是我的代碼瑞士法郎(index.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%", "8", "flash/index.swf", 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> 

任何建議,將不勝感激!

+0

該文件有什麼擴展名?你在其他瀏覽器中嘗試過嗎?爲什麼不發佈在線演示? – menislici 2012-07-06 12:29:15

+1

他的標題應該是'Kush Kouture'而不是'Kush Koutureundefined'。這個問題的確不是很清楚。 – poepje 2012-07-06 12:29:24

回答

2

好吧,它看起來像是改變(添加)到您當前的標題標籤。可能是swf或者可能是一些js。我建議你一次拿出一個組件來找出哪個文件正在做,並從那裏開始。

+0

我已託管解決這個問題,因爲一些'''從DOCTYPE中丟失了..我仍然遇到了嵌入.swf加載的問題。我的網站是www.kushkouture.com – JChutey 2012-07-13 12:45:05

2

似乎可以從Flash中改變頁面標題:

Setting Page Title from a SWF

這將是我最有可能的人選。你寫了Flash應用程序嗎?

+0

這兩種解決方案都是公平的解決方法(如果它們確實可行)。但它並不能真正解決問題,並且它可能不適用於所有瀏覽器或不同的瀏覽器版本......因此有點棘手。 – poepje 2012-07-06 12:34:22

+0

你錯過了我的觀點(不知道我解釋清楚我應該),HTML看起來很好,沒有任何標題設置爲非標準,因此它看起來像SWF正在改變標題。 – Liam 2012-07-06 12:37:45

+1

或者那個或者javascript。 – poepje 2012-07-06 12:42:24