Log in

View Full Version : Slimbox Help



luciddd
07-09-2008, 05:03 PM
3) Describe problem: This script works perfectly on my homepage, but when I tried to implement in the sub 'gallery' folder, the lightbox viewer gets stuck when opening up. I have copies of required files on each of the folders... please help, im on a deadline.

the site is http://spaceshaping.kinetic-designs.net
and http://spaceshaping.kinetic-designs.net/gallery

jscheuer1
07-09-2008, 06:20 PM
This is not lightbox, it's slimbox.

These are the externally linked script tags that appear on both pages:


<script type="text/javascript" src="js/effects.js"></script>
<script type="text/javascript" src="js/application.js"></script>
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/slimbox.js"></script>

However, the working page is only finding these:


<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/slimbox.js"></script>

The non-working page is finding them all, and these:


<script type="text/javascript" src="http://cslingphotography.com/blog/wp-content/themes/csling_theme/javascripts/prototype.js"></script>
<script type="text/javascript" src="js/effects.js"></script>
<script type="text/javascript" src="js/application.js"></script>
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/slimbox.js"></script>

Which are also in its source code. Apparently one or more of the 'extra' scripts is messing things up. I'd try getting rid of all of the external script tags from the non-working page, except these:


<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/slimbox.js"></script>

luciddd
07-21-2008, 05:00 PM
i fixed those things you said, and i still can not get it to work, any other suggestions?

jscheuer1
07-21-2008, 05:27 PM
It's working here in IE 7, FF 3, and Opera 9.5. Perhaps you need to reload the page and/or clear your browser's cache.

This:


<script type="text/javascript">
window.addEvent('domready',function(){
Lightbox.init({descriptions: '.lightboxDesc', showControls: true});
});
</script>


is causing an error though. Lightbox does not exist. You can probably safely remove it from the page. There was one other error in IE, but it may go away when you fix that. The Slimbox lightbox effect still worked even with the errors.