Simple LightBox walk-through? - Page...

User 2818159 Photo


Registered User
60 posts

I had a buddy add a speck of code to the Fresco .js file that will put whatever you have in the ALT tag of your linked image into the caption area of the enlarged image. Makes this lightbox script super easy to use in RSD! If anyone's interested I can post the file.
User 332337 Photo


Registered User
120 posts

I would be interested in that file - as I am just starting to learn RSD.
User 2818159 Photo


Registered User
60 posts

Changed file attached. He added these few lines near the bottom:

$(".fresco").each(function() {

$(this).attr("data-fresco-caption", $(this).find("img").attr("alt"));

});
Attachments:
User 2818159 Photo


Registered User
60 posts

If you are using RSD 1.5 you now need to add another bit to the footer.
Add:
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>

Replace js/jquery-1.11.0.min.js as needed for the path to your jquery file.

User 2845797 Photo


Registered User
45 posts

<body>
<a class="fancybox" href="images/large1.jpg"><img src="fancybox/images/small1.jpg" /></a>
</body>

Working with fancybox, I have this working as a index.html. Having a hard time importing to RDS.

(Classes) I have fancybox
(Href) fancybox/images/small1.jpg

Plus the index files are in the settings Head
what am I missing?
Thank

User 2845797 Photo


Registered User
45 posts

Sorry my last post is wrong.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.