I have been tasked with creating a code snippet that will be distributed to multiple websites for inclusion in their HTML. This code snippet will render a button, that when pressed will launch a lightbox that contains an iframe with content from a central website.

My thought is to use jQuery with a Lightbox Plugin (colorbox for example) however the websites including this code snippet may have an older (or newer) version of jQuery or a different framework already included which will most likely cause problems.

My questions is; how would one include jQuery in a website in a way that would not interfere with other versions of jQuery or other frameworks?

Also, is this even the best way to approach this? Is there a Javascript Lightbox out there that doesn't use a framework?

Any help would be greatly appreciated!