It's my first day trying javascript... and I cannot understand why I cannot load an image subject to an "IF" condition....
What is wrong with this?
<script type="text/javascript">
if ...... //I'm ok with the condition//
{
img src="gifs/xxred.gif"
}
else
{
img src="gifs/xxgreen.gif"
}
</script>
All I wan't to do is make a gif appear based on a condition....
Can anyone help me with what I'm sure is the simplest of problems..!


