A project I am working on requires a JavaScript image rotating gallery, so I took a look at the jQuery plugins page to see what was available.
I settled on Gallery View by Jack Anderson. Unfortunately the latest version of this plugin came with no instructions (due to a problem with the author’s web host, I think). After some playing around and asking a few questions on Twitter (thanks @leepowell) I was able to work it out.
I noticed a large number of people commenting on Jack’s site with the same problems I faced, so I decided to put up a simple example page.
Update
The options available in the $(document).ready section have changed slightly from those listed for version 1.x.
Since a few people have asked, I have put together a quick list for reference. This includes all of the new options and excludes older, depreciated options — it can be found here.
Paul
4 Aug 2009, 11:46pm
thanks a bunch for the demo markup.
That’s incredibly timely for a project I’m working on at the moment.
I really appreciate it.
Based on the popularity of this plugin, I hope Jack is able to get the content back up on his site soon. Until then, I’m sure your example will be invaluable. Cheers!
Gelay
5 Aug 2009, 10:04am
Thanks for putting up the gallery. I have been looking for an example for a while.
Patrick
7 Aug 2009, 4:47am
Hi and thanks, i used version 1.0 some time ago, just wondering what the main differences between v1.0 and v2.0? What benefits does it provide? Thanks alot, just wondering whether i bother to upgrade
Andrew Appleton
7 Aug 2009, 7:24am
@Patrick Version 2.0 requires less markup – one ul with one set of images will generate the main gallery image *and* the filmstrip.
This is easier for me than two sets of divs because I’m filling the gallery with dynamically from Wordpress. One loop is better than two (and I guess it would improve page loads slightly with less php to process…).
On the downside, version 2.0 seems to loose the sliding filmstrip border which moves with the little pointer.
Roger
8 Aug 2009, 2:10pm
Andrew,
We just finished implementing the Panels Only – Lightbox Style Gallery version on our demo sandbox site, and are getting ready to migrate to our beta site. Looks great in Chrome, but has the herky jerkies in IE 7 & 8… the photo transitions nicely, but the caption panel transition isn’t pretty.
Can you help?
Thx
Andrew Appleton
9 Aug 2009, 8:31pm
@Roger I’m not too sure without having a look at it, but to be honest I didn’t write the plugin so I am not very familiar with its workings.
Do you have a demo page somewhere?
Jesse J. Anderson
9 Aug 2009, 10:18pm
Hey andrew – thanks for your example – I was able to get mine up and running.
I do have a small problem I’m trying to fix though – any ideas?
I want the filmstrip with thumbnails at the bottom (which currently is working), but I ALSO want the next image previous image links to show up on top of the main photo… the only way I can figure out how to do this currently is by disabling the filmstrip.
Is there a way to have both enabled at the same time?
Andrew Appleton
10 Aug 2009, 7:45am
@Jesse I have had a play with it this morning and it looks like an either/or option. The js applies the same class (.nav-next and .nav-prev) to the panel arrows and the filmstrip arrows depending on the required layout meaning that you cannot have both at once.
I guess if you wanted to have both then the place to start hacking would be the logic which deals with adding in the navigation.
Jesse J. Anderson
11 Aug 2009, 12:12am
I think I figured out, had to edit the galleryview.js file to do it though.
I simply replaced every instance of “!opts.show_filmstrip” with “opts.show_filmstrip”
This may have changed something else as well but as far as I can tell it all seems to function the same way, but now the prev/next arrows show up for the filmstrip & the photo panel.
Marcus Andersson
11 Aug 2009, 5:48am
Hi!
I found you example page yesterday and I thank you for putting it up!
However I want to use the “Panels Only – Lightbox Style Gallery” but I dont get your example to work with that code. I´m using the code from Jack Andersons page without success… Any ideas?
Andrew Appleton
11 Aug 2009, 9:06am
@Marcus Andersson. It’s pretty straightforward, just add:
show_filmstrip: false,To your (document).ready function, like this:
$(document).ready(function(){
$('#photos').galleryView({
show_filmstrip: false,
//other options here
});
});
Frank
12 Aug 2009, 7:24am
Hi Andrew,
thanks a lot for putting up the demo page. I was using the new version, but I still used the code from the old demo examples and as you can imagine, it didn’t work very well.
I really doubted my coding abilities, after all it’s just a pretty simple image gallery right? After I finally looked into the javascipt code, I realized that something was wrong.
Thanks a lot for your example application, it really helped me a lot. With the right code to start with, using the gallery is actually pretty easy!
Erik Bertilsson
12 Aug 2009, 12:08pm
Hi Andrew
Nice to see that you put up the example page. I had to use the 1.1 version for project recently when I didn’t find any valid markup for the 2.0.
I understand that it’s good that galleryview generate the filmstrip but do you know if it’s possibly to have other pictures instead of the automatically generated?
Marcus Andersson
12 Aug 2009, 12:21pm
Hi Andrew,
Thank you for your help!
Is it possible to get Thickbox or Clearbox to work with GalleryView?
My idea is to use in the “Panels Only – Lightbox Style Gallery”.
Andrew Appleton
12 Aug 2009, 1:02pm
@Marcus Andersson
I haven’t used thickbox before, but from looking at the demo page quickly it looks like you just need a link to trigger the box.
If this is correct, I’d suggest adding a link in the panel-overlay span element for each image.
Ideally I guess you would want each gallery image to link to thickbox, but it seems gallery view looses the link if you try to apply it in the markup. For this you would probably need to get into the js file and add it yourself.
Andrew Appleton
12 Aug 2009, 4:16pm
@ Erik Bertilsson
I would think that version 1.x would suit you better – not sure that 2.0 can do different content in the filmstrip and panels.
BN Wiersma
17 Aug 2009, 11:52am
Hi there,
You really helped me out on this one! Thanks far the help!
I still have some questions though:
I have multiple images in a db and want to show those via GalleryView. I tried but I can’t seem to get it working:
<?php
$sql = "SELECT id,wk_nr,strip_nr,img_url FROM rs_cartoon_de_rechter ORDER BY id DESC";
$rs = mysql_query($sql);
while($row = mysql_fetch_array($rs)) {
print '’.$row['strip_nr'].”;
print ”;
print ”;
}
?>
What am I doing wrong?
Second question:
Why isn’t the overlay_height function working?
Andrew Appleton
17 Aug 2009, 7:34pm
@BN Wiersma
I’m afraid I can’t really offer any help on the PHP/SQL side without knowing a lot more about your specific application, but as for the overlay_height option, I think it was depreciated in version 2.0.
I have put together a list of options applicable to version 2.0.
BN Wiersma
18 Aug 2009, 9:12am
Hi there,
So I took your advice and i created the gallery exactly how you did it aswell. Everything works just fine.
I use GalleryView to display my uploaded pics. When the pics are all the same size it works just fine but when sizes vary thats when it goes wrong: pictures are not horizontally aligned in the center but to the right.
Is there any way I can display the images in the center instead of to the right?
This is what it looks like:
http://img34.imageshack.us/i/galleryviewnotaligned.jpg/
Joshua
20 Aug 2009, 9:53pm
How do you make this slider auto scroll with a timer between image switching? Anyone know? It would be a huge help!
Thank you for posting this on here by the way!
Andrew Appleton
21 Aug 2009, 8:18am
@joshua
You need to set the appropriate options in your (document).ready function. In your case it would look something like this:
$(document).ready(function(){
$('#photos').galleryView({
transition_interval: 5000,
//other options here
});
});
This gives an interval of 5000ms. Set it to 0 for no automatic transitions.
I have put up a table of all options applicable to version 2.0 here.
Mohsen
24 Aug 2009, 5:05am
Thanks for the help andrew, it really saved my time.
e-turhan
25 Aug 2009, 8:25am
thanks Andrew it helped.
Calvin
26 Aug 2009, 4:15am
Hey Andrew thank you very much for your example. Also I gotta say this site looks really nice!
I got a question though- I am a complete newb when it comes to jquery plugins. I have gone through around 3 jquery slider tutorials and the slider never even shows up on my website, nothing happens.
Could you run me through how I should go about installing this slider on Wordpress?
rob
26 Aug 2009, 6:49pm
just wanted to say thanks for the effort.
Brad
27 Aug 2009, 4:48am
Sorry, I just cant figure this out. I have uploaded the .js files, the css and put the correct paths in. I have basically just copied your example. Are you able to check my page?
vander.co.nz/lotusfloralart.co.nz/gallery.php
Thanks if you do
Matt
27 Aug 2009, 6:03pm
hi thanks you I have version 2.0 working!
but still prefer version 1.1
I there a way to have the opacity effect in the filmstrip in version
1.1 like 2.0
Thanks
Brad
27 Aug 2009, 10:12pm
Why is it that as soon as I put other html before and after the Gallery UL it turns to crap? Even just my nav sitting above it completely messes it up. It seems it is only capable of working when it is entirely on it’s own.
Brad
27 Aug 2009, 10:45pm
Can anyone out there link to their working site so I can view your source code…please?
Andrew Appleton
28 Aug 2009, 12:35pm
@Calvin
You can follow the examples on spaceforaname to get the gallery set up, but use the unordered list markup shown here in place of the div tags in version 1.x
@Matt
No idea I’m afraid.
@Brad
Looking at the link you provided, it looks like you have gone for another gallery. If you still want a hand with Gallery View, stick up another example and I’ll take a look.
Jason
28 Aug 2009, 6:33pm
I just got V2 working, thanks for the great example!! I can ‘t seem to get the arrow to slide to the next picture like your example. Mine moves the pictures into the box with the arrow above it. What am I missing? Here is a link to my page http://www.hersheysymphony.org/photo_gallery2/
Thanks!
Andrew Appleton
28 Aug 2009, 6:44pm
@Jason
It depends on how many images you have in your gallery. If it is too many to fit in the filmstrip then you get the alternate scroll type.
Jason
28 Aug 2009, 6:53pm
Ah, ok, that explains it. I also noticed that in IE (7), my nav menu at the top that has dropdowns, is falling behind the images. Any way to fix that?
Thanks!!!
Andrew Appleton
28 Aug 2009, 7:23pm
@Jason
Not too sure, you could try playing with z-index maybe?
Jason
28 Aug 2009, 7:29pm
Yeah, i already have z-index’s on the mene items, and it’s not helping anything.
Calvin
29 Aug 2009, 6:11pm
Thanks for pointing me in the right direction but I still can’t get it to work. I think the problem may be that even when I try to call the javascripts, they don’t show up when I view the source code on my website. I guess this means that I’m not calling them correctly. Honestly, no matter how many configurations I have tried, the blog itself never changes at all.
I’m not sure if you are using wordpress for this site, but do you know where these pieces of code would go in wordpress, if I wanted to have the slider appear in my sidebar? I mean which .php document to put them in, and where to put them. Hope this isn’t too much to ask.
Zodiac
30 Aug 2009, 9:25am
just wanted to say thanks for the effort.;. All the best!!
Bucky Edgett
31 Aug 2009, 8:31pm
You are a gentleman and a scholar. Can’t thank you enough. It’s good of you to take on ths project. I wonder what’s ever happened to the plugin’s author Jack?
I notice you recommend using the UL syntax in your example, and ignoring the DIV syntax given in the GalleryView CSS file. But, there are a lot of things that could be defined in the older syntax.
Could you tell us how the new v2 syntax should be written to define all the stuff your very helpful example leaves out?
For one, thing, I’d like to be able to use separate thumbnails. I’d also like to write captions for thumbnails, move the text panel down off the image, all kinds of stuff. Any advice would be appreciated.
john
1 Sep 2009, 3:56am
Hi, the view control is supreme, after i change to 2.0, the filmstrips markup is remove, however how am i gonna show the caption text below filmstrips.
Nick
1 Sep 2009, 3:05pm
I have it working with Firefox 3.0 but it is just displaying the pictures one on top of the other in IE7. Any thoughts on why this is happening?
Nick
1 Sep 2009, 6:44pm
Is there a way in version 1 to remove the border around the frame so you just have the arrow? I have looked thru the js and cant seem to find it.
Craig
2 Sep 2009, 12:54am
I’ve managed to get v2 working on a site using your html example as a guide – many thanks. However, the loader gif doesn’t show until just before all the images have loaded. On larger galleries the site user is left looking at a blank screen for several seconds while the images load. I’ve also wrapped the gallery in a div with visibility:hidden (as per the instructions in gallerview.css “to prevent a flash of unstyled content”) and set a fixed height. In FF and Safari on the Mac the page maintains its dimensions but in IE6 and 7 I see the scroll bar extend to accommodate the loading images and then snap back once loaded (in IE6 the page extends as well). Any help to tidy up these frustrating little glitches would be much appreciated.
Andrew Appleton
2 Sep 2009, 3:17pm
@Calvin
You would need all of the js/css calls in your site’s head section. in Wordpress this is usually the header.php file for your theme. To get the gallery to show in the sidebar, add the actual markup to your sidebar.php file (if your theme has one).
@Bucky Edgett, @john
To show filmstrip captions you need two things. First, add the option
show_captions= true,to your (document).ready function. Next, add atitle="whatever"attribute to each image. The contents of the title attribute should show up as the filmstrip caption.@Nick
No idea on the IE7 question, for the border question I think you can edit the CSS file in 2.0. Not sure about version 1 though.
@Craig
Difficult to pin down without seeing an example – do you have your (document).ready script in the head of the page?
Craig
2 Sep 2009, 9:09pm
Hi Andrew, many thanks for the reply. You can see an example at http://www.scottishwomensconvention.org.uk/gallery2.asp. One solution would be to pop the whole thing in yet another div with the loader gif set as the background but it’s a bit of a fudge having it always sitting behind the content.
Steve
3 Sep 2009, 2:34pm
thanks, thanks, thanks.
I was using the old HTML for a full day and not understanding why things weren’t working.
Kdog
6 Sep 2009, 3:21pm
Just wanted to give a tip I found out (after banging my head against the wall for a few hours).
If you copy the code exactly, this code won’t work with ‘jquery-1.3.2-vsdoc2.js’ as your base jquery file in firefox (but will work in IE for whatever reason-how delightfully deceptive).
The genius that I am I copied everything but the the base ‘jquery.js’ file thinking my base ‘jquery-1.3.2-vsdoc2.js’ would be fine. Nope. Once changed, it worked fine. Thanks.
Dave
10 Sep 2009, 10:09pm
Any idea how to make the panel picture (the big one) clickable to a URL? I want to use it on my homepage to take visitors to content, and it’s annoying that I can only add a link to the caption area. I’m using version 2; if I add a link to the image in the HTML, it makes the thumbnail link to a URL but not the panel picture…. much thanks!
Tom
11 Sep 2009, 6:20pm
First off, thank you Alex for posting this. You’re a lifesaver!
@Dave, I am looking to do the same exact thing and was also wondering if there are any built-in functions to handle this. It appears as though it’ll require editing the JS file so that it can accept a link in the panel and not just in the filmstrip.
If anyone out there has done this already, any advice would be helpful. I’ll be taking a shot at it this afternoon and will post back if I get it working.
Tom
14 Sep 2009, 8:31pm
I’ve been trying to make the panel picture click-able, but nothing works. I tried assigning a JavaScript call to the “panel-overlay”. It works on the first image, but not on subsequent images. I tried applying an image map to each image, but it magically gets applied to the film strip, rather than the panel.
Still trying to figure out how it even grabs the a href link attribute and applies it to the film strip so that it can then be moved to the panel.
Any ideas?
john
15 Sep 2009, 2:39am
I have solve the last time posting problem. Now the problem is when i set the panel height to 300px but the image is 200px, the images is position in the center of panel, is there any way to show on top position.
lee
21 Sep 2009, 7:10am
Hi,
Thanks Andrew for the html markup it helped a great deal. Would like to also find out if anyone had any idea on how to go about having the image thumbnail different to the main image?
Tom
21 Sep 2009, 3:21pm
Can someone please help with the problem that Dave and I hare having? It seems like adding links to the panel image would be a no-brainer (really, who wants links on the thumbnail), but nothing seems to work.
Anyone have luck with this?
Wade
21 Sep 2009, 4:06pm
Excellent implementation but without being able to link the main image this becomes a very limited app.
I’m looking for exactly what Tom & Dave are looking to do, though linking to lightbox for a larger slide.
Andrew Appleton
21 Sep 2009, 8:33pm
@Wade, Tom and Dave
I don’t have time to test this at the minute, and this may or may not work. You could try setting the panel overlay to the full size of the image, and try wrapping that in your anchor tag.
Tom
22 Sep 2009, 8:03pm
Thanks for the reply, Andrew. What you suggested, adding exact size to the panel overlay, then wrapping it with the anchor tag, didn’t quite work. When you wrap the anchor link around the span tag, the thumbnails no longer show up and the auto-rotation skips those slides.
What did work, however, is setting the exact size and using an onclick window.location call on the span tag. I also added the cursor style attribute as well (so it looks like a link).
I hope this helps. I’ll post the site URL here once it’s live to the public.
Thanks again for your help, Andrew.
john
23 Sep 2009, 1:49am
hey andrew… first of all thanks for all the work you have done with this plugin…and answering peoples questions….
my question is… is IE my opacity transitions are not working. i didn’t know if you had any ideas.???
Andrew Appleton
23 Sep 2009, 3:56pm
@john
Not too sure what your problem could be without an example to look at. I have just checked and my example page works with fading opacity in IE6 and above.
Perhaps try starting with the basic page and adding your stuff to it step by step until the opacity fade breaks?
Stefan
28 Sep 2009, 2:52pm
I also had the problem with the transitions (just IE8) and after a few hours I just could solve it with an ugly hack.
The transitions seem not to work with IE8 if you have set a doctype. You have to force the compatibility mode with the following tag:
Stefan
28 Sep 2009, 2:53pm
meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″
Andrew Douglass
30 Sep 2009, 6:32pm
I’m working on a page using this gallery, but none of the navigation arrows show up. I guess my problem is that I have separate folders for js, images, css, and the html in the root folder.
No matter where I put the themes folder, it doesn’t like it. I even placed a copy in the root, css, js, and the images folder. I’ve tried setting the theme using nav_theme, and I’ve also tried to play around with theme_path, but neither of those things help at all. Anyone have any ideas for me that I haven’t tried yet?
Andrew Douglass
30 Sep 2009, 6:44pm
Actually, scratch that. If you have a set up like mine, you can just place the themes folder in the js folder and not do anything with the nav_theme or theme_path stuff, and it will work. I don’t know what stopped it from working earlier.
Daniel
2 Oct 2009, 12:27am
Thanks for posting this, very helpful!
Tom
5 Oct 2009, 6:14pm
The site I was referencing is up (click on my name). The big panels are linked. Anyone have any thoughts as to why it seems to load all of the images, then sucks them up into the Gallery? I notice that it doesn’t it for the example, but on my site it seems to.
I’d still like a more elegant solution to linking in the big panel. My method is a little kludgy.
Oscar
7 Oct 2009, 4:14am
Thanks so much for posting this! I really wanted to use 2.0 (since I don’t have to generate my own thumbnails) but there were no instructions on what the new syntax was.
Derek
7 Oct 2009, 2:33pm
Thank so much for this example!
Saved me so much time.
Niklas
14 Oct 2009, 11:44pm
Thanks this helped a lot!
Is it possible to have the overlay hidden on default and then have it show up when the mouse hovers over the panel?
Steve
15 Oct 2009, 11:44pm
Great Post. Thanks for the much needed help. It’s easy to get confused with the different versions of plugins since its original release.
trenc
20 Oct 2009, 1:44pm
For an project I had to build and populate the image list via JSON and each(). Unfortunately the galleryview plugin won’t work correctly on Internet Explorer and Safari 4.0.3 in this specific case.
But there is a solution: Replace the $(window).load() function with the $(document).ready() function in the plugin. So all browsers will wait for the content before trying to build the gallery.
Hope that helps someone.
Kevin
29 Oct 2009, 11:02pm
I have a strange problem with this…
It works great when I just use static images, displays them no problem, however as soon as I implement a loop (php) the images don’t show up, although the code is identical in the source… I have the following:
This is an overlay too
If I take the foreach loop out, and replace the variables with the actual name that the loop replaces.. the images work, as I said, the source shows them there, but they just don’t appear…
Any ideas??
Kev
Kevin
6 Nov 2009, 2:12pm
Fixed last one, no idea what it was just decided to start working, however I am having 2 other problems..
1) It always ignores the last image, so if I have 4, it will only show 3 in the filmstrip, but will loop through all 4, this is same if I use your example as well.
2) The filmstrip doesn’t seem to work correctly, its jumping all over the place, instead of just going to the next one smoothly.
Any ideas?
Grace
7 Nov 2009, 10:04am
Your example really helped me adapt the plugin to the site I’m working on – thanks so much. I was wondering if anyone knows how to change the position of the navigation buttons so that they aren’t stuck to the right and left sides of the panels. I’m using the plugin as a lightbox style gallery with no filmstrip and large photos, so on smaller resolution screens you have to scroll to see the buttons. I’ve tried changing some ‘right’ and ‘left’ values within js.galleryview-2.0.js to no avail so far.
John
9 Nov 2009, 1:01pm
Hi,
I am new to css and js.
I want to show filmstrip vertically. How can i do ?
David
10 Nov 2009, 3:38pm
Hi Andrew,
As with all the other people here – thanks so much for your work on this – I’m using on a site I’m building for some friends, you can see it here: http://www.liamisdivecentre.com/beta2/default.html
I have a quick query that perhaps you can dispel…. it seems to me that the page is loading all the images before showing the gallery; this would normally be fine – but it’s not showing the loading bar while this is happening? I do see the loading bar, but only very briefly, once it’s loaded all the images – so it kinda flickers the loading bar on just before showing the gallery (by which time it’s too late as the images have already loaded on the browser end).
Is there a way to correct this and show the loader while the browser is busy downloading the rest of the files please?
Thanks in advance,
David
Tim Driver
11 Nov 2009, 10:42pm
Thanks for posting this have been struggling to get v2 up and running on my site
Tim
Sam
17 Nov 2009, 11:40am
Hi
Thanks for creating V2 , but when i downloaded full js from jquery’s site then it stoped working.
I want to add some code in v2 js , how can i do ?
jacky
17 Nov 2009, 1:05pm
Hi, I want to add play/push button. How can i add ?
Jason
17 Nov 2009, 8:51pm
Just wanted to add my thanks too. Was a bit lost with the new implementation but you’re example sorted me out! Cheers
Superfly
18 Nov 2009, 2:26pm
thanks Andrew for setting this up
I have one question:
How hard would it be to seperate the panels from the filmstrip?
- im trying to get the filmstrip into another div that slides up and down (hides/unhides thefilmstrip)
I cant make it work
Brittany
21 Nov 2009, 3:12am
This is amazing. Thank you so very much!
Mike
23 Nov 2009, 5:22pm
@david @craig
I was having the same problem with the loader graphic not appearing until just moments before the page finished loading. I’m sure there are more elegant solutions, but I fixed this by wrapping my list in a new div that is the same width and height as the slideshow, setting the overflow to hidden, and using the loader.gif image as the background. This makes the loader graphic appear right when the page starts loading (and prevents the loading images from stretching the page down), and then it gets covered when the slideshow finally loads.
One thing to keep in mind though is that non-JS users will get stuck on this loader graphic, so I added the class to the new wrapper div with jquery so it never gets loaded to users without javascript. You can check it out here: http://www.ryangarrettphotography.com/
I’m sure it would work better if the actual plugin were fixed to solve this problem (I still occasionally see the unstyled images load before the fix kicks in), but this seems to get it closer to the ideal behavior.
David
24 Nov 2009, 11:53am
@Mike,
Thanks for your post – I’ve rejigged my implementation of gallery-view with your tips above and it seems to work well enough!
One thing I also noticed – schoolboy error on my part – I had the script running in the section of the page, whereas it should have been running at the bottom of the page, just before This made the other elements on the page (other than the gallery etc) load a little quicker too.
I’ll keep it this (your) way until a fix to the plugin is available, so ‘thanks’ again for your input – much appreciated.
David
David
24 Nov 2009, 11:55am
Sorry, code got left off.. I meant ” had the script running in the HEAD section of the page, whereas it should have been running at the bottom of the page, just before end of BODY….
David
Llewellyn
25 Nov 2009, 3:03pm
How do I gat just the film strip in version 2? Seeinf that version 1.1 has a problem on my site in Google Chrome 3.0.
Any help would be great thanks.
Llewellyn
Llewellyn
26 Nov 2009, 7:41am
Hi All,
I resolved the problem with a simple piece of code and here ii is:
//no conflict jquery
jQuery.noConflict();
//jquery stuff
(function($) {
$(document).ready(function(){
$(‘#photos’).galleryView({
//gallery stuff
});
});
})(jQuery);
I hope this helps someone.
Llewellyn
Mac
27 Nov 2009, 5:50pm
Hi,
I passed foll. from HTML file and pass 4 images in b/w with but when had done view source then there was a 12 .
How logic is working in .js file.
Anyone have idea ?
$(document).ready(function(){
$(‘#gallery’).galleryView({
panel_width: 540,
panel_height: 257,
overlay_opacity:1,
frame_opacity:1,
frame_width: 75,
frame_height: 75,
frame_scale: ‘crop’,
show_filmstrip: true,
transition_speed: ’slow’,
transition_interval: 5000,
background_color: ‘transparent’,
border: ‘none’,
easing: ‘easeOutBounce’,
nav_theme: ‘dark’,
pause_on_hover: false,
filmstrip_size: 2,
frame_gap: 12,
start_frame: 1,
filmstrip_position:’right’ });
});
Mac
27 Nov 2009, 5:51pm
Hi,
I passed foll. from HTML file and pass 4 images in b/w ‘ul’ tag with ‘li’ tag but when had done view source then there was a 12 ‘li’ tag.
How logic is working in .js file.
Anyone have idea ?
$(document).ready(function(){
$(‘#gallery’).galleryView({
panel_width: 540,
panel_height: 257,
overlay_opacity:1,
frame_opacity:1,
frame_width: 75,
frame_height: 75,
frame_scale: ‘crop’,
show_filmstrip: true,
transition_speed: ’slow’,
transition_interval: 5000,
background_color: ‘transparent’,
border: ‘none’,
easing: ‘easeOutBounce’,
nav_theme: ‘dark’,
pause_on_hover: false,
filmstrip_size: 2,
frame_gap: 12,
start_frame: 1,
filmstrip_position:’right’ });
});
Grace
28 Nov 2009, 1:44pm
@Mike – thanks for that solution. I was wondering what I’d do about the loader as well.
Does anyone know how I could make this gallery scalable according to the size of the browser window?
lawrence
1 Dec 2009, 12:59am
hi, anybody knows how to use this plugin dynamically?
for instance, I append photo url and title dynamically to , then assign galleryview function to it. I tried in vein.
code as following:
$(“title”).appendTo(“#gallery”);
$(‘#gallery’).galleryView({
panel_width: 800,
panel_height: 300,
frame_width: 50,
frame_height: 50,
transition_speed: 350,
easing: ‘easeInOutQuad’,
transition_interval: 0
});
Leigh
1 Dec 2009, 2:56am
Hi,
Thank you so much for suppliying the demo for version 2.
Just one quick question, can anyone assistment to link from the main image in the gallery?
I am using this for a community site and profiles will appear in the gallery.
Thank in advance.
Leigh
David
1 Dec 2009, 1:29pm
@Leigh,
Hi Leigh,
Have you tried inserting a tag for each of your main images – linking to the correct page/profile/image you want it to go to?
Have not tried it in gallery-view, but off the top of my head, it should work I think… do you have any example code I could look at?
David
David
1 Dec 2009, 1:31pm
@Leigh,
Sorry, code gets stripped off of here, I keep forgetting – the above should read “inserting an ‘a href’ tag for each..”
David
Andrew Appleton
1 Dec 2009, 4:55pm
@David If you want to post code, you can stick it inside
<code></code>tags but because you can post actual HTML, you will need to use the unicode entities for < (<) and >(>).I should probably make that clear on the comment form…
–Andy
David
1 Dec 2009, 5:37pm
Thanks Andrew, I knew I was doin’ something wrong!
I think in my case a preview of the comment would be useful
– would help me pick up the mistakes I keep making. lol.
David
Andrew Appleton
1 Dec 2009, 7:15pm
@David
Live comment preview and AJAX-y comment posting are actually on the to-do list. Although not for a while I think — there always seems to be something more pressing to do!
eddie
2 Dec 2009, 2:05pm
Hi Everyone,
I am hoping someone can help me. (hint: Andrew Appleton) I need help with this page http://www.punchtank.com/print_design.htm displaying the “Panels Only – Lightbox Style Gallery”.
Thank you everyone in advance.
Brad Shaw
3 Dec 2009, 5:11am
I’ve choose to hide my filmstrip. My gallery has rounded corners so I am using an image for my text panel. Unfortunately this isn’t working very well in IE8 as the transitions between the text happen abruptly and overlap one another.
I’m also using PNGs with transparency for my Next and Previous buttons, but they are also suffering from issues mentioned on the GalleryView site. The edges aren’t transparent until the opacity hits 100%. So when the buttons are fading in and out a black outline is visible. It only goes away when they reach full opacity which I have set at 100% instead of the default 70% or whatever it is.
There was some mention of a PNG fix on the GV site, but I can’t seem to make it work. Has anyone else figured this out by any chance? Your feedback would be much appreciated as I am struggling to the point where I may just have to ditch this in favor of a flash based solution like SlideShow pro or similar.
Brad Shaw
3 Dec 2009, 5:14am
Actually I just put back the default background colour instead of an image in the overlay, but the text transitions are still really rough in IE8. The text overlaps each other and does not fade nicely.
David
3 Dec 2009, 2:43pm
@Eddie,
Hi Eddie, I took a look at your page, and two things hit me straight away:
1. You’re using an older version of the gallery-view plugin
2. You creating your gallery using divs which is how Jack Anderson did his.
I copied off your code (if that’s ok with you) and had a fiddle around with it, using the v2.0 gallery view plugin – and then also used A.A’s way of designing the gallery using unordered lists as opposed to divs – got it working for you and you can see it here:
http://www.davidclothier.eu/jquerytest/punchtank/punchtank.htm
It might look a little off in some places, as I’m referencing your styles.css file over the web, so don’t have access to some of the icons/images etc, but the gallery works the way you want it to (I think!).
Feel free to grab the code and use it for yourself if you want, and then also let me know once you’re done with it and I’ll take the mock up page down for you too.
Also, post back if you have problems,
David
David
3 Dec 2009, 2:46pm
@Eddie,
Forgot to mention that v2.0 is available here for you to download: http://plugins.jquery.com/project/galleryview
DC
eddie
4 Dec 2009, 4:29am
@David,
Thank you so much for your help. I was able to get it working. I ended up using the dark theme from the previous jQuery version (the next/previous pointers) because I like the round ones better. One more question.
1. How can I change the opacity of the black caption box? I need to make it darker so the text is legible.
Thanks!
Brad Shaw
4 Dec 2009, 7:17am
Eddie, the opacity is controlled with overlay_opacity: 0.6 where the 0.6 represents 60% opacity. Try 0.7 or 0.8 or whatever if you need it darker.
http://spreadsheets.google.com/ccc?key=0AldWG3PYac5cdF92Rl9oemlhbDBTdllQQWRVaGlQbEE&hl=en_GB << all variables are here.
Has anyone managed to conquer the poor transitions that happen in IE8?
I've managed to get everything working by using the packed version of the .js file. The unpacked dev version just doesn't work in IE6.
Also, is there a way to disable the prev/next buttons altogether?
Thanks.
David
4 Dec 2009, 8:07am
@Eddie,
Glad you got it up and running ok – took a look at your site and it looks much better now
Ok, to change the opacity, add the following to your script on the page:
overlay_opacity: 0.5,
(substitute the 0.5 for anything from 0.1 up until 1.0 until you get your desired effect, also leave out the comma if it’s the last in your list!)
So, your code would look like this for instance:
$(document).ready(function(){
$('#photos').galleryView({
show_filmstrip: false,
panel_width: 800,
panel_height: 300,
transition_speed: 1500,
transition_interval: 5000,
nav_theme: 'dark',
border: '1px solid white',
pause_on_hover: true,
overlay_opacity: 0.5
});
});
There are other configuration options/considerations here:
http://spaceforaname.com/galleryview#options
As I said, play around with different values until you find the one that suits you best…. as an aside though, your h2 text is very dark as it is, so making the overlay darker will make it harder to read the heading for each image…. so, you either need to make the opacity less (i.e. more transparent), make the h2 text a lighter colour, or make the overlay a different colour (see the “.panel .overlay-background” background colour settings in your gallery view css).
Hope this helps,
David
eddie
4 Dec 2009, 9:56pm
@David
Thanks you. I got this page done. Now I have to work on the rest. You are a life saver.
Happy Holidays!
james
7 Dec 2009, 12:14pm
Hi,
Very nice plugin. Can we use flash video or any other video instead of images ?
Nick Toye
9 Dec 2009, 1:12pm
Hi,
Any idea why this isn’t working in IE7?
http://equitogs.webtise.net/
Nick
Nick Toye
9 Dec 2009, 2:06pm
Actually, I upgraded to 2.0 and I am struggling to get the animation to work.
http://equitogs.webtise.net/
For some reason it is not cycling through one by one.
Eric
10 Dec 2009, 1:13pm
Hello,
Thank you for putting this together. It really helped in getting a working version of GalleryView. I have encountered one problem though. I can not seem to get the overlay background to show up. The text is always at the bottom and there is no background. I tried CSS modifications and the JS argument (but you mentioned its depriciated). Any ideas? I basically just changed the colors and added some cycling.
Thanks and I love your site here.
E.
Eric
10 Dec 2009, 1:21pm
sorry. I’m an idiot. screwed up the path to my CSS file.
Alvin
11 Dec 2009, 12:36am
hi how can i change it to Filmstrip Only w/ External Links?
thanks for this gallery ^^
Kurt
11 Dec 2009, 9:31pm
Has anybody made a full blown working WordPress plugin for NextGEN Gallery from 2.0 yet? I had one for 1.0.1, but it doesn’t work all that well.
pupungbp
14 Dec 2009, 9:34am
Thanks for the working example
ksymer
16 Dec 2009, 5:15am
Hello! Has anyone tried to add support for right-aligned overlays?
Smoothcoder
16 Dec 2009, 2:30pm
Thanks a lot for these informations. I was trying to integrate the gallery to Yii framework.
I first thought that I could make my gallery work by using other forms of parameters, but in fact I needed to recheck also the html markers I was using to make it work.
Using the source of your galleryview, I was able to do that.
Very helpful !
bmw040
20 Dec 2009, 4:06pm
First – Thanks for the info!
I have 2 issues that I can not overcome.
1) How can I make the filmstrip current frame stationary and have the clips move into the frame (like the 1.1 Default Impimentation).
2) Is there a way to stop the messy loading of everything, everytime I go to my gallery page.
Once again thanks for the clarification with 2.0!
Danny Foo
29 Dec 2009, 8:28am
I’ve encountered a weird bug. Once the gallery loads, the image arrow indicator flew right out of the panel width. If I activated the next thumbnail, the arrow moves right again. This causes a horizontal scrollbar.
Some help with this would be much appreciated.
catherine
3 Jan 2010, 11:37pm
hello,
i have a 3-part question:
1. has anyone figured out how to optimize preloading of images in your gallery? i’ve used all the js and css tricks, but unfortunately there is still some lag time in loading the images.
2. it was suggested that i use “document.ready’ instead of “window.load” before building the gallery, however when i use the full plugin for development (not the pack.js), my thumbnails no longer look normal. any ideas why this is happening?
3. i have tried using the loader.gif as a background image in a separate div to fudge the appearance of loading, however it still appears behind every image as i click through the gallery. has anyone resolved this as well?
thanks so much in advance for your help!
catherine
3 Jan 2010, 11:43pm
this is the site i’m building for a client– thanks again!
Victor
14 Jan 2010, 9:57am
Hey thanks for putting up an example of the GalleryView 2.0 plugin. I was just wondering if you or anyone had any ideas on getting the thumbnails to be left aligned rather than centred.
tickao
18 Jan 2010, 7:24pm
The easing effects are not working properly on large galleries, why?
tickao
18 Jan 2010, 8:07pm
I’m trying to use the Gallery View 2.0 together with the PrettyPhoto (http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/), but does not work. Does anyone know how I can use the two together. Thank you.
Cindy
1 Feb 2010, 9:47pm
Thanks for taking the time to piece this together and share it with everyone… really appreciate it!!
Cindy
2 Feb 2010, 1:57pm
Thanks for taking the time to piece this together and share it with everyone… it was a HUGE help!!
Sid Robinson
3 Feb 2010, 8:06pm
I’ve downloaded this from JQuery but I see in your demo that you have a triangle image over the flimstrip.. where is the image located and how will is it not in the main download?
Le Loup
3 Feb 2010, 9:27pm
Hello there,
I’m desesperately turning to you with a problem i can’t solve with galleryview.
It works perfectly and i’m using it as a content shower for my site.
My problem is that i would like to call the private function showItem(i) from outside of the plugin, I’m not easy with javascript and none of my tries succeeded.
Perhaps do you know the code to add to the plugin to be able to do that ?
The thing is that i really must be able to switch panels depending on links clicked in the content dynamically showed.
Best reguards,
Leloup
Ben
13 Feb 2010, 3:14pm
Has anyone found a way to put more than one gallery on the same page?
Thanks in advance!!
-=BEN=-
andrew
25 Feb 2010, 9:39pm
you are my hero
MysteryE
10 Mar 2010, 6:30am
Finally!
I’ve been searching for custom GalleryView with hover-opacity Filmstrip!
Now all I need is to change the position of next-prev button to below the filmstrip and remove the triangle/pointer image from the filmstrip…
MysteryE
10 Mar 2010, 6:56am
Hei, I have one question: can I make the panel width fixed to 900px and let the height to automatically resized accordingly…?
My problem now the height is always fixed at 400px and the width resized accordingly. I want the vice versa effect. I already set the panel_width to 900 but it’s still won’t work.
Thank you before…