Adding a new selector to the colorbox plugin
-
Hi Guys,
I previously hard coded the colorbox plugin in to the site and used it on some content items to bring up some pictures.
Ive now plugged in the colorbox plugin to make this work on my blog gallery images (which it does do fine) but this has broken the other items, how can i add it so the items below are also controlled by the plugin?
$(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
$(“a[rel=’gallery’]”).colorbox({transition:”fade”});
$(“a[rel=’gallery2′]”).colorbox({transition:”fade”});
$(“a[rel=’gallery3′]”).colorbox({transition:”fade”});
//Example of preserving a JavaScript event for inline calls.});
Many thanks in advance
Martin
- The topic ‘Adding a new selector to the colorbox plugin’ is closed to new replies.