Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.
Please keep in mind:
ok when i started work on this i saw that prototype is already used, so since it is bad to use 2 javascript library in one file i decided to first try to use the prototype based lightbox. This failed after 10 times training i gave up on that and use jquery.booyaka95 said:If you know how to use jquery i choose it,
but how to use? 😀
<!--Lightbox and jquery stuff -->
<link href="<?=URL_SCRIPT;?>css/lightbox.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?=PATH_SCRIPT;?>js/jquery.lightbox-0.5.pack.js"></script>
<script type="text/javascript">
jQ = jQuery.noConflict();
jQ(document).ready(function() {
jQ('#imagen a').lightBox( {
imageLoading: 'site-img/lightbox/lightbox-ico-loading.gif', // (string) Path and the name of the loading icon
imageBtnPrev: 'site-img/lightbox/lightbox-btn-prev.gif', // (string) Path and the name of the prev button image
imageBtnNext: 'site-img/lightbox/lightbox-btn-next.gif', // (string) Path and the name of the next button image
imageBtnClose: 'site-img/lightbox/lightbox-btn-close.gif', // (string) Path and the name of the close btn
imageBlank: 'site-img/lightbox/lightbox-blank.gif' });
});
</script>
<!--end of jquery -->
<script type="text/javascript">
// <![CDATA[
<? if ($spit==true) { ?>Behaviour.register(error);
<? } ?>
<? if ($modo==1 || $modo=='rr') { ?>Behaviour.register(_up);
<? } ?>
<? if ($modo==3) { ?>Behaviour.register(_proceso);
<? } ?>
<? if ($modo==2) { ?>Behaviour.register(_ver);
<? } ?>
<? if ($modo==2 || $modo==3) { ?>Behaviour.register(_social);
<? } ?>
<? if ($cut_url==true && $cut_url_user==true && $modo==1) { ?>
Behaviour.register(_pref);
<? } ?>
// ]]>
</script>
past it right above
<script type="text/javascript">
// <![CDATA[
<? if ($spit==true) { ?>Behaviour.register(error);
<? } ?>
<? if ($modo==1 || $modo=='rr') { ?>Behaviour.register(_up);
<? } ?>
<? if ($modo==3) { ?>Behaviour.register(_proceso);
<? } ?>
<? if ($modo==2) { ?>Behaviour.register(_ver);
<? } ?>
<? if ($modo==2 || $modo==3) { ?>Behaviour.register(_social);
<? } ?>
<? if ($cut_url==true && $cut_url_user==true && $modo==1) { ?>
Behaviour.register(_pref);
<? } ?>
// ]]>
</script>
jQ = jQuery.noConflict();