PDA

View Full Version : Any JQuery experts?



Danno13
20-10-2010, 12:53 PM
Trying to revamp the gallery section of my website using this script -

http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/

Although not having any joy at all, I've never really used anything more than basic Javascript so a bit lost in trying to debug it.

Test URL on my website - http://www.revolution-djs.co.uk/photo-gallery-new.php?showgallery=117

Sure it's something really simple, any help would be much appreciated :)

Jason
20-10-2010, 01:04 PM
Danno,
initial problem appears to be that you're not using their stylesheet.


You should import this - I've not looked, but imagine the "gallery" element is hidden, and a few other tricks.


There is also a minor error on your Javascript code that starts the plugin;

I can't post the difference (due to automatic forum censoring)- but its fairly simple if you compare side-by-side.

(missing end bracket and semi-colon).

Post back once you've addressed these...

For this kind of thing, I normally start with a blank page, get it working and then integrate.

Jason

Danno13
20-10-2010, 01:14 PM
Ahh, knew it would be something simple, it was just that missing ); Good spot!

Stylesheet was fine, there's an import below the script.

Now it seems to be overlapping the photos though! :(

Booche
20-10-2010, 01:18 PM
Sounds silly Dan but have you resized the images or made them all all the same size ?

Will look into this later today when i get back home if you still need help matey

Cheers Dave :)

Danno13
20-10-2010, 01:26 PM
I wrote a php script that fetches/resizes/watermarks the photos, which was used on the old gallery, so I've added this back in now and set the stylesheet and script to use a set image width, so getting there now!

Danno13
20-10-2010, 03:19 PM
It doesn't seem to like having photos over 500px wide, even when resizing all the layers correctly, and there's something up with the link styles, but I suspect thats some kind of clash with my own stylesheet. Anyhow, works well enough so it's live here if anyone is interested - http://www.revolution-djs.co.uk/photo-gallery.php