Jump to content
Fórum Script Brasil
  • 0

Conflito em jQuery


kklo
 Share

Question

Estou com um problema, mas quem não está?

Juntei dois menus accordeon, um para faq e outro como menu e estou tendo um conflito com o sistema principal.

<!-- FAQ  -->

<script src="../vendor/jquery-1.9.1.js"></script>
    <script src="../vendor/json2.js"></script>
    <script src="../src/jquery.collapse.js"></script>
    <script src="../src/jquery.collapse_storage.js"></script>
    <script src="../src/jquery.collapse_cookie_storage.js"></script>
    
<!-- Fim do Faq -->

<!-- Menu -->

<link href="css/dcaccordion.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type='text/javascript' src='js/jquery.cookie.js'></script>
<script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script>
<script type='text/javascript' src='js/jquery.dcjqaccordion.2.7.min.js'></script>
<script type="text/javascript">
$(document).ready(function($){
					$('#accordion-1').dcAccordion({
						eventType: 'click',
						autoClose: true,
						saveState: true,
						disableLink: true,
						speed: 'slow',
						showCount: true,
						autoExpand: true,
						cookie	: 'dcjq-accordion-1',
						classExpand	 : 'dcjq-current-parent'
					});
});
</script>

<!-- Fim do menu -->

 

o conflito é com esta linha:


 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

os códigos completos estão disponiveis nos fornecedores:

http://webcloud.se/jQuery-Collapse/ - faq
http://www.designchemical.com/lab/jquery-vertical-accordion-menu-plugin/getting-started/ - menu

Quando eu comento a linha acima, o menu e sistema funcionam, mas o faq para de funcionar. Se eu descomentar a linha, o faq volta a funcionar, mas o menu e o sistema ficam alterados.

Alguém pode me ajudar?

kklo

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.6k
    • Total Posts
      646.2k
×
×
  • Create New...