Hiding Blocks of Text With JavaScript

Discussion in 'White Hat SEO' started by maryowen7002, Mar 13, 2012.

  1. maryowen7002

    maryowen7002 Newbie

    Mar 6, 2012
    Likes Received:
    Hey guys, not really sure if this is the right place to put this post however the technique might be considered black hat, even though it's technically not supposed to be.

    Basically, I'm building a website at the moment for a client, there's a middle chunk of the site which has a dynamic menu to the left. Each selector will hide and un-hide about a paragraph of text that will appear just to the right of the menu.

    The idea that I'm thinking of is to call the z-index with JavaScript to hide and unhide each block behind the background when each DIV gets called with the onclick.

    There's not enough text to warrant a seperate page for each one so figured this would be the best way. Each paragraphs is about 60-80 words and there is 8 different items on the menu...

    I could use the document.write with JavaScript but I'm bothered that because its going to be text coming from the JavaScript code, the search engine spiders will ignore it all, giving it no SEO value.

    What im wondering is, will Google see this and ignore it or worsed - penalise the site if 600+ words are in the HTML code and it's not visible on the screen?

    If it sounds bad practice can anyone recommend a better way of doing this?