Hello I have an slider working perfectly fine on an html page.
But when I place the code on a .tpl template it does not work.
This is the code:
{literal}
<html>
<head>
<link rel="stylesheet" type="text/css" href="swift-box-js/swift-box-layout.min.css" />
<script src="swift-box-js/js_assets/jquery-1.10.2.min.js"></script>
<script src="swift-box-js/swift-box.min.js"></script>
</head>
<body>
<div id="swift_box"></div>
</body>
</html>
{/literal}
{literal}
<script type="text/javascript">
$(document).ready(function(e) {
$('#swift_box').lc_swift_box({
autoplay: 'true',
max_news: 30,
news_per_time: 5,
title_behavior: 'link',
img_behavior: 'link',
nav_arrows: 'bottom_c',
autop_after_exp: 'true',
src : [
{
type: 'rss',
url: 'http://diostube.com/rss.php'
}
]
});
});
$(document).ready(function(e) {
$('#swift_box').lc_swift_box({
});
});
</script>
{/literal}
Thank you so much for your kind help :)
Aucun commentaire:
Enregistrer un commentaire