We help IT Professionals succeed at work.
Get Started

Galleriffic Needs large image to be a clickable link.

katlees asked
Last Modified: 2012-05-10
I'm using the galleriffic javascript pluggin and when you click on the larger image it moves to the next image in the gallery. I need this to open to a webpage I am pulling from the database tho.  Here is Gallerific similar to what I am using, http://www.twospy.com/galleriffic/example-5.html 

I know the below code is what I need to change, it's the hidden link that the big image uses.
// 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');

Open in new window

And when I try to put php into the href="" spot to pull from my database table depending on the image I'm on it breaks everything. How would I go about modifying this so you only use the thumbnails to move thru the images, and when you click on the big image it can go to a website?

Watch Question
Software Engineer II
This problem has been solved!
Unlock 1 Answer and 23 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE