From the course: jQuery for Web Designers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Initialize the plugin

Initialize the plugin - jQuery Tutorial

From the course: jQuery for Web Designers

Start my 1-month free trial

Initialize the plugin

- [Voiceover] In this video we're going to actually implement the Colorbox method on this bouquet page. So what I wanna do, is when I click each of these, I want them to open in a light box in my Colorbox. One of my favorite things about Colorbox is that its page has an extensive documentation of its API. It's very easy to read and very easy to search, but more than that, it includes some very simple usage examples and this is great because it means we can steal what Jack has already written and probably just make some basic adaptations to make it work on our site. So this says Image links displayed as a group. That sounds pretty good, we do want to display images that are linked, so I'm going to highlight this line and copy it and then switch back to my script file. I'll take this out for now and we can see that the basic implementation is just to take a selector and then call the Colorbox method on it directly. Now I don't know if a.gallery is actually going to work on this site, so…

Contents