MagicToolBox forum
May 17, 2012, 01:00:01 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the Magic Toolbox forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Links on images  (Read 1649 times)
ffg@ffgraphics.com
Newbie
*
Posts: 9


View Profile
« on: April 15, 2010, 09:16:58 pm »

Does anybody know how I would add a link to the images associated with MagicSlideShow?

I tried the following (see the second image) which is how I have done it in other slideshows but it just seemed to make the image disappear.
<div class="MagicSlideshow" id="slideshow1">
                <img src="~/Assets/carousel-livingaids.jpg"/>
   <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-medicalcoolers.jpg"/></a>>
   <img src="~/Assets/carousel-pillboxes.jpg"/>
   <img src="~/Assets/carousel-portion.jpg"/>
   <img src="~/Assets/carousel-accessories.jpg"/>
   <img src="~/Assets/carousel-giftideas.jpg"/>
</div>

I have use-links set to yes and links-window set to _self.

Logged
Alex
MagicToolBox Team
Hero Member
*****
Posts: 633



View Profile WWW
« Reply #1 on: April 16, 2010, 12:31:58 pm »

Hi,

You are on the right way. You just need to use the code of the second image for all images, i.e. <a><img></a>.

Also, there is a typo in this code, please remove the last ">" char:

Code:
  <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-medicalcoolers.jpg"/></a>>

All the best,

Alex
Logged
ffg@ffgraphics.com
Newbie
*
Posts: 9


View Profile
« Reply #2 on: April 16, 2010, 12:54:30 pm »

Sometimes all it takes is another eye. I totally missed the extra bracket.

Thanks!
Logged
ffg@ffgraphics.com
Newbie
*
Posts: 9


View Profile
« Reply #3 on: April 16, 2010, 01:37:49 pm »

Ok. I have the links working with the following code and options.
Now I want to add thumbnails but couldn't figure out from the examples how to do both. When I added the CSS from the I just got a couple of numbers at the top of the images. If I use the thumbnail link, I lose the link for the image. Is there any way to do both? 

<div class="MagicSlideshow" id="slideshow1">
                <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-livingaids.jpg"/</a>
   <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-medicalcoolers.jpg"/></a>
   <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-pillboxes.jpg"/></a>
   <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-portion.jpg"/></a>
   <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-accessories.jpg"/</a>
   <a href="http://www.diabetesandmore.com"><img src="~/Assets/carousel-giftideas.jpg"/</a>
</div>
 'container-position':'bottom',
 'thumbnail-opacity':'0.5',
 'effect':'fade',
 'effect-next':'fade',
 'effect-jump':'fade',
 'text-delay':'0.3',
 'text-opacity':'0.3',
 'loop': 'yes',
 'loop-type' : 'first',
 'loading-text':'Loading',
 'use-links': 'Yes',
 'links-window': '_self'

Logged
Alex
MagicToolBox Team
Hero Member
*****
Posts: 633



View Profile WWW
« Reply #4 on: April 16, 2010, 02:04:48 pm »

Hi ffg,

Here you go:

1. Set an explicit position of thumbnails (inside/outside), e.g.

    'thumbnails': 'outside'

2. Set an explicit size of the thumbnails, e.g.

    'container-size': '50'

Your code will look like so:

Code:
    MagicSlideshow.options = {
'thumbnails': 'outside',
'container-size': '50',
'container-position':'bottom',
'thumbnail-opacity':'0.5',
'effect':'fade',
'effect-next':'fade',
'effect-jump':'fade',
'text-delay':'0.3',
'text-opacity':'0.3',
'loop': 'yes',
'loop-type' : 'first',
'loading-text':'Loading',
'use-links': 'Yes',
'links-window': '_self'
    }

Hope that helps!

Alex
Logged
ffg@ffgraphics.com
Newbie
*
Posts: 9


View Profile
« Reply #5 on: April 16, 2010, 02:16:01 pm »

Never mind. I figured it out.

But I have another question. Is there any way to control the size of the thumbnails?
Logged
Alex
MagicToolBox Team
Hero Member
*****
Posts: 633



View Profile WWW
« Reply #6 on: April 16, 2010, 02:18:43 pm »

Well done, ffg!

Please use the 'container-size' parameter to control thumbnails size.

Thank,

Alex
Logged
ffg@ffgraphics.com
Newbie
*
Posts: 9


View Profile
« Reply #7 on: April 16, 2010, 06:05:50 pm »

You were so helpful!

If you ever have a customer that wants to know how to implement the slide show into Able Commerce, I have now done it.
Logged
Alex
MagicToolBox Team
Hero Member
*****
Posts: 633



View Profile WWW
« Reply #8 on: April 21, 2010, 08:45:40 am »

Hi ffg,

That is great! We will much appreciate if you could provide us with the integration instructions for Able Commerce.

Many thanks,

Alex
Logged
bohdans
Newbie
*
Posts: 1


View Profile
« Reply #9 on: April 24, 2010, 11:25:05 pm »

You were so helpful!

If you ever have a customer that wants to know how to implement the slide show into Able Commerce, I have now done it.

Hi. Can show how you got the link to work with a slide show that has thumbnails
In example7.html they have two slide shows, one with thumbnails and one without.
I can add a link when no thumbnails are used. But I can't figure out how to do it when thumbnails are used in the example.

Example7.html

.
       <div class="MagicSlideshow" id="slideshow1">
            <a rel="images/sony-bravia.jpg"><img src="images/sony-bravia2.jpg" /></a>
            <a rel="images/sony-cybershot.jpg"><img src="images/sony-cybershot2.jpg" /></a>
            <a rel="images/sony-phone.jpg"><img src="images/sony-phone2.jpg" /></a>
.            <a rel="images/sony-reader.jpg"><img src="images/sony-reader2.jpg" /></a>
            <a rel="images/sony-readerA.jpg"><img src="images/sony-readerA2.jpg" /></a>
            <a rel="images/sony-vaio.jpg"><img src="images/sony-vaio2.jpg" /></a>
        </div>
.
       <div class="MagicSlideshow" id="slideshow2">
           <img src="images/fruits_apples.jpg" />
           <img src="images/fruits_grapefruit.jpg" />
            <img src="images/fruits_lime.jpg" />
            <img src="images/fruits_raspberry.jpg" />
.            <img src="images/fruits_strawberry.jpg" />
        </div>
Logged
Alex
MagicToolBox Team
Hero Member
*****
Posts: 633



View Profile WWW
« Reply #10 on: April 26, 2010, 08:13:13 am »

Hi bohdans,

To link an image to a specific URL you just need to add a HREF attribute to the <A> tag:

   http://www.magictoolbox.com/magicslideshow_integration/#linkurl

For example, the code in the example 7 will look like so:

1. With thumbnails

Code:
       <div class="MagicSlideshow" id="slideshow1">
            <a href="http://your-link-goes-here" rel="images/sony-bravia.jpg"><img src="images/sony-bravia2.jpg" /></a>
            <a href="http://your-link-goes-here" rel="images/sony-cybershot.jpg"><img src="images/sony-cybershot2.jpg" /></a>
            <a href="http://your-link-goes-here" rel="images/sony-phone.jpg"><img src="images/sony-phone2.jpg" /></a>
            <a href="http://your-link-goes-here" rel="images/sony-reader.jpg"><img src="images/sony-reader2.jpg" /></a>
            <a href="http://your-link-goes-here" rel="images/sony-readerA.jpg"><img src="images/sony-readerA2.jpg" /></a>
            <a href="http://your-link-goes-here" rel="images/sony-vaio.jpg"><img src="images/sony-vaio2.jpg" /></a>
        </div>

2. Without thumbnails

Code:
       <div class="MagicSlideshow" id="slideshow2">
           <a href="http://your-link-goes-here" ><img src="images/fruits_apples.jpg" /></a>
           <a href="http://your-link-goes-here" ><img src="images/fruits_grapefruit.jpg" /></a>
           <a href="http://your-link-goes-here" ><img src="images/fruits_lime.jpg" /></a>
           <a href="http://your-link-goes-here" ><img src="images/fruits_raspberry.jpg" /></a>
           <a href="http://your-link-goes-here" ><img src="images/fruits_strawberry.jpg" /></a>
        </div>

Kind regards,

Alex
Logged
Pages: [1]
  Print  
 
Jump to:  

MagicZoom™ | Magic Zoom Plus™ | Magic Scroll™ | Magic 360™ | Magic Slideshow™ | Magic Touch™ | Magic Thumb™ | Magic Magnify Plus™
Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC