nicinabox / superslides

A fullscreen, hardware accelerated slider for jQuery.
http://archive.nicinabox.com/superslides
MIT License
1.51k stars 442 forks source link

slide as link #135

Open capi91que opened 11 years ago

capi91que commented 11 years ago

can i make it the whole full screen slide show as a link..

s-a-s-k-i-a commented 9 years ago

push. I'd like to add anchors to my slides as well. So people can click the slide to get on a certain page on my website or an external website :)

pepperstreet commented 9 years ago

Hello, as far as I can see... you can use any markup inside. So, wrap your "slide" with a regular a-tag! Set the HREF to anything you want to link to...

Hence the general Markup advices. You may use a DIV or DIV/UL/LI structure.

Either wrap the IMG tag inside a link...

<a href="YOUR_LINK_HERE" class="MY_CLASS">
<img src="images/YOUR_IMAGE" alt="" style="...">
</a>

or if using additional content, remember to wrap the inner DIV as well...

<a href="YOUR_LINK_HERE" class="MY_CLASS">
<img src="images/YOUR_IMAGE" alt="" style="...">
<div class="container">
        YOUR ADDITIONAL CONTENT HERE
      </div>
</a>
s-a-s-k-i-a commented 9 years ago

Yes, of course. I already adjusted the slider code with a simple anchor wrap.

But then I ran into a "dumb" problem, which I couldn't figure out. Maybe because I already looked at the site I was working on for too long ;)

Thus I started googling instead of taking a break and figured I'd post here on github. When I returned from a nice doggie walk, and sat back at the particular site, I noticed that the linkwrap didn't work properly, because there was a hidden div (absolute positioned) z-indexed to sit above the slider. That div was of course disturbing the links from working right. lol.

I just hadn't seen the weird div, which I had hidden because I wanted a text-slider above the superslides. That div was suposed to serve as a container for that text slider I wanted to implement later on.

SO, yes of course, it is THAT simple: just add anchor wraps to the slides and you're good to go.

Thanks pepper for participating in the discussion... I need another sunday

pepperstreet commented 9 years ago

OT @s-a-s-k-i-a Ja, ja. Ich kenne solche Situationen. Jetzt aber ab ins Bett ;) 1:15 Uhr, ist nicht mehr viel übrig vom Sonntag. Gruß nach Hannover!

s-a-s-k-i-a commented 9 years ago

OT @pepperstreet Joa manchmal ist das einfach so.. man starrt da stundenlang auf irgendwas und sieht nicht das Offensichtliche. Vielen Dank für Deinen Gruß aus dem schönen Hamburg! Dir ebenfalls schöne, sonnige Grüße vom Deisterrand. P.S.: ..es ist schon 02:14... aber es sind noch Prison Break Folgen anzuschauen...