问题是,当我选择一种语言时,我会搜索打开的频段。下面是我的代码:
<! - Begin TranslateThis Button ->
<div id="translate-this">
<a href="http://translateth.is/" class="translate-this-button">
<img src = ".. / modules / traduireshop / images / FR. jpg "alt =" "style =" border: 0 "/>
</ a>
</ div>
<script type="text/javascript" src="http://www.google.com/jsapi"> </ script>
<script type="text/javascript" src="http://x.translateth.is/translate-this.js"> </ script>
<script type="text/javascript">
// javascript - see below
</ script>
<! - End TranslateThis Button ->我的网站地址是:http://www.lecoindesvelos.com
TranslateThis ({
undoText: 'Undo', '
panelText 'Translate Into:'
moreText: More Languages ??'36 "'
busyText: 'Translating page ...'
CancelText: 'cancel',
ddLangs: [
'fr',
'en',
'of'
'it'
'es',
],
noBtn: true
});你能告诉我哪里有问题吗?
我想要更多的这支乐队。
发布于 2012-12-21 20:00:36
您的对象的语法不正确,请尝试执行以下操作:
TranslateThis({
undoText: 'Undo',
panelText: 'Translate Into:',
moreText: "More Languages '36'",
busyText: 'Translating page ...',
CancelText: 'cancel',
ddLangs: [
'fr',
'en',
'of',
'it',
'es'
],
noBtn: true
});此外,您还错误地关闭了一些html标记:
</ a>
</ div>这应该是:
</a>
</div>最后,这些HTML注释缺少一些破折号:
<! - Begin TranslateThis Button ->试试这个:
<!-- Begin TranslateThis Button -->发布于 2012-12-21 20:01:14
在您的对象创建过程中有不匹配的引号和缺少的逗号。正确的代码应该是:
<script type="text/javascript">
TranslateThis ({
undoText: 'Undo', //removed a quote
panelText: 'Translate Into:', //added a colon after key and added comma
moreText: 'More Languages (36)', //removed unmatched quote, added comma
busyText: 'Translating page ...', //added comma
CancelText: 'cancel',
ddLangs: [
'fr',
'en',
'of', //added comma
'it', //added comma
'es' //removed comma - it's the end of the array, so no need
],
noBtn: true
});
</script>发布于 2012-12-21 21:12:52
“翻译此内容”按钮的服务http://translateth.is似乎已关闭。在该网站上运行的演示程序也不起作用。
Firebug显示您的站点试图访问http://85.17.190.170:9013/socket.io/1/?t=1356094015380,但没有响应)。
另外,你的问题还不完整:
问题是,当我选择一种语言时,我会搜索打开的频段。
当您选择一种语言时会发生什么情况?你说你“用谷歌搜索打开的乐队”;你的意思是你用谷歌搜索打开的乐队吗?(我猜不是,我只是在这里猜测)。或者你的意思是你希望看到更多的语言被列出?
https://stackoverflow.com/questions/13989704
复制相似问题