谷歌小工具JavaScript不起作用

Google gadget JavaScript is not working

本文关键字:不起作用 JavaScript 工具 谷歌      更新时间:2023-09-26

我的代码是这个

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="Zombies!" height="350" />
  <Content type="html">
  <![CDATA[
  <script type="text/javascript">
  function load() {
   alert("test");
  }
  </script>
  <br />
  <div style="text-align: center;">
    <input type=submit value="Next ->" onClick="load()">
  </div>
  ]]>
  </Content>
</Module>
​

我正在上测试此代码

http://www.google.com/ig/modules/gadgetads.html

但是当我添加javascript代码时,html并没有显示出来。请有人帮我

我认为您的代码没有任何问题。正确显示文本为"下一步->"的按钮。您的代码片段中没有更多的HTML。