-
AuthorPosts
-
February 10, 2011 at 3:16 pm #160007
I am using the jaSlideshow 2 component to feature sections of my site. http://www.newcitycompanies.com/new. I am not a programmer, but looking through the forums, I have been able to change the tabs so that they bring up the appropriate image on mouseover rather than on click.
However, I want to be able to have users click on the tabs to go to the link that is referenced by the “Learn More” link in the component. This seems like a very natural behavior, but I have no idea how to make it happen. Is there some way to be able to get those tabs to be clickable?
I appreciate any help that can be provided.
Thanks
JoeySherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
February 12, 2011 at 3:58 am #376287Dear shotley,
Please give me your FTP Account via the ticket UTO-513-99481 Then I will add the feature for you.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
March 16, 2011 at 7:14 am #381578Dear shotley,
You can try as following for this issue
1) Open the file of modulesmod_jaslideshow2mod_jaslideshow2.php,Look for this code
[PHP] require( JModuleHelper::getLayoutPath( $module->module, ‘default_articles’ ) );
unset($list);[/PHP]
And change it to
[PHP] require( JModuleHelper::getLayoutPath( $module->module, ‘default_articles’ ) );
$urls = array();
foreach($list as $lis){
$urls[] = $lis->link;
}
unset($list);[/PHP]Then look for this
autoPlay: <?php echo $autoplay; ?>, at about line 332 and adding below it this code
urls:[‘<?php echo implode(”,”, $urls); ?>’],
targets:””,2) Open the file of modulesmod_jaslideshow2assetsscript.js,Look for this code
if (this.options.urls) {And change it to
if (this.options.urls) {
thumbs_handles.getChildren().each(
function(ite, idx){
ite.addEvent(‘click’,function(){
var url = this.options.urls;
if (url) {
var target = this.options.targets;
switch(target){
case “_blank”:{
window.open(url, “newWindow”);
break;
}
default:{
window.location.href = url;
break;
}
}
}
}.bind(this));
}.bind(this));
I hope these would help !
1 user says Thank You to Sherlock for this useful post
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by shotley 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum