Jump to content
Fórum Script Brasil
  • 0

Conflito em Jquery - Dúvida


R_MontSerrat

Question

Boa Tarde, pessoal

Preciso que meu site rode duas versões da mesma biblioteca jquery. 1.5.2.min.js e 1.8.2.min.js

A primeira é para a função QueryLoader e a segunda pro scrolldeck, mas quando chamo as duas na página ocorre o conflito, ou uma não funciona, ou as duas não funcionam. Já tentei mudar as posições e nada, botei um código que achei na internet e nada também

Segue o código

<script type="text/javascript" src="js/queryLoader.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
    <script> var $jq182 = jQuery.noConflict( true ); </script>
        <script src="js/jquery.scrollTo-1.4.3.1.min.js"></script>
        <script src="js/jquery.scrollorama.js"></script>
        <script src="js/jquery.easing.1.3.js"></script>
        <script src="js/jquery.scrolldeck.js"></script>


<script language="javascript" type="text/javascript">

function troca1(){
        document.getElementById("boneco").className="boneco1";
}

function troca2(){
        document.getElementById("boneco").className="boneco2";
}

function troca3(){
        document.getElementById("boneco").className="boneco3";
}


function troca4(){
        document.getElementById("boneco").className="boneco4";
}


function troca5(){
        document.getElementById("boneco").className="boneco5";
}

          $(document).ready(function() {
                  
                        var deck = new $.scrolldeck({
                                buttons: '.nav-button',
                                easing: 'easeInOutExpo'
                        });
                        
                        // add other animations using the scrolldeck.controller (see Scrollorama plugin)
                        console.log(deck.controller);
                        deck.controller.animate('#menu',{ duration: 100, property:'opacity', end: 0 });
                  
          });
</script>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
        <script> var $jq152 = jQuery.noConflict( true ); </script>

Alguém tem como me ajudar?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...