Hi
im trying to add an external url link to my thumbnails in news pro 4 as per this suggested solution:
https://www.gavick.com/forums/126/k2-th ... tor#p79776
However it's not working. Here's is the script Im using :
<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 title1 = jQuery('.nspbox1 > div > h4 > a');
title1.attr('href','http://www.gavick.com').attr('target','_blank');
var link2 = jQuery('.nspbox2 > div > a');
link2.attr('href','http://www.example.com').attr('target','_blank');
var link3 = jQuery('.nspbox3 > div > a');
link3.attr('href','http://www.example.com').attr('target','_blank');
var link4 = jQuery('.nspbox4 > div > a'); link4.attr('href','http://www.example.com').attr('target','_blank');
});
</script>
It is creating the box number correctly for each thumbnail box (i have 4) but there is another link when you hover over that is causing the problem. This links seems to be crated dynamically and i can't find where to change it. Or where to change the hover over text on the thumbnails either?
Heres' the hover over link :
<a href="/rocket/index.php/en/2011-08-04-23-47-02/k2-categories/art-photos/item/40-beauty-awakens-the-soul-to-act.html" title="Copy of Beauty awakens the soul to act">Launch project</a>
Please help, Thanks
Terry