dreamclutch
Programmer
I'd like to flip between 2 headlines (in this example logos and templates) by using two div's. When one appears, the other dissapears...vice versa. This is what I have so far but it shows both content areas.
- Justin
<script type="text/javascript">
<!--//
function makeVisible(id) {
document.getElementById(id).style.visibility = "visible";
}
//-->
</script>
<a href="#" onClick="makeVisible('section2')">Logos</a> | <a href="#" onClick="makeVisible('section1')">Templates</a>
<div id="section2" style="visibility:hidden">
Section 1 text here
</div>
<div id="section1" style="visibility:hidden">
Section 2 text here
</div>
<br>
- Justin
<script type="text/javascript">
<!--//
function makeVisible(id) {
document.getElementById(id).style.visibility = "visible";
}
//-->
</script>
<a href="#" onClick="makeVisible('section2')">Logos</a> | <a href="#" onClick="makeVisible('section1')">Templates</a>
<div id="section2" style="visibility:hidden">
Section 1 text here
</div>
<div id="section1" style="visibility:hidden">
Section 2 text here
</div>
<br>