I have this html code and want to use the text in the divs who are children to "divHiddenTexts" for a javascript slider and I want search engines be able to find the text. What I don't want is a penalty for hiding the text with CSS which is discussed in this question SEO : Is h1 tag that’s hidden using display:none given prominence by Search engines ?
My question is: Will I get penalised if I hide text with javascript instead?
By adding the class "hidden" in a DOM ready function. I have read that search bots don't have javascript turned on so they will see the text without finding it "spam-like" right?
<div id="divHiddenTexts" class="hidden">
<div>
Some text...bla bla bla
</div>
<div>
Some other text...more blaha.
</div>
<div>
Even more text...
</div>
</div>