You can use following javascript in footer.php or any other means. Look in joomla extensions for a module to include javascript.
What this does is adds .nspbox"x" to each gallery item in html. So if you have 5 items each will have additional .nspbox1 nspbox2 and so on.
Add following code to end of footer.php
- Code: Select all
<script>
jQuery(document).ready(function(){
var arts = jQuery('.nspArt');
arts.each(function(i){
var num = i + 1;
jQuery(this)
.addClass('nspbox' + num )
});
var link1 = jQuery('.nspbox1 > div > a');
link1.attr('href','http://www.gavick.com').attr('target','_blank');
var link4 = jQuery('.nspbox4 > div > a');
link4.attr('href','http://www.gavick.com').attr('target','_blank');
});
</script>
Only parts you need to change is following. link"x" , .nspbox"x", link"x".attr. Replace x with nth number. Obviously also change website url. If you have 10 items simply dublicate below and change its number.
- Code: Select all
var link1 = jQuery('.nspbox1 > div > a');
link1.attr('href','http://www.gavick.com').attr('target','_blank');
So for an example if you want to edit 4th box then you need to change as below. Simply change 1 to 4 in all instances.
- Code: Select all
var link4 = jQuery('.nspbox4 > div > a');
link4.attr('href','http://www.gavick.com').attr('target','_blank');
Links will open in new tab or new window.
PS: You can also override css effect by using .nspbox"X" css class.
See you around...