vavavr00m / galleriffic

Automatically exported from code.google.com/p/galleriffic
1 stars 0 forks source link

Disable image from being a link to the next image? #216

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. This is the default functionality, as far as I can tell.

Please provide any additional information below.
Hi - I have installed the latest version of Gallerific, and while I'm not 
extremely well versed in scripting, I did fine except that I cannot figure out 
how to disable the main images (in the slideshow div) from acting as links to 
the next image. 

It seems like it would be simple, but I can't make it work.

Original issue reported on code.google.com by edwardke...@gmail.com on 1 Jun 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Would love to know how to do this as well. 

Original comment by rtil...@gmail.com on 6 Jun 2011 at 1:38

GoogleCodeExporter commented 9 years ago
Open the file jquery.galleriffic. and find the following section:

// Construct new hidden span for the image
var newSlide = this.$imageContainer
.append('<span class="image-wrapper current"><a class="advance-link" 
rel="history" href="'+this.data[nextIndex].hash+'" 
title="'+imageData.title+'"> </a></span>')
.find('span.current').css('opacity', '0');

Now, change the href="'+this.data[nextIndex].hash+'" title="'+imageData.title+'"
You can simple delete the code inside the quotes making it this way href=""

If you want a more precise control over the href of the large images, follow 
this link:

http://stackoverflow.com/questions/3104811/galleriffic-links

Peace

Original comment by sirze...@portugalmail.com on 10 Jun 2011 at 4:42

GoogleCodeExporter commented 9 years ago
Cool, thanks. That worked to some extent. It still shows an active link, 
however it simply reloads the page when clicked...

It would be great to get rid of the href completely, my feeble attempts at that 
disabled the script.

Thanks again!

Original comment by rtil...@gmail.com on 10 Jun 2011 at 5:26

GoogleCodeExporter commented 9 years ago
Glad you made it :)

About the active link reload situation, just do one of the two following 
methods:

1. delete the href completly, it is not necessary, here in FF 3.6.1.7 and IE 
9.0, is working perfectly;

2. Or use href=#" and modify this section in the galleriffic.css file:

div.slideshow a.advance-link {
    display: block;
    cursor: default;
}

Original comment by sirze...@portugalmail.com on 11 Jun 2011 at 4:58

GoogleCodeExporter commented 9 years ago
thank you!! 

Original comment by geshwa...@gmail.com on 12 Jul 2011 at 12:19

GoogleCodeExporter commented 9 years ago
sorry, this won't work for me.

Deleting href will refresh the page with the first image. I want to add a 
"tagging function" to galleriffic.

Original comment by off...@trinews.at on 18 Aug 2011 at 6:21