Ajax 天气频道脚本嵌入

Ajax 天气频道脚本嵌入,ajax,embed,weather,Ajax,Embed,Weather,我似乎无法在我的主页上运行此天气频道脚本。我最初从TWC收到这个脚本: document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></

我似乎无法在我的主页上运行此天气频道脚本。我最初从TWC收到这个脚本:

document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');  
它仍然无法在页面上工作,并导致脚本的其余部分也无法显示

  <body>
    <div id="chart_div" style="width: 900px; height: 500px;"></div>
<div id="wx_module_1232">
   <a href="http://www.weather.com/weather/local/98501">Olympia Weather Forecast, WA (98501)</a>
</div>
  </body>


这可能只是我缺少的一个AJAX导入,因为我是网站构建新手。

您似乎缺少变量的值:
wx\u locID
wx\u config
wx\u targetDiv
。您忘记复制这些必需的变量了吗?

我有它们,由TWC定义。我遗漏了很多要关注的问题,我认为这就是问题所在。
  <body>
    <div id="chart_div" style="width: 900px; height: 500px;"></div>
<div id="wx_module_1232">
   <a href="http://www.weather.com/weather/local/98501">Olympia Weather Forecast, WA (98501)</a>
</div>
  </body>