$(function(){
$('.bl6-conteudo').html([
'<div class="cycle-slideshow"',
'data-cycle-fx="fade"',
'data-cycle-timeout="240000"',
'data-cycle-slides="> .dicas"',
'data-cycle-caption-plugin="caption2"',
'data-cycle-pager-template="">',
'<div class="cycle-prev"></div>',
'<div class="cycle-next"></div>',
'<div class="cycle-caption"></div>',
'<div class="bl6-d1 dicas"></div>',
'<div class="bl6-d2 dicas"></div>',
'<div class="bl6-d3 dicas"></div>',
'<div class="bl6-d4 dicas"></div>',
'<div class="bl6-d5 dicas"></div>',
'<div class="bl6-d6 dicas"></div>',
'</div>'
].join(''));
})
I was able to solve this problem by making the call, in the sheet of my scripts, as @LuizTanure said and I reinferred @FabricioMatte.
$( '.cycle-slideshow' ).cycle();
And in the HTML sheet I've edited the scripts like this:
<!-- jquery -->
// jquery library
<!-- Cycle2 -->
<script src="js/jquery.cycle2.js"></script> // tem de ficar logo acima da chamada dependende
<!-- Minha folha de scripts-->
<script type="text/javascript" src="js/jquery.meu.js"></script> // cycle2 depende dessa folha , pois tem partes do arquivo carregando nessa folha
This is the only way to make the plugin work right when inserted via .html () directly into my script sheet (my.js).
You must be careful with the order of the calls.
@PauloRoberto Actually there is no problem I inserted content via Jquery / javascript, I only see advantages, even as string, in fact besides being easier I did not find against relevant indications. See when inspecting the element that appears as if inserted directly into the html, besides being easy to edit, and loading the page is fast too.
vlw;)