use this solution if you cannot use one jQuery file for both plugins:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> var jQuery_1_4_2 = jQuery.noConflict(); </script> <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
To use jQuery 1.4.2, put the code using it in SEF (Self Executing Function), like this:
(function($){
For jQuery 1.2.5, you can directly use the $ variable.
UPDATE: Based on your comment, the following use case.
If you want to use jQuery 1.4.2, use the jQuery_1_4_2 object
For example: jQuery_1_4_2("#abc").slider(options)
If you want to use jQuery 1.2.5, use a $ or jQuery object
For example: $("#abc").scrollable(options)
sv_in source share