So Here is my dilemma: on my site http://www.since83.net, I am trying to make the div that contains my left side navigation (mainNav) to "onClick" with java and load a "blank.html" into another div that has an iframe (imageFrame) inside of it. Ideally what I am looking to do is when you click on "Info" then my "subNav" appears and then let's say you click on "Contact". Now I have 2 iframes (subNavFrame + imageFrame) inside two differently named divs (subNav + imageStage). Then when a user clicks on "Design" I would like the "subNav" to display the list of projects and the ImageFrame to link to a blank.html (which is just to clear the div/iframe).
I currently have the functions in my index page as :
<script language="javascript">
function blankImageStage()\{\
document.getElementById('imageFrame').src='blank.html';
}</script>
and under my main navigation like so :
<div onClick="javascript:blankImageStage()" id="mainNav">
but nothing seems to happen ?
Any help or suggestions? I thank you ahead of time. I am just starting out using HTLM and javascript.
Hoping to learn more!
- Ty
I currently have the functions in my index page as :
<script language="javascript">
function blankImageStage()\{\
document.getElementById('imageFrame').src='blank.html';
}</script>
and under my main navigation like so :
<div onClick="javascript:blankImageStage()" id="mainNav">
but nothing seems to happen ?
Any help or suggestions? I thank you ahead of time. I am just starting out using HTLM and javascript.
Hoping to learn more!
- Ty
