Open GoogleCodeExporter opened 8 years ago
To understand, you would only like certain images to open in a new window, not
all of them?
Original comment by aeron.gl...@gmail.com
on 1 Jul 2011 at 12:51
Correct.
For example, if there are 5 images in the slideshow each image would have a
separate hyperlink to a different URL and then open in a new window/tab.
Original comment by scottyd...@gmail.com
on 1 Jul 2011 at 1:36
The slideshow should handle this already:
var data = {
'image1.jpg': {'href': 'http://somewhere.com'},
'image2.jpg': {'href': 'http://somewhere_else.com'}
}
new Slideshow('show_id', data);
If you want the images to open in a different window, then in the HTML:
<div id="show_id" class="slideshow">
<a target="_blank">
<img src="default/image.jpg" />
</a>
</div>
Slideshow will inherit any properties in the existing HTML. So if the existing
anchor has a target, so will Slideshow. But the hrefs, the actual links for
each image, needs to be set in the data passed into the show on initialization.
Original comment by aeron.gl...@gmail.com
on 1 Jul 2011 at 3:22
Ahhh.
Well, the issue is that the slideshow is nested into a CMS and we have it set
up where the images don't use the JS array. The are called up within the DIV
so that the users who edit the site in the CMS and just upload the images and
place it in the WYSIWYG editor and save it. So they are adding the hyperlinks
on the images within the CMS editor.
I hope that makes sense.
Original comment by scottyd...@gmail.com
on 1 Jul 2011 at 3:32
Original comment by aeron.gl...@gmail.com
on 11 Jul 2011 at 3:39
Original issue reported on code.google.com by
scottyd...@gmail.com
on 21 Jun 2011 at 10:11