snowboardr
Programmer
I attempted to write a script to swap a plus / minus button based on what its src is... it was swaping it to minus, but its not swapping it back... but now its not doing anything ???
Any ideas... or can this be done this way?
ps. I am terrible at js.
Regards
Any ideas... or can this be done this way?
ps. I am terrible at js.
Code:
<script type="text/javascript">
function SwapImage(imgid) {
if (document.getElementById(imgid).src == "images/forum/btns/plus_syn2.gif")
document.getElementById(imgid).src = "images/forum/btns/minus_syn2.gif";
}
Else
{
document.getElementById(imgid).src = "images/forum/btns/plus_syn2.gif";
}
</script>
Regards