Question about adding image attribute in combination with js
PermalinkI tried
<?php $img = $c->getAttribute('headerimg'.$i); ?>
<!-- PAGE TITLE BACKGROUND IMAGE --> <script type="text/javascript"> <script type="text/javascript"> jQuery(document).ready(function () { "use strict"; jQuery('#page-title-container').backstretch("images/photos/1800x1000.gif", { fade: 500 }); }); </script>
You can try this: