Sorry if this is the wrong place as it is 50/50 javascript and php
I am trying to mouseover an image and swap the image but if the 2nd image is not the primary model then display the image and a message to that extent.
This is what I have tried (with many variations) but cant get it to work .
$pic_name = original image
$pic2name = swapped image
<a href=" my file..." target="popup" onclick="msgopen('my file ...'); return false;" />
<img src="<?=$pic_name?>" name="<?=$counter?>" onMouseOver=" document.<?=$counter?>.src='<?=$pic2name ?>'"; return escape('Image is of Parent Stock Only') ;
onMouseOut="document.<?=$counter?>.src='<?=$pic_name?>';">
</a>
There are many images on the screen hence the name="<?=$counter?>"
Any help is greatly appreciated