Lightbox-page

kuzco

Avatar: kuzco

2011-11-18 23:43

Hello,
I am using the following code on my homepage:
<a href="files/kennedy_vergroeszerung.jpg" rel="lightbox-page" title=""><img alt="" src="files/100/kennedy_BildergalerieThumbnailHochformat.jpg" style="width: 70px; height: 52px;" /> </a>
to show a thumbnail and after clicking the thumb the whole picture.
Unfortunately lightbox does not work, the full picture will be displayed in same screen - means homepage is gone and full picture is displayed.

When checking the page with Firebug, I can see that <script src="core/litebox-1.0.js" type="text/javascript"> is included, so from my understanding lightbox should work.

Any hint is welcome.

regards
kuzco

» Quick.Cms v3.x

baron_jon

Avatar: baron_jon

2011-11-19 05:58

You need also prototype.lite.js and moo.fx.js

kuzco

Avatar: kuzco

2011-11-19 17:11

Thanks, have checked <head> again:
<script src="core/common.js" type="text/javascript">
<script src="core/plugins.js" type="text/javascript">
<script src="core/prototype.lite.js" type="text/javascript">
<script src="core/moo.fx.js" type="text/javascript">
<script src="core/litebox-1.0.js" type="text/javascript">
- so all three are included.

But it does not work.

regards
kuzco

cgan

Avatar: cgan

2011-11-19 18:59

Try to change the name of the images to be the same. E.g "kennedy_vergroeszerung.jpg" at both places.

cgan

kuzco

Avatar: kuzco

2011-11-19 21:48

Unfortunately this does not solve the problem.

boboo

Avatar: boboo

2011-11-19 21:59

AddOnLoad(initLightbox) is also present?
The script tags, you quoted above are closed with </script>?
If AddOnLoad(initLightbox) is there, do any other calls exist under it?

strzelectwo.kimla.de

kuzco

Avatar: kuzco

2011-11-19 22:22

Hello,
have checked again my source code for this - on other pages lightbox was working fine.

I have added a counter on this page - based on a javascript:
<script type="text/javascript">
dateFuture1 = new Date(2011,11,23,18,00,00);
dateFuture2 = new Date(2016,9,15,18,00,00);
function GetCount(ddate,iid){
dateNow = new Date(); //grab current date
.....
};
</script>

When deleting this script, lightbox is working fine.

So, it is not allowed to use something like above ?

Regards
kuzco

kuzco

Avatar: kuzco

2011-11-19 22:31

sorry, it is not a counter its is a countdown.

boboo

Avatar: boboo

2011-11-20 06:28

try to add the
<script type="text/javascript">
<!--
AddOnLoad(initLightbox);
-->
</script>
under the counddown script.

strzelectwo.kimla.de

kuzco

Avatar: kuzco

2011-11-20 21:43

Unfortunately this does not solve the problem.

I have "outsourced" the whole function to countdown.js, added this file to container.tpl and put only the result in the page source. Now it is working.

Back to top
about us | contact