We are designing a new site for a new line of business. On our
product page the design teams wants to have a section of the page
where they use AJAX to display different text depending on which
section navigation the user clicks...
So basically, within this little subsection of the page there is a
mini-navigation (5 links each being a question). When you click on
one of the navigation links we want to use AJAX/CSS to show the answer
to the question (3-5 bulletted bits of info) but hide the answers to
the other 4 questions...
So I'm picturing the HTML for this section on the page looking
something similar to:
<div id=questionanswersection>
<div id=question1>
...answers to question 1...
</div>
<div id=question2>
...answers to question 2...
</div>
<div id=question3>
...answers to question 3...
</div>
<div id=question4>
...answers to question 4...
</div>
<div id=question5>
...answers to question 5...
</div>
</div>
Then in the css somehow they plan to do basically the following:
If they click on the link for question 1 then
show question1 div
hide question2 div
hide question3 div
hide question4 div
hide question5 div
end if
If they click on the link for question 2 then
hide question1 div
show question2 div
hide question3 div
hide question4 div
hide question5 div
end if
etc.
The end result is the same URL can show 5 different versions of the
page depending on which link is clicked. If you view/source you will
see the text from all 5 question/answer divs but in the browser you
will only be able to see one answer div at any given time.
We are not trying to hide keywords... All 5 versions of this section
of the screen can be displayed by the user if they click the
navigation links for that section of the page... But we are showing/
hiding divs clientside using AJAX/CSS so that we don't have to make a
round trip to the server or have 5 different pages/URLs for this
simple task.
Would Google frown on this or somehow think it is blackhat hidden
text? Microsoft even does it on their site... But then maybe they are
on the Google whitelist and can do whatever they like.