2012-12-17 37 views
-2

請告訴我爲什麼我的下拉菜單在加載時中斷?鏈接爲Click Here加載時下拉菜單中斷

的詳細介紹:

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> 
+0

它打破了什麼樣的方式? –

+0

你能澄清你的意思嗎?你在期待什麼,發生了什麼? – Kami

+0

我已經發布了描述..請檢查它 – user1820652

回答

2

嘗試這一次,

$(function() { 

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

});​ 
+1

是Palash,它的工作正確..很多感謝您的支持.. – user1820652

+0

很高興幫助:) –

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 code。所以你必須添加jQuery源碼。

+0

嗨,是必修課。如果沒有這個,我通過引用下面的答案找到了我的問題。我也把這個腳本也?請讓我知道 – user1820652

+0

你的意思是 我以前有過這個腳本,因爲它的製作問題已經在我網站上的其他腳本中刪除了。我希望你的腳本不會對其他代碼產生任何問題。 – user1820652