test melih
 melih
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Jason Herndon Friend
    #144015

    Hey,

    Love JA Lead (and JM Lead)… one small thing though. How do I get JASlideshow to have the image clickable and not just the description?

    As it is, only when I click the description text am I taken to another URL. I would like it so that the user could click the image and be taken to another URL.

    Has anyone done this? Suggestions for how to do it?

    Thanks!
    Jason

    Anonymous Moderator
    #316887

    Hi jasonherndon

    Please kindly with my guider:

    Open modulesmod_jaslideshow2assetsja.slideshow2.js file, at about line 153, find following code:

    //Click on Main image
    if (this.options.urls) {
    this.maskDesc.addEvent('click', function () {
    var url = this.options.urls;
    if (url) location.href = url;
    }.bind(this));
    }

    and change to:


    //Click on Main image
    if (this.options.urls) {
    this.maskDesc.addEvent('click', function () {
    var url = this.options.urls;
    if (url) location.href = url;
    }.bind(this));
    }

    //Click on image
    this.divImageElements = this.el.getElement('.ja-slide-item');
    this.divImageElements.setStyle('cursor', 'pointer');
    if (this.options.urls) {
    this.divImageElements.addEvent('click', function () {
    var url = this.options.urls;
    if (url) location.href = url;
    }.bind(this));
    }

    Hope it helps.

    roucou Friend
    #316895

    Is this code working on all template? If yes, thank you very much

    Jason Herndon Friend
    #316914

    That bit of code works perfect thanks!

    I found a work around too since I don’t do javascript. I’m not sure which I like best b/c with this one you loose the description background. I just extended the height of the description in the css and reduced the opacity to .1… I ended up liking it too.

    Thanks.

    Jason Herndon Friend
    #316916

    actually, it is only working on the first slide, the rest aren’t functional…

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  Jason Herndon 15 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum