אולי פונקציה שלמה פה יכולה לעזור:
PHP קוד:
<script type="text/javascript">
var clicked = false;
function onmouseover_event(id)
{
if (!(clicked))
{
document.getElementById(id).style.height = "100px";
document.getElementById(id).style.width = "100px";
}
}
function onmouseout_event(id)
{
if (!(clicked))
{
document.getElementById(id).style.height = "90px";
document.getElementById(id).style.width = "90px";
}
}
</script>
<img id="image_1" src="images/temp.gif" style="width: 90px; height: 90px;" onmouseover="onmouseover_event(this.id);" onmouseout="onmouseout_event(this.id);" onclick="this.style.backgroundColor='red'; clicked=true;"/>
תסתכלי על זה ותנסי להבין את כיוון המחשבה שלי...