Help with ImageSwap/Switch
Hi I have this code to collapse and expand a <div>.
<div id="test" style="width: 300px; background-color: #2e2e2e;">
function switchImage (image_1,image_2,image_id)
if (document[image_id].src == image_2)
document[image_id].src = image_1;
document[image_id].src = image_2;
What is does it is when it is clicked to expand it shows the collapse pic and when it is click again to collapse it shows the expand. But the problem is when i click for it to expand it shows the collapse icon like it should but when I click it again it does not move back to the original expand icon?
Any help would be great. I think it is something simple i am missing.