CeeBox – a Thickbox/Videobox mashup
Code Fix [2/19/2010]: CeeBox 2.1.5 jQuery Plugin: Minor improvement: can now force CeeBox to treat a link as an image with rel=”image” (similarly rel=”video” forces CeeBox to treat it as a video). Also fixes issue with jquery 1.4
Major Upgrade [11/11/2009]: CeeBox 2.0 jQuery Plugin: Completely rewritten from the ground up. New functionality: auto-gallery creation activating ceebox on a parent element; galleries can include any combination of images/video/html; optional onload callback; jquery chaining; multiple calls to ceebox; tons of new default options… I’ve completely rewritten this blog post with new instructions for CeeBox 2.0. If you are updating from CeeBox 1.4 please read CeeBox Upgrading
Problem: Need to easily embed flash videos which hosting on Google Video/YouTube by using an overlay popup. Site uses the jQuery framework thus Videobox isn’t an option. Thickbox is nice but doesn’t work with flash movies.
Solution: Create a new script based on Thickbox but with Videobox’s sweet video embeds.
I give you CeeBox. An overlay popup script for easily embedding flash video, displaying images, or showing html (either external sites via iframe or content on your own site via AJAX). Tested in Safari(4)/Chrome/FireFox(3.5)/Internet Explorer(6–8)/Opera(10). Note: Mobile Safari has an issue with fixed position.
Examples of CeeBox in Action
- Daily Motion Video popup: Outkast “Atliens”
- Single Image Popup: Dapper Qarly
- iFrame popup: NifNaks.com
- Ajax popup: Ajax link to above paragraph set to 400×300 using rel.
- Mixed Gallery popup (class applied on the parent ul tag):
- Mobius Sock Monkey image
- Prim Queer Tea image
- No More Hipster Scum image
- Mr. B Gentleman Rhymer youtube video
- SFtweed.com iframe
- more examples are on the test file which is included in the download.
How To Install On Your Site
- Firstly, you must be using the jQuery framework (one of the better frameworks in my opinion)* NOTE: CeeBox does work with jQuery 1.4 but has not yet been rigorously tested
- Secondly, you will also need the swfobject jquery plugin which is used for embedding the flash video players.*
- Thirdly, you will need to the jquery.ceebox.js and ceebox.css and the graphic button and animation files (download CeeBox 2.1.5). I have included a minified version jquery.ceebox-min.js (14KB) as well as the full uncompacted version jquery.ceebox.js which is throughly commented.
- Link all this javascript up with your site and add
$(document).ready(function(){ $("your selector here").ceebox();});to your global .js file. More on how this “selector” works below.- Or if you already have a document ready function, just add the ceebox function.
- Note: If you are adding this to wordpress you will need to write it using “no conflict” syntax:
jQuery(document).ready(function(){ jQuery("your selector here").ceebox();});
*I have included all the dependent jQuery js files in the CeeBox archive. However, you may want to check to make sure you are using the most current versions.
How CeeBox Works
Once the scripts are installed, no knowledge of javascript is required to use CeeBox.
- Links to images are created as image popups
- Links to video sites are created as auto-embeded video player popups.
- If flash plugin isn’t installed a message is presented to the user.
- iPhone users are automatically redirected to link, (youtube movies launch the youtube app)
- Just use the normal page url and CeeBox does the rest.
- CeeBox currently supports Google Video, YouTube, Metacafe, Vimeo, Dailymotion, Spike, iFilm, CNN, Facebook videos and swf files.
- With a bit of regex knowhow you can add support yourself for other sites (see Adding More Video Support below)
- Links to html pages on the same domain are added as ajax popups (you can override this by adding “iframe” to the rel attribute for the link)
- if you want to only display a portion of a page just link to it with the id in the link like a normal anchor link. For instance, href=”cute-cats/index.html#fluffy”
- Links to html pages on another domain are added as an iframe popup.
- Title attribute is used for the caption/header on the popup.
- Optionally popups can be made modal (more on this below)
- Galleries are created automatically by applying CeeBox to a parent object with links underneath.
- if you want to stop a specific link from activating CeeBox add class=”{html:false,image:false,video:false}” to the link (you will need the metadata plugin for this to work.)
- onload and unload callback functions can be added via the options (see below).
Multiple ways of setting it up
Since the upgrade to 2.0 CeeBox has become a very flexible plugin. As such there are several ways you can set up CeeBox to suit your needs. I’ve included a few examples below to give you ideas.
- Class Name Method: Add $(document).ready(function(){ $(“.classname”).ceebox();}); to your global .js file and then add class=”classname” to any link you want it to work on. To make a it act like a gallery with next/prev links just add the class name to a parent object, like a list (this is how the above example works).
- Blog Post Gallery: Instead of using a unique class, use the same class as your blog article class but limit it to images/video only by turning off html ceebox popups using the optional parameters. CeeBox will then attach itself to every image/video link with next/prev links. For Example: $(document).ready(function(){ $(“.post”).ceebox({html:false});});
- Auto Video Popups: Attach CeeBox to the body tag to make every video link use the popup. Like so: $(document).ready(function(){ $(“body”).ceebox({html:false;image:false;videoGallery:false});});
- Mix & Match: CeeBox can be applied multiple times in different ways to the page so you can mix and match methods. For instance, you can make every video link popup and then add the class name method for specific image or html links. Note, if your selectors overlap than the last instance of ceebox applies.
Changing The Default Settings
CeeBox 2.0 includes a huge number of settings which can be easily changed when you call the ceebox function, like so: $("selector").ceebox({optionName:setting});. I’ve included a list of every default setting below with guidance notes:
- html:true, // set to false to turn off html popups
- image:true,
- video:true,
- modal:false, // if set to true all ceebox links are modal (unless you add modal:false in the rel);
- titles: true, //set to false if you don’t want titles/captions
- htmlGallery:true, // set to false to turn of gallery functionality for html popups
- imageGallery:true,
- videoGallery:true,
- videoWidth: false, // set max width for all video links
- videoHeight: false,
- videoRatio: “16:9″, // common ratios are included “4:3″, “3:2″, “16:9″, or ratio can also be set to a decimal amount (i.e., “3:2″ is the same as 1.5).
- htmlWidth: false, //set max width for all html links
- htmlHeight: false,
- htmlRatio: false,
- imageWidth: false, //set max size for all image links (image ratio is determined by the image itself)
- imageHeight: false,
- animSpeed: “normal”, // animation resize transition speed (can be set to “slow”,”normal”,”fast”, or in milliseconds like 1000)
- easing: “swing”, // can be set to “linear” — also supports use of the easing plugin for resize anim
- fadeOut: 400, // speed that ceebox fades out when closed or advancing through galleries (same as animSpeed)
- fadeIn: 400, // speed that ceebox fades in when opened or advancing through galleries
- overlayColor:”#000″, // color of the overlay
- overlayOpacity:0.8,
- boxColor:”", //background color for ceebox. This overrides css styles. This and the next two options are really only useful in combination with the color animation plugin—if you are changing globally just set it in the CSS.
- textColor:”", //color for text in ceebox. This overrides css styles..
- borderColor:”", //outside border color. This overrides css styles. Note: ONLY use hex values! Varying colors can be set like css (ie, “#aaa #666″);
- padding: 15, //ceebox popup padding. Single value only.
- borderWidth: “3px”, //the border width on ceebox. Varying widths can be set like css (ie, “4px 2px”) (color and style controled in css file)
- margin: 150, //margin between ceebox content and browser frame (used for max size)
- onload:null, //callback function once ceebox popup is fully loaded.
- unload:null, //callback function once ceebox popup is fully unloaded (ie closed).
- videoJSON:null, //file url for adding video support via JSON.(see Adding More Video Support below)
- iPhoneRedirect:true//detect’s iPhone/iPod Touch and redirects all video popups to video site (this allows youtube links to open in youtube player)
Link Specific Parameters
You can also change some settings on a link by link basis by adding them to the rel attribute. For example rel="modal:true width:600 height:400" would create a modal popup that measures 600 x 400.
CeeBox also supports the jQuery metadata plugin so if you have it installed you can set any of the default settings by adding them directly to the class attribute. For instance: class=”{padding:50,onload:function(){$(‘p’).remove();}}” would set the padding really high for just that link, and add the callback function once the popup loads.
Modal popups
Popups can be made to require a button press to proceed. This is useful for login popups or disclaimer text.
- To close a modal ajax popup add
class="cee_close"oronclick="$.fn.ceebox.closebox();"to a link/button in the ajax area - To close a modal iframe popup add
onclick="parent.$.fn.ceebox.closebox();"to a link/button in the iframe
Optional Functionally
As mentioned, CeeBox also supports use of three over jQuery plugins which expand the functionality of CeeBox:
- jQuery metadata plugin: when added allows options to be changed on a per link basis by adding them to the class attr like so
class="{padding:50}" - Color Animation plugin: allows colors (on background,text,border) to animate. Requires metadata plugin. (NOTE: the Color Animation plugin is a bit buggy and sometimes doesn’t work properly. Unfortunately it’s owner hasn’t updated it in a while. If anyone has a better plugin or a fixed version of this one let me know.)
- Easing plugin: allows an assortment of ways to make the animated transitions look different (from smooth to bounce and more)
- CeeTip plugin: creates simple tooltips for links which works with CeeBox. Some tooltip plugins hide the title tag which CeeBox needs for captions.
I have included the latest releases of all these plugins with the download. However, they are not necessary for CeeBox’s main functionality.
More functionality for those that like to dig in the code
CeeBox contains a whole lot more functionality under the surface though the use of public variables and public functions.
- You can add more ratio names to $.fn.ceebox.ratios
- The rel attribute regex functions for sizes and modal are listed in $.fn.ceebox.relMatch, which is useful if you are changing from another popup script
- The ceebox loader html can be changed via $.fn.ceebox.loader (don’t change the id or things will get screwy)
- Also you can use the public function $.fn.ceebox.popup(html,options) to create a ceebox styled popup containing whatever html you throw at it by doing the following:
- Run the main CeeBox function once prior to using the popup function to initialize it. You can run it empty $().ceebox(options) and it will not attach itself to any links.
- Use $.fn.ceebox.popup(“whatever html you want”, options) to load any html in the CeeBox popup
- Or use
$.fn.ceebox.popup("<a href='http://someurl.com'>link</a>", options)to load the link in an iframe.- If the link is a video or image you will need to set it to load as such via options, i.e., {type:image} or {type:video}
- NOTE: image preload only happens in the main function, so if you are sending $.fn.ceebox.popup() an image link you will need to add size in the options {width:600, height:400} or else it will size itself to the browser window.
- The popup function also loads the overlay; however, if you want to preload the overlay for whatever reason you can call $.fn.ceebox.overlay(options).
- $.fn.ceebox.closebox() can be used to close an open ceebox popup. If you want to call this from a iframe you must call it as parent.$.fn.ceebox.closebox().
Adding More Video Support
The public variable $.fn.ceebox.video is used to add support for video players from different sites. This is a bit complicated but doable for anyone with a bit of regex knowhow.
- If you want to add a site yourself you will need to look at how the site sets up their embed code and then either:
- extend the $.fn.ceebox.videos variable directly. For example if facebook video wasn’t supported we could add it like so:
$.extend($.fn.ceebox.videos,{facebook:{siteRgx: /facebook\.com\/video/i, idRgx: /(?:v=)([a-zA-Z0-9_]+)/g, src: "http://www.facebook.com/v/[id]"}}); - add a JSON file with your added support via the videoJSON option when you call the functionl. For example :
$("yourselector").ceebox({videoJSON:"js/humor.json"})NOTE: I’ve included humor.json along with the download as an example which adds support for Daily Show and Colbert Report videos
- extend the $.fn.ceebox.videos variable directly. For example if facebook video wasn’t supported we could add it like so:
- The name for the new video support is not important, but the underlying options (siteRgx, idRgx, and src) are. The options for each site’s player are as follows:
- siteRgx: regex for testing which site it is. (NOTE: Remember to add subfolders if video pages are always under /video/ or else ceebox will think even the main page is a video link)
- idRgx: non-capturing style regex for finding the video’s id in a link (NOTE: if a site does not include an id in their link, then it can’t be supported by ceebox without extra help. For more on this see below)
- src: typical src url for a video embed. Add [id] where the id goes and ceebox will replace it via the result from idRgx
- param: optional (some base parameters are already added)
- flashvars: optional (some base flashvars are already added)
- width: optional (forces a set width, required by some video players like CNN)
- height: optional (forces a set height, required by some video players like CNN)
- Sites that don’t include the id in the link to their video page (e.g., atom.com, Comedy Central, or any site that uses media.mtvnservices.com to serve up video) can’t be supported easily with CeeBox. However, if you’re tenacious you can still support them like so:
- Add support for a site via the extend method but only add the siteRgx and the src.
- Add
rel="videoId:id-goes-here"to the link itself. - Or if the src doesn’t use an id tag then you can just add
rel="videoSrc:http://entire-videosrc-url-goes-here"to the link - an example of this is in the JSON file because Daily Show video clips require that the videoId be added to the links (see test.html file for example)
For more on all of this, I recommend looking at the uncompressed jquery.ceebox.js file which is heavily commented
Upgrading from CeeBox 1.4
If you are using an old version of CeeBox, you will need to replace your copy of jquery.ceebox.js, ceebox.css, and all the image graphics. The CeeBox function call in your $(document).ready section can remain the same and it should just work. If you were modifying any links via the rel attribute or using ajax please note that the syntax for these parameters has changed.
I highly recommend upgrading as it’s easy and several things have been added and fixed, like it now supports jquery chaining, multiple ceebox function calls on the same page, onload callbacks, and more.
Known Bugs with CeeBox 2.1
- when scrolling in iPhone, popup is fixed to near top of the screen rather than the middle of the viewport as expected. This is due to the fact that iPhone uses fixed positioning more like absolute positioning.
- Setting any color via options requires the jquery color animation plugin be installed. Or else IE will crash.
- As of CeeBox 1.4, CeeBox failed with the Opentracker web site tracking tool. The Opentracker script causes Safari (and Chrome) to behave as if the link was clicked twice, which causes the movie to load twice. At this time, I do not have a solution for people using Opentracker—other than to remove the Opentracker script from pages that use CeeBox. NOTE: I have not tested this since 1.4 so it may have fixed itself, but I doubt it.
IE graceful degradation in CeeBox 2.0
Due to the constraints with IE, you will notice that CeeBox has some differences in IE. My motto is as long as it works in IE6/7/8 I’m good, and I’m fine with it not looking the same. That said there are a number of small issues which you may or may not care about depending on your site’s audience.
- IE6:loading animation is missing. This is a IE6 css issue. I could probably fix it, but at the moment I don’t care.
- IE6 (and sometimes IE7/8): Animation transitions are a bit jerky since IE’s javascript engine sucks
- IE6 (and sometimes IE7/8): While a video is playing the close and prev/next buttons are finicky and sometimes don’t work until you stop the video. This is also dependent on the type of player—youtube player seems particularly prone to this. I’m guessing this is due to IE’s javascript engine being overwhelmed by the flash player hogging resources. This issue I’d like to fix but at the moment I don’t have a solution.
- IE6/7/8, Opera: CSS rounded corners don’t work in IE (nor do they in Opera). There are ways using javascript to get rounded corners working in all browsers, but I haven’t implemented them because frankly I don’t really care.
- IE6/7/8: top left close btn graphic is placed inside the box rather than hanging off the corner. This is due to the fact that IE doesn’t like negative positioning.
Release History
- 2.1.5: can now force CeeBox to treat a link as an image with rel=”image”
- 2.1.4: Esc key now closes popup
- 2.1.3: fix for another gallery bug which was introduced in 2.1.1
- 2.1.2: fix for gallery bug which was introduced in 2.1.1
- 2.1.1: code tidying up.
- 2.1: uses event bubbling via jQuery live. Also detects for flash plugin and iphone
- 2.0.11: Changes iframe loader anim close to use no-conflict which fixes wordpress issue
- 2.0.10: Added fix which allows ceebox to run without attaching itself to any links. This is useful for using the public popup function standalone.
- 2.0.9: fixed enter key bug, google video player bug, minor ajax detection bug, and added support for CeeTip *
- 2.0.8: fixed youtube video player bug (some youtube video ids include a dash which wasn’t accounted for) *
- 2.0.7: fixed Safari video player bug (Note to self: Safari wrongly considers RegExp objects to be functions) *
- 2.0.6: fixed video player bug (gallery of videos from same site was broke). Also added ability to add video support via JSON
- 2.0.5: fixed iframe bug, added unload callback, improved video player support
- 2.0.4: added support for color animations
- 2.0.3: added ability to change background color and border color via the options
- 2.0.2: Massive battery of testing and fixes. CeeBox 2.0 is outta beta!
- 2.0.1: code fixins
- 2.0.0: First beta release of the new and improved CeeBox.
- 1.4.3: Added transition animation for popups!, Also includes further code optimization and reorganization (minimized version of jquery.ceebox.js is 7.8KB)
- 1.4.2: Fixed/improved modal functionality. Also changed how overlay is built which simplified js and css.
- 1.4.1: Fixed small error in minimized css file. Also reorganized css file to allow easier changing of graphics.
- 1.4: Now a full fledged jquery plugin! Also includes some optimization (minimized version of jquery.ceebox.js is 8.4KB)
- 1.3.4:New pretty graphic buttons for Close, Next, and Prev links! Further Code optimization (file size now 14.2KB uncompressed; 9.5KB compressed)
- 1.3.3:Code optimization. fix for another Opera display bug (really Opera just die). Facebook video embedding added
- 1.3.2: includes Opera fix which is admittedly a bit hacky.
- 1.3.1: includes iE6 fixes by Mark Elphinstone-Hoadley. Thanks Mark!
- 1.3: code cleanup and optimization, bringing the file size down to 16KB uncompressed and 10KB compressed.
- 1.2: uses the much smaller jquery swfobject plugin, adds flexible auto size for video and html boxes, and fixes a few bugs.
- 1.1: includes fix for JQuery 1.3.2 and adds support for Vimeo and Dailymotion
- 1.0: initial release.
More Information & Credit
CeeBox relies on the JQuery framework and swfobject jquery plugin to work. CeeBox is created by Colin Fahrion and was originally inspired by and adapted from Thickbox and Videobox. Early iterations of CeeBox borrowed heavily from these two sources; however, since then CeeBox has been completely rewritten with original code.
CeeBox is licensed under the opensource MIT License.
If you are grateful for the work I put into CeeBox send me an email to say hi with any site links. Of course donations are, while unnecessary, never turned down. I have a tip jar on the right column for those generous souls who would like to buy me a drink or two.
Footnotes
CeeBox was the first name that came to me. It is a phonetic play on the word “see” which works as it was initially built many to support flash video.

Hi Colin,
great work!
I have a suggestion for a tiny improvement in your code.
So far Ceebox only works with links to http targets.
I used a https target and it took a while until I noticed, why Ceebox did not work. I changed your code an now it works just fine.
Thanks for your plugin!
Xilef
hy, great job.
can you add a option : can disable the count item
or simply add a locker for “1 tiem”
i ve add :
if(g.gLen!=1)
$(“#cee_title”).append(“Item ” + (g.gNum+1) +” of “+ g.gLen + “”);
regards
manu
hi! great job!
but i want to known if this surpport ohter video type,like : *.jpeg,*.mp4,*.wmv,*.avi..
or does this surpport jquery media plugin
http://jquery.malsup.com/media/
Ceebox is the best.
I’ve trying to hammer it together, but I can’t seem to get it to work with a custom ajax function. I need to append special post & get variables (yes both) to get the ajax to work with my CMS.
How do I do the following:
$.fn.ceebox.popup(varIn, options);
with a iframe?
varIn is the result from the ajax. When you do the link, it’ll just do another ajax call.
$.fn.ceebox.popup(“link“, options);
I tried just adding a iframe:true to the options and messed around with the source. I can’t seem to figure out where the iframe comes from.
Hi Everyone, Life has calmed down slightly or at least enough for me to answer your questions. Sorry about the long delay. I’ve added all of the answers into one big comment below.
@anna: you can dig in the javascript to add scroll=”no” to the iframe itself or if you have access to the html page that is being loaded in the iframe you can add style=”overflow:hidden;” to the body.
@jonny: Kinda. Preferencing any javascript calls within your frame with “parent” will trigger javascript calls First, you would need jquery.ceebox.js loaded on the parent page. Secondly you would need to either trigger a link on the parent page that was already set up with CeeBox using parent.$(“#linkid”).trigger(“click”); or use the public functions like so: parent.$.fn.ceebox.popup();
@foo: Sorry I can’t help with using FLV using jquery media at the moment. I know it’s a major want and I have it on the list and possible functionality for the next update. You should be able to set the width/height when the ceebox function is first called.
@pff: If you don’t like it, use any of the other numerous lightbox-clone plugins out there, or build one yourself.
@scaz: give ceebox the #id of the div so that the links and gallery is setup and then on page load use jquery trigger to fire off the first link.
@davehart: Sorry ceebox does not yet support .mov files. There are other lightbox clones out there that do. I suggest checking out this link: http://planetozh.com/projects/lightbox-clones/
@Luca: Sorry I’m late answering. The link you provided isn’t working at the moment. If you would like to respond again with a link I can help you out.
@etbsoft: can you supply a link to your issue?
@Motty: The bottom caption area adjusts based on the base font size I have it set at in the css. Never did set it up to change if the user changes the size. I’ll add that to my issue list for the next release.
@Alexander: unfortunately no there isn’t an easy way to change the language for next/prev but you make a good point that there should be. I’ll add that to my list of next release issues. As to your issue #2, I’m not sure how to mark a link as visited as ceebox takes over the link and it acts like it was never called (actually all lightbox plugins work this way. I’ll have to look into that.
@unwohltaeter: looks like flowplayer tooltip puts the tooltip in a data element. More complicated than what you can handle but I can set ceebox to grab it. I’ll add that to the next release.
@jackie: Adding the ability to support a basic swf container for flv files is on my list for the next release.
@creativejim: good call, I’ll make that change to the instructions.
@vito: the content is there all in the #cee_box div (images are #cee_img, etc.). Just target it like you would any element on the page. I suggest using firebug to see how the popup is written.
@Jason Day: I’ll look into making the captions more robust. It’s a good suggestion.
@pankhuri: Sounds like you need more basic html help which I don’t have the time to offer. Anyway, all the css/js files need to be loaded in the head of the html page.
@hermann: interesting usage. I never designed ceebox for this as ceebox preloads all the gallery data and stores it on the links themselves; hence your need to refresh ceebox. The reason I do it this way is that it lessens the need for javascript searching the page on gallery next/prev links. You might want to look into using another lightbox plugin which doesn’t preload the gallery like this. Also, I’ll look into adding image preloading for my next release
@Mau: Good call! I’ll add that!
@yiqing95: This is a much requested feature and I have it on my list to add for the next release (or maybe the release after)
@bigorangemachine: not sure exactly what you are trying to accomplish since ajax is supposed to be used to load content on the page itself and not into an frame. The way ceebox is set up is that it either loads an html page into an iframe or it loads the ceebox and using ajax it appends the content to it. The ajax works basically just like the unload callback. If you need to use a custom ajax script you can just fire it on unload and have it append to the ceebox div.
[...] CeeBox is another video player that also allows you to embed images as well. To use this jQuery plugin, you need to also install the swfobject jquery plugin. After installing the second plugin and the scripts, that is the last coding that you have to do. All that you need is the video (or image) URL. [...]
So Colin, I love ceebox. I’ve used it in a few places and I’m having a lot of luck with it. One use I’ve been unable to hack though, is using an anchor with post-load data in it (i.e. another script has loaded the data into the dom on document ready). So the content to be loaded into the ceebox isn’t around when the document is loaded.
Any thoughts on that?
Thanks!
Hi Colin!
I love CeeBox! But I’ve noticed that it won’t work with vimeo HD links (e.g. http://www.vimeo.com/hd#6235286). The “hd#” in there messes up the regex. I’m not that great with regex, so this modification may not be the “correct” way to do this.
vimeo: {
siteRgx : /vimeo\.com\/(hd#|)[0-9]+/i,
idRgx: /(?:\.com\/(hd#|))([a-zA-Z0-9_]+)/i,
src : “http://www.vimeo.com/moogaloop.swf?clip_id=[id]&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1″
},
Also, would it be ok if I used your “$.fn.ceebox.videos” variable in a plugin I’m working on? :P
Thanks!
Mottie
awsome. nobody has tried to embed dailymotion so far even though it works in same idea of embedding youtube videos. u site is cool. any idea that i can use this in blogger. i have a blogger and i m looking for a iframe that would contain any html like urs have. and also blogger wont allow hosting so for visitors can u give me some link of images and edited css according to images. thank you. and thank u for creatig ceeBox
@Mottie I tend to stumble my way through regex too. It’s easy enough to test so just try it and see if if works. Also, CeeBox is opensource so go ahead and use any part of the code you want!
@manozr Glad you like the plugin. I don’t really know much about Blogger so I can’t answer questions about that.
Hello @Colin,
I really like your Ceebox plugin. Out of all the lightbox plugin out there, ceebox is outstanding. Great job!
By the way, is there anyway I can make an image gallery cycles like an automatic slideshow with customizable transition speed , ‘autplay’ perhaps?
Thanks.
[...] CeeBox is a very customizable and extensive lightbox clone. In addition to images, it can display iframes, inline element, ajax, flash and videos. Note that, it need swfobject plugin to display flash. [...]
I’m trying ceebox and it works great in Firefox, but, naturally, in IE (7) it’s broken. I get the modal overlay and the loading gif, but then nothing. I call jquery.js , jquery.ceebox.js and ceebox.css in the doc head, and the following script (also in the head)
[script]
jQuery(document).ready(function(){
$(“.ceebox”).ceebox({–option list–}); });
[/script]
The plugin is called with [a class="ceebox" href="URL here" title="title"]
Have I missed anything for IE functionality?
Thanks.
Found the IE problem. I used a color option in the selector–and IE needs the jsquery.color.js script to keep it happy. IE: Ugh.
Here’s an interesting problem. Is it possible to get ceebox to work with the Overlib tooltips on the internal anchor link? That’s the link within the onMouseOver handler. See the code:
[a class="tool" href="javascript:void();" onMouseOver="return overlib('Lorem ipsum dolor sit amet, consectetur adipisicing elit. More here.', STICKY, MOUSEOFF, BGCOLOR, '#000000', WIDTH, 300, FGCOLOR, '#ffffff', WIDTH, 400, TEXTSIZE, 2, CELLPAD, 10);" onMouseOut="return nd();">Item</a]
I tried some of the obvious ways of putting the "class=" and "rel=" options into the tag, but that didn't work.
And while I'm asking, I found that the first line in the ceebox.css file,
*{padding: 0; margin: 0;}, breaks the layout of the page it's included on. Is there an easy workaround other than applying styles to all of the affected elements on the broken pages? Like making that * wildcard tag apply only to the ceebox class? That would make it much easier to add the ceebox to a bunch of existing pages.
Thanks…
The page ate the second anchor call. I forgot to obfuscate that link. Trying the code again:
[a class="tool" href="javascript:void();" onMouseOver="return overlib('Lorem ipsum dolor sit amet, consectetur adipisicing elit. [a href=ref-page.htm#Item>More here.[/a]‘, STICKY, MOUSEOFF, BGCOLOR, ‘#000000′, WIDTH, 300, FGCOLOR, ‘#ffffff’, WIDTH, 400, TEXTSIZE, 2, CELLPAD, 10);” onMouseOut=”return nd();”>Item[/a]
[...] CeeBox アニメーションがかっこいいCeeBox。画像だけでなく、iframeやFlash、動画を読み込めて、カスタマイズが可能。Flashの表示にはswfobjectを使用 [...]
[...] for cross browser compatibility. Product X currently uses two additional jQuery plug-ins called CeeBox for thickbox like popups and jQuery Tools for some gallery interactivity. Again, both of these [...]
Hi Colin.
I’m building my first portfolio site and chose your plug-in as the main engine behind the design and user experience of the content. The first two pages are built and all that needs to be done now is figure out how to implement your plug-in so that it works the way I want it to.
THE PROBLEM:
If you go to my flics page at http://www.wendychuck.com/flics.html you’ll see that all of the featured attractions have been given a rollover jpg for over, down, and on-click states. I want the corresponding gallery to load when a user clicks on the button.
I created a test gallery from the test.html file you provided. It functions the way it’s supposed to. But, I’m a little confused as to how I’m supposed to link the gallery to the corresponding button on the Flics page.
After a few days of poking around, trying different things out, looking through the discussions on this board, and going through the documentation and basic tutorials on the jQuery site – I’m not sure if the plug-in is going to work the way I want it to.
I’m hoping that you will be able direct me to the correct script and global setting, suggest a solution, or let me know that I might want to rethink my approach/design.
I appreciate it.
Hi,
i’ve been using your script for a while now, had no problem with it until i tried to call an ajax content then run the script. it doesnt seem to detect it.
i use this.
$(document).ready(function(){ $(.divpopup).ceebox();});
the script always runs all the divpopup class until i change content with ajax. all the contents that are changed from the ajax call does not work.
hope you can get back to me on this..
thanks
hey,
first, thanks for this great script.
i have been trying to display a popup in ceebox on page load by applying the steps in “More functionality for those that like to dig in the code” section. my code is like below:
$(function() {
$().ceebox();
$.fn.ceebox.popup(‘myHtml’,{htmlWidth:600,htmlHeight:400});
});
problems:
1. the width and height parameters do not work and they are always 100% of the page
2. all links on the page displays in ceebox popups…
i just want to display a single popup when page loads, is that possible without changing the behaviour of other links?
thanks.
hi,
i’ve been using your script and works really great. but i have a minor problem using ajax returned content on the script.
it works fine on all the links until i change content with ajax. and the script doesnt work anymore.
any suggestions ?
P.S. I’ve tried using directly opening the popup on the onclick state with “$.fn.ceebox.popup(link,options)” it works fine except when i need the popup to open as an html. I’ve used link but i don’t think it is recognized as an iframe, because all the links in the popup still loads the whole window.
any advice on this would be helpful. thanks
(tried writing again, i think i explained the problem better this time. :P )
wow thanks! exactly what I’m trying to find. :D
Hi,
Great work!
How can i call the ceebox function from an iframe.
I mean for an example I am having an iframe inside that i am having a menu on clicking this menu the ceebox should popup in Parent window with relevant URL.
thanks