Forum Moderators: open

Message Too Old, No Replies

Toggling content

Using Plusminus to hide/show content

         

gniver

5:21 pm on Dec 20, 2006 (gmt 0)

10+ Year Member



I've run a KDA on a page which uses Plusminus (javascript) in a Q&A to hide/show the responses to the questions. The visitor clicks the + to view the answer to the question. The answer appears just below the question. The answer is also just below the question (after the js) in the code. The 'hidden' content does show up as part of the body text in the KDA. I want to verify before I suggest using this technique elsewhere (or on a home page) that this is acceptable and not harmful from a spidering/ranking perspective.

The code looks like this:

<div class="hsccontent"><br>
<h4>Frequently Asked Questions</h4>
<p>(Click <span class="plusminus">+</span> to see answers)</p>
<h5> &nbsp;&nbsp;First Section</h5>
<p style="margin-left:30px"><span class="plusminus"><a title="show/hide answer" id="a1_link" href="javascript: void(0);" onclick="toggle(this, 'a1');">- </a></span> &nbsp; &nbsp;<span class="italictext">Product Questions</span>
<div id="a1" style="padding: 3px;" >
<p style="margin-left:42px ">Text inserted here.</p></div>