lightbox replacement - different approach
November 29, 2007 · Print This Article
The mooSlideBox v3 is a small and slim ajax based extension or replacement of the common “lightbox” that can be found on nearly every page. This lightbox clone works in IE 6/7, Opera and Firefox.
To show the slider with an image, a heading and a sample text, you can call it this way:
To make the link a slideBox link, you need to add the tag rel=”designSlide” to it. The slide can contain a heading and some text. Define it in your title tag of the link, separate the heading from the main text with a “::”
If you wish to have more content, or html tags like links in the displayed content area, you can specify another tag in your slideBox. SlideBox uses the “rev=” tag. Give your rev tag the name of the div that contains additional content. In this sample it’s called rev=”mycontent”. This is the additional content
div:
The div containing the additional content is automatically hidden when the page is loading.




Hi,
Is there any support for this script as I am getting javascript errors in IE 6 - Object doesn’t support this property or method?
I have mootools loaded first (in document head) followed by mooslide (at the base of my document, just before closing body tag).
I have followed instructions as per the demo site and cannot see what could be wrong.
Thanks
What version of Mootools did you guys write this for? I tried both 1.11 and 1.2b2 with all options and no compression and it does not work. I tried it with the mootools.js yanked from your site and it DOES work.
The mootools.js on your site is packed so I can’t look inside, but I did notice the copywright was 2006, whereby the copywright date in the 1.11 source is 2007.
Are you using a pre-1.11 mootools for this library?
I also get the same issue in IE6 locally on my page, but not on your mooslide page. Strange…
Thanks for the reply first of all.
I don’t have a page to look at yet. My page heavily uses 1.11 for the other actions so I can’t include a mooSlide test on my public site otherwise.
Since I didn’t get it going on my page, for testing purposes what I did to test was to copy-and-paste your page from here:
http://www.artviper.net/test/ajaxslide/
I downloaded all of the includes and graphics, and tried to re-stage it here just to figure out why it wasn’t working on my main page. For testing purposes I just replaced your “mootools.js” with a new 1.11 version with every feature and no compression rolled from http://www.mootools.net. Everything else was left as-is, including the external CSS links back to your site.
When I switch back to your old mootools.js, it works fine. Switch to 1.11, and the actually clicks you to a new page showing the graphic file (e.g. your file images/0.jpg just shows up on a new page.) This is how I finally ended up figuring it was some type of version mismatch.
I can’t seem to find a way to download an older mootools lib that isn’t packed and don’t have an easy way to unpack a Dean Edwards packed JS file, so I’m a bit stuck. If you have an unpacked mootools lib for the version you are using I’m happy to help debug and fix it for use with 1.11. I had to do the same thing for the Mootools Coverflow effect which was written for 1.2b2 and also didn’t work for 1.11.
Hi.
Please teach whether I may commerce use mooSlideBox.