我的脚本在jsFiddle中工作,但不在我的网页中

时间:2013-07-24 15:39:44

标签: webpage

我通常不喜欢让别人看我的代码,但我很困惑!此脚本仅适用于jsFiddle。当我在其他地方尝试时,它只是提出了海军背景。

<!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-gb" lang="en-gb" >
 <head>
 <meta name="google-site-verification" content="MaEIpDKrtwWJCsgK-26zGQY0-WFYBN8y2fDho0pzYcE" />
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 <meta http-equiv="X-UA-Compatible" content="IE=edge" >

 <style type="text/css">
 .scr { height:700px; width:400px; background-color:navy;}
 </style>

 </head><body>

 <div class="scr"><script type="text/javascript" src="//www.gmodules.com/ig/ifr?url=http://geoff.lequelenec.googlepages.com/stock_chart_gadget.xml&amp;up_symbol=PPL&amp;up_duration=v&amp;synd=open&amp;w=320&amp;h=200&amp;title=PPL+Corporation&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script></div>

  </body></html>

1 个答案:

答案 0 :(得分:0)

如果将script link放入浏览器,则会返回错误消息:

Sorry! Gadget cannot be displayed until all required settings are provided.

所以我猜你还没有完全配置它。