switch case to load value of img src
<p>Hello all I am trying to test a case</p>

<pre><code>switch(condition){
case 1:dom.byId("showImage").value = "../img/working.png";
break;
default: alert("nothing met");
}
</code></pre>

<p>Keep in mind I have quite a few images to load dependent on condition would a function such as be more efficient?</p>

<pre><code>function(imgValue){

}
</code></pre>

<p>?</p>

<p>UPDATE:</p>

<p>I have different 10 images that I need to load dependent on condition. Better said my question should be if a "case" matches how would I display it on an id called "showImage" I hope this clears it up a bit. The second part of the question was would a function where all I have to do if a case matches is insert the url to the image more effective? case:grabImage('../img/working.png')</p>
