Newbie Question - Dynamic Content

Hi

How do I create the menu like effect on sentences like in MSDN When a user
click on the "example", the code is shown within the same page and when you
click on the "example" again, the code is hidden.

TIA
walterd



Answer this question

Newbie Question - Dynamic Content

  • WendellB

    Hi Walter...

    Depending on just how much of a newbie you are, it sounds like you need a little javascript. I'm a bit of a newbie myself and have been diving into js whole heartedly... If I understand your question right, it sounds like you want to make some text appear on the page as a result of clicking a link. Something like...

    <script>

    function ShowExample()
    {
    document.getElementById('p1').style.visibility='visible';
    }

    </script>

    <a href='javascript:ShowExample();'>Click here to show the example</a><br>

    <p id='p1' style='visibility: hidden'>Here is the example</p><br>

    Perhaps I'm way off here - if so, sorry... Otherwise I hope this helps.

    Curt


  • Newbie Question - Dynamic Content