简体   繁体   中英

Only one of two functions work at same time

the jquery.tools.js comes with 1.3.2.min.js (I test with this 1.4 and works fine, IF I remove the rest of statements (the dinamic menu). Both of them works if I remove the other Please Help me

<!-- scroll pics -->
<script type="text/javascript" src="js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="lib/jquery.tools.js"></script>
<!-- dinamic menu --> 
<script type="text/javascript" src="js/jquery.easing.min.js"></script>
<script type="text/javascript" src="js/jquery.lavalamp.min.js"></script>
<script type="text/javascript" src="js/cufon.yui.js"></script>
<script type="text/javascript" src="js/myriad.js"></script>
<script type="text/javascript">
    $(function() {
        $("#four").lavaLamp({
            fx: "backout", 
            speed: 700
        });
    });
</script>
<script type="text/javascript">
    Cufon.replace('li a', {hover: true});
</script>

Honestly, your best course of action is to upgrade to the latest version of jQuery. 1.3.2 is over 3 years old. 1.4 is over 2 years old. That's ancient history now.

The current version is 1.7.2, available at http://code.jquery.com/jquery-1.7.2.min.js or https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js

You don't have to use the version of jQuery that's bundled with jQuery Tools.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM