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.
I would be interested in that file - as I am just starting to learn RSD.
Changed file attached. He added these few lines near the bottom:
$(".fresco").each(function() {
$(this).attr("data-fresco-caption", $(this).find("img").attr("alt"));
});
$(".fresco").each(function() {
$(this).attr("data-fresco-caption", $(this).find("img").attr("alt"));
});
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.
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.
<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
<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
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.