Hi everyone, I am having some problems implementing a js slide caption on my webpage and I would appreciate if someone could help.
Here is the Js caption
http://ryun.github.io/HCaptions/
and here is the code I am working with :
<html>
<head>
<style>
.cap-overlay{
font-family: monospace;
font-size: 26px;
color: #666;
}
</style>
</head>
<body>
<a href="#myToggle" class="panel">
<img src="images/pic01.jpg" width="1200" height="500" alt="">
</a>
<div id="myToggle" class="cap-overlay hide">
<h3>Cupcakes</h3>
<div class="content">
Name: cupcakes.png<br />
Photography: Ryun Shofner<br />
</div>
</div>
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.hcaptions.js" type="text/javascript"></script>
<script>
$(window).load(function() {
$('.panel').hcaptions({
effect: "slide",
direction: "left",
width:1200,
height:500
});
});
</script>
</body>
</html>
Here's the complete file