why the heck doesn't this code work?
Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.
Code:
if(window.document.getElementById(elm2).style.backgroundImage=='url(images/expand_arrow.png)' || window.document.getElementById(elm2).style.backgroundImage=='')
{
window.document.getElementById(elm2).style.backgroundImage='url(images/collapse_arrow.png)';
}
else
{
window.document.getElementById(elm2).style.backgroundImage='url(images/expand_arrow.png)';
}
Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.