5 Years
Discussion Span
Last Post by lps

You can replace another div with below code:

<script type="text/javascript">
function switchPic(picID)

document.getElementById(picID).innerHTML ="<h1>Test</h1>";

    <div id="div1">Link 1</div>
    <a href="javascript:void(0);" onclick="switchPic('div1');">Hide Div</a>

Hi. This is what I was also asking about. Where do I put that? In the body of my code, I have 3 different divs, where do I put it? Where is the link? I see "Link 1", and an href to "javascript:void", but where do I put the page I want to link to?

This doesn't make any sense to me, because I don't know how this works. If I want the menu page to show up in the middle after the link on the left is clicked, how does this do that?

I appreciate your help, I just can't understand what to do.

Please check the site to see what this did....

Also, when I put the script in the head, I now have a syntax error at #framecontentTop. Why did it do that?

Edited by brad.d.mcleod

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.