Jquery 因为幻灯片太少而终止

Jquery 因为幻灯片太少而终止,jquery,Jquery,我收到一个错误,说幻灯片太少了。我可以知道有什么问题吗 function log() { if (window.console && window.console.log) window.console.log('[cycle] ' + Array.prototype.join.call(arguments,' ')); }; 这是我的html代码和jquery。我目前正在谷歌chrome下运行,试图使用onmouseovereffect,但不知道我现在

我收到一个错误,说幻灯片太少了。我可以知道有什么问题吗

function log() {
    if (window.console && window.console.log)
        window.console.log('[cycle] ' + Array.prototype.join.call(arguments,' '));
};
这是我的html代码和jquery。我目前正在谷歌chrome下运行,试图使用
onmouseover
effect,但不知道我现在所做的是否有效。任何帮助都将不胜感激

<script type="text/javascript">
    $("#Menu1").hover(
  function () { $("#td_1").show(); },
  function () { $("#td_1").hide(); }
);
    $("#Menu2").hover(
  function () { $("#td_2").show(); },
  function () { $("#td_2").hide(); }
);
    $("#Menu3").hover(
    function () { $("#td_3").show(); },
    function () { $("#td_3").hide(); }
  );
    $("#Menu4").hover(
  function () { $("#td_4").show(); },
  function () { $("#td_4").hide(); }
);
    $("#Menu5").hover(
  function () { $("#td_5").show(); },
  function () { $("#td_5").hide(); }
);
    $("#Menu6").hover(
  function () { $("#td_6").show(); },
  function () { $("#td_6").hide(); }
);
    $("#Menu7").hover(
  function () { $("#td_7").show(); },
  function () { $("#td_7").hide(); }
);
    $("#Menu8").hover(
  function () { $("#td_8").show(); },
  function () { $("#td_8").hide(); }
);
</script>

<tr>
          <td id="td_1" colspan="8" bgcolor="#CF0D0B" height="25"><div align="center" class="style101">
          <a href="open-live-account.aspx" class="style101">Open Live Account</a>&nbsp;&nbsp; | &nbsp;&nbsp;
          <a href="/File/nzf4setup.exe" class="style101">Download</a>&nbsp;&nbsp; | &nbsp;&nbsp;
          <a href="/deposit.aspx" class="style101">Deposit</a>&nbsp;&nbsp; | &nbsp;&nbsp;
          <a href="/withdraw.aspx" class="style101">Withdrawal</a>
              </div>
          </td>
        </tr>
          <tr>
            <td id="td_2" colspan="8" bgcolor="#CF0D0B" height="25">
                                <div align="center" class="style101">
                                    <a href="open-live-account.aspx" class="style101">Open Live Account</a>&nbsp;&nbsp;
                                    | &nbsp;&nbsp;<a href="deposit.html" class="style101">Deposit</a><a href="nzf-seminar.html"
                                        class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="withdraw.html" class="style101">Withdraw</a><a
                                            href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="trading-platform.html"
                                                class="style101">Trading Platform</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp;
                                    | &nbsp;&nbsp;<a href="market-hours.html" class="style101">Market Hours</a><a href="nzf-seminar.html"
                                        class="style101"></a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp;
                                    | &nbsp;&nbsp;<a href="trading-services.html" class="style101">Trading Services</a><a
                                        href="nzf-seminar.html" class="style101"></a></div>
            </td>
              </tr>
          <tr>
            <td id="td_3" colspan="8" bgcolor="#CF0D0B" height="25"><div align="center" class="style101"><a href="education-center.html" class="style101">Education Center</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="risk-assessment.html" class="style101">Risk Assessment</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="risk-warning.html" class="style101">Risk Warning</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="money-management-responsible-trading.html" class="style101">Money Management &amp; Responsiblity Trading</a><a href="nzf-seminar.html" class="style101"></a></div></td>
          </tr>
          <tr>
            <td id="td_4" colspan="8" bgcolor="#CF0D0B" height="25"><div align="center" class="style101"><a href="investment-news.html" class="style101">Investment news</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="economic-calendar.html" class="style101">Economic Calendar</a><a href="nzf-seminar.html" class="style101"></a></div></td>
              </tr>
          <tr>
            <td id="td_5" colspan="8" bgcolor="#CF0D0B" height="25"><div align="center" class="style101"><a href="affiliate-program.html" class="style101">Affiliate Program</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="white-label.html" class="style101">White Label</a><a href="nzf-seminar.html" class="style101"></a></div></td>
          </tr>
          <tr>
            <td id="td_6" colspan="8" bgcolor="#CF0D0B" height="25"><div align="center" class="style101"><a href="contact-us.aspx" class="style101">Contact Us</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="nzf-faq.html" class="style101">FAQ</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="site-map.html" class="style101">SiteMap</a><a href="nzf-seminar.html" class="style101"></a></div></td>
              </tr>
          <tr>
            <td id="td_7" colspan="8" bgcolor="#CF0D0B" height="25"><div align="center" class="style101"><a href="about-us.html" class="style101">About Us</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="nzf-vision.html" class="style101">NZF Vision</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="careers.html" class="style101">Careers</a><a href="nzf-seminar.html" class="style101"></a></div></td>
              </tr>
          <tr>
            <td id="td_8" colspan="8" bgcolor="#CF0D0B" height="25"><div align="center" class="style101"><a href="contact-us.aspx" class="style101">Contact Us</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="nzf-faq.html" class="style101">FAQ</a><a href="nzf-seminar.html" class="style101"></a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="site-map.html" class="style101">SiteMap</a><a href="nzf-seminar.html" class="style101"></a></div></td>
              </tr>
        </tr>
      </table></td>

$(“#菜单1”)。悬停(
函数(){$(“#td_1”).show();},
函数(){$(“#td_1”).hide();}
);
$(“#菜单2”)。悬停(
函数(){$(“#td_2”).show();},
函数(){$(“#td_2”).hide();}
);
$(“#菜单3”)。悬停(
函数(){$(“#td_3”).show();},
函数(){$(“#td_3”).hide()}
);
$(“#菜单4”)。悬停(
函数(){$(“#td_4”).show();},
函数(){$(“#td_4”).hide();}
);
$(“#菜单5”)。悬停(
函数(){$(“#td_5”).show();},
函数(){$(“#td_5”).hide()}
);
$(“#菜单6”)。悬停(
函数(){$(“#td_6”).show();},
函数(){$(“#td_6”).hide()}
);
$(“#菜单7”)。悬停(
函数(){$(“#td_7”).show();},
函数(){$(“#td_7”).hide()}
);
$(“#Menu8”)。悬停(
函数(){$(“#td_8”).show();},
函数(){$(“#td_8”).hide()}
);
|   
|   
|   
|      |      |     
|     
|   
|      |      |   
|   
|   
|      |   
|      |   
|      |   

我甚至都不知道你的代码是什么样子,我想你很可能正在使用jQuery cycle插件,而你的HTML只有一张幻灯片,使得插件毫无用处。 循环终止,因为您只有一张幻灯片

您包含的代码一点帮助都没有。你可以发布你的HTML和JS