Hi there,
I have two jquery plugins running.
JQuery tools and slimbox a lightbox plugin
One creates an overlay (jquerytools)Code:<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script> <script src="js/libs/slimbox2.js"></script>
This runs the overlayHTML Code:<li><a href="#" class="library" rel="#overtwo"></a></li> <div class="simple_overlay" id="overtwo"> <p>Contents of my overlay</p> </div>
The other created a lightwindow (simple2.js)Code:$("a[rel]").overlay();
This runs the lightwindowHTML Code:<a href="img/slideshow/slide1.png" class="gallery" rel="lightbox"></a> <a href="img/slideshow/slide2.png" class="gallery" rel="lightbox"></a>
Both work individually but not on the same page due to both plugins using the re attribute. How can I overcome this issue?Code:// AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED) if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) { jQuery(function($) { $("a[rel^='lightbox']").slimbox({ overlayOpacity: 0.6, loop: "true" }, null, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); }); }
Thank you kind people


Reply With Quote

Bookmarks