PHP Variable
dungphanxuan opened this issue · 1 comments
dungphanxuan commented
jssor commented
move script outside tag.
<script>
var options = {$AutoPlay:1};
var jssor1_slider = new $JssorSlider$("jssor_1", options);
</script>
or
<script>
var options = {<?php echo '$AutoPlay'; ?>:1};
var jssor1_slider = new $JssorSlider$("jssor_1", options);
</script>