Manual loading javascript

16.06.2012 08:55
#1
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 26064
Manual loading javascript

1. disable load javascript

Configuration / Other config

Load jQuery: N
Load Lightbox: N
Load javascript: N

2. Add in template Joomla

<link rel="stylesheet" href="<?php print JURI::root()?>components/com_jshopping/css/jquery.lightbox-0.5.css" type="text/css" />
<link rel="stylesheet" href="<?php print JURI::root()?>components/com_jshopping/css/jquery.rating.css" type="text/css" />
<script src="<?php print JURI::root()?>components/com_jshopping/js/jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script src="<?php print JURI::root()?>components/com_jshopping/js/jquery/jquery.media.js" type="text/javascript"></script>
<script src="<?php print JURI::root()?>components/com_jshopping/js/functions.js" type="text/javascript"></script>
<script src="<?php print JURI::root()?>components/com_jshopping/js/validateForm.js" type="text/javascript"></script>
<script src="<?php print JURI::root()?>components/com_jshopping/js/jquery/jquery.lightbox-0.5.pack.js" type="text/javascript"></script>
<script src="<?php print JURI::root()?>components/com_jshopping/js/jquery/jquery.MetaData.js" type="text/javascript"></script>
<script src="<?php print JURI::root()?>components/com_jshopping/js/jquery/jquery.rating.pack.js" type="text/javascript"></script>
<script type="text/javascript">
function initJSlightBox(){
jQuery("a.lightbox").lightBox({
imageLoading: "<?php print JURI::root()?>components/com_jshopping/images/loading.gif",
imageBtnClose: "<?php print JURI::root()?>components/com_jshopping/images/close.gif",
imageBtnPrev: "<?php print JURI::root()?>components/com_jshopping/images/prev.gif",
imageBtnNext: "<?php print JURI::root()?>components/com_jshopping/images/next.gif",
imageBlank: "<?php print JURI::root()?>components/com_jshopping/images/blank.gif",
txtImage: "Image",
txtOf: "of"
});
}
jQuery(function() { initJSlightBox(); });
</script>


Joomshopping 3.7.0 or or higher

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.