SlidesJS append code HTML

36 views
Skip to first unread message

Eliseo Gamba

unread,
Feb 2, 2019, 12:50:54 PM2/2/19
to SlidesJS
Hola,

Cuando inserto el código HTML del SlidesJS y luego uso la closure, no funciona.

Ejemplo:

<script src="{% static 'js/jquery.min' %}.js"></script>
<script src="{% static 'js/jquery.slides.min.js' %}"></
<script>
            $("html").append("<div id='slides'> <img src='img1' /> <img src='img2' /> </div>");
            $('#slides').slidesjs({
                width: 940,
                height: 528,
                play: {
                    active: true,
                    auto: true,
                    interval: 2000,
                    swap: true
                }
            });
</script>

Uso Django.

Desde ya, gracias!


Reply all
Reply to author
Forward
0 new messages