2010-07-03 64 views
0

我在一個頁面中使用了一個jQuery循環插件和flexdropdown ...會發生什麼情況是插件的其中之一正在工作,但不是兩者都有....在一個頁面中使用兩個jquery插件似乎並不工作

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

<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script> 
<script type="text/javascript" src="js/flexdropdown.js"></script> 

<script type="text/javascript"> 

$.fn.cycle.defaults.speed = 900; // Error: $ is undefined 
$.fn.cycle.defaults.timeout = 6000; 

$(function() { 
    // run the code in the markup! 
    $('#demos pre code').each(function() { 
     eval($(this).text()); 
    }); 

    $('#twitter-widget').twitterSearch({ 
     term: 'cycle plugin', 
     title: 'Cycle Chatter', 
     titleLink: 'http://www.twitter.com/malsup', 
     birdLink: 'http://www.twitter.com/malsup', 
     css: { img: { width: '30px', height: '30px' } } 
    }); 
    $('#twitter-widget .twitterSearchTitle a, .twitterSearchBird').attr('title','Follow Me'); 
}); 
</script> 

回答