In my code, I have this:
<IMG SRC="images/leaf_shapes/entire/transparent1.gif" name="pic4" width="250" height="350" border="0">
I need to have it change in a image, but only if it still says 'transparent1.gif' (because it could have been changed already and I don't want to lose that change)
I basically want to do something like this pseudo-script below, but I don't know javascript enough to know exactly how to write it:
<script>
function change1(picName,imgName)
"if image file 'pic4' = transparent1.gif (and not anything else) {
{
if (document.images)
{
imgOn=eval(imgName + ".src");
document[picName].src= imgOn;
}
} else { do nothing to pic4}