Solving conflict between CiviCRM with Superfish, Cycle, and pngFix
Submitted by Danetsoft on Sun, 06/06/2010 - 21:47
These problems arise in our theme, Danland. We include three jQuery plugins in Danland, and the plugins are:
- jQuery Cycle plugin for image slideshow.
- jQuery pngFix plugin to handle the PNG transparency in IE 6.
- jQuery Superfish menu plugin to provide a superfish drop-down menu.
We resolve this conflict by changing the way in calling the jQuery plugins (below if we call the jQuery Cycle plugin)
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade' , timeout: 8000, delay: 2000});
});replace the above code with
jQuery(document).ready(function($) {
$('.slideshow').cycle({
fx: 'fade' , timeout: 8000, delay: 2000});
});Yes that's all.
Categories: