scroots
01-25-2003, 05:31 PM
couls somebody help me out with my code, i have
<script>
function a(k){
if(k==0){
a.innerHTML='<a href="#" OnClick="a(\'1\')">SECTION 1</A><a href="page.htm">SECTION A</A><a href="page.htm">SECTION B</A><a href="page.htm">SECTION C</A>'
}
if(k==0){
a.innerHTML='<a href="#" OnClick="a(\'0\')">SECTION 1</A>'
aa=0
}}
</script>
and
<td width="100%"><div id="a"><a href="#" OnClick="a('0')">SECTION 1</A></div></td>
when i click the section 1 link it should change the contents of the div using function a, when the link is clicked it should change the valuse of k to 0, so that the if statement is used to change the content to the correct content.
any ideas of how to solve my problem?
thanks in advance
scroots
<script>
function a(k){
if(k==0){
a.innerHTML='<a href="#" OnClick="a(\'1\')">SECTION 1</A><a href="page.htm">SECTION A</A><a href="page.htm">SECTION B</A><a href="page.htm">SECTION C</A>'
}
if(k==0){
a.innerHTML='<a href="#" OnClick="a(\'0\')">SECTION 1</A>'
aa=0
}}
</script>
and
<td width="100%"><div id="a"><a href="#" OnClick="a('0')">SECTION 1</A></div></td>
when i click the section 1 link it should change the contents of the div using function a, when the link is clicked it should change the valuse of k to 0, so that the if statement is used to change the content to the correct content.
any ideas of how to solve my problem?
thanks in advance
scroots