Spacing between Images

  • iladelph
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 10 months ago #604 by iladelph
First off, I have to tell you that this slider is the best free image slider that I have seen to date. In fact, it is better than some of the proclaimed 'pro' editions that I've come across.

With that said, I do have one question. By default, there is a space about 150px wide between image advancement. What I'm looking for is to have the next image immediately enter the frame with out the black space or 'padding' if you will. Would this be possible?

I have already searched the .js and .css files, but cannot pinpoint the line of code to alter.

Any help is appreciated. And once again, great product!

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 10 months ago - 14 years 10 months ago #605 by milos
Replied by milos on topic Re: Spacing between Images
I tried to alter jQuery code of script that module uses, but I am afraid this is not possible to be changed.
Last edit: 14 years 10 months ago by milos.

Please Log in to join the conversation.

  • iladelph
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 10 months ago #607 by iladelph
Replied by iladelph on topic Re: Spacing between Images
Ok. Thanks for trying.

Please Log in to join the conversation.

  • iladelph
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 10 months ago #611 by iladelph
Replied by iladelph on topic Re:Spacing between Images
So I was able to fix the spacing issue between the sliders image progression. The problem lies in the scripts.js file not the jquery file. There are two lines in particular which I had to change.

jQuery('#' + d.id).css({
left: ((i - pos) * 1000)
});

and...

jQuery('#' + d.id).stop().animate({
left: ((i - pos) * 1000)
},

By changing the 1000 to a different number, the spacing between each image changes as well. A lower number will result in less space and a higher number will result in more space.

I haven't noticed any glitches thus far. I hope this helps anyone else experiencing a similar issue.
The following user(s) said Thank You: thejamkit

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 10 months ago #612 by milos
Replied by milos on topic Re:Spacing between Images
Yes, you are correct, nice tip! The minimum value must be image width minus border width (set in module parameters), otherwise it won't play properly. In example, if module width is 150 and border 20, you should enter minimum 130.

I will try to incorporate this setting (spacing between images) in module parameters in one of the next module revisions.

Please Log in to join the conversation.

More
13 years 5 months ago #9076 by Jens_K
Replied by Jens_K on topic Re: Spacing between Images
I just happen to see this sticky post here.

A great way to alter the space between the slider images is described here:
www.hotjoomlatemplates.com/support-forum...etween-single-images

Please Log in to join the conversation.

Time to create page: 0.252 seconds
Powered by Kunena Forum