BipadTaranMahato / slideshow

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

new window in href code #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to make the links below to open in a new browser window. I've tried 
applying this but no luck:

<div id="show" class="slideshow">
    <a href="1.jpg" target="_blank"><img src="images/1.jpg" alt="Injinji RX 
- Therapeutic Toesocks." width="760" height="345"  /> </a> </div>

Below is my code:

//<![CDATA[
      window.addEvent('domready', function(){
        var data = {
          '1.jpg': { caption: 'Injinji RX - Therapeutic Toesocks.', 
href: 'http://www.injinjirx.com' }, 
          '2.jpg': { caption: 'Injinji XR - Xtreme Revitalization.', 
href: 'http://www.injinjixr.com' }, 
          '3.jpg': { caption: 'APMA - .' }, 
        };
        var myShow = new Slideshow.Push('show', data, {controller: 
false, height: 345, hu: 'images/', thumbnails: false, width: 760});
      });
    //]]>

Original issue reported on code.google.com by juan3r...@gmail.com on 20 Feb 2010 at 1:22

GoogleCodeExporter commented 9 years ago
Try this... after the slideshow initialization:

$$('.slideshow-images a').addEvent('click', function(){ window.open(this.href);
return false; });

Original comment by aeron.gl...@gmail.com on 20 Feb 2010 at 2:39