<script>var stage = new swiffy.Stage(document.body, swiffyobject);</script>
<script>stage.start();</script>
Instead of document.body
I want to start the swiffy object in #front-slider
. How do I do this?
When the id is front-slider
you can use the following line:
document.getElementById('front-slider')
which will return the element if found. Otherwise it will return null
.