this code work is IE6+7 but not in FF- please help
the code:
<script type=”text/javascript”>
function ShowImage(page, tag)
{
var i = 1;
var el;
while (el = document.getElementById(“image” + i)) {
if (i == page)
el.style.display = ”;
else
el.style.display = ‘none’;
i++;
}
}
</script>
THEASE ARE THE ONCLICK
<div class=”poets-box-bg float-right”>
<div onclick=”ShowImage(parseInt(this.value), ‘image’);” value=”1″>
<img src=”images/poets/איימן אגברייה.jpg” width=”100″ height=”100″ alt=”” />
</div>
<div onclick=”ShowImage(parseInt(this.value), ‘image’);” value=”2″>
<img src=”images/poets/ארז_ביטון.jpg” width=”100″ height=”100″ alt=”” />
</div>
</div>
THEASE ARE THE IMAGE THAT SOULD SHOUW
<div style=”display:none” id=”image1″ >
<img src=”images/poets/איימן אגברייה.jpg” width=”100″ height=”100″ alt=”” /><br />
sdfasdfsadfasgasdgas
</div>
<div style=”display:none” id=”image2″ >
<img src=”images/poets/ארז_ביטון.jpg” width=”100″ height=”100″ alt=”” /><br />
sdfgdfgdfgdf gf dfg
</div>
THANKs