-2

请告诉我为什么我的下拉菜单在加载时中断的解决方案?单击此处获取链接。

详细信息:

    When the website is loading, its showing all the sub menus present inside and after its loads completly its showing correctly. At the start it should be strong and should not show inside present sub menu...

它具有以下java代码。

<link href="css/dcmegamenu.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script>
<script type='text/javascript' src='js/jquery.dcmegamenu.1.3.3.js'></script>
<script type="text/javascript">
$(document).ready(function($){
    $('#mega-menu-7').dcMegaMenu({
        rowItems: '3',
        speed: 'fast',
        effect: 'slide'
    });
});
</script>
4

2 回答 2

3

你不包括 jQuery 链接

  <script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.min.js'></script>

$通过在准备功能中删除来试试这个

   $(document).ready(function() {
   // put all your jQuery goodness in here.
   });

这是jQuery 代码。所以你必须添加 jQuery 源代码。

于 2012-12-17T12:42:54.860 回答
2

试试这个:

$(function() {

    // Handler for .ready() called.
    $('#mega-menu-7').dcMegaMenu({
        rowItems: '3',
        speed: 'fast',
        effect: 'slide'
    });

});​
于 2012-12-17T12:32:01.483 回答