I want to hover the image in static FBML page.
But even the following simple code doesn't work:
<div id="button1">button1</div>
<div id="button2" onmouseover="document.getElementById('button1').setStyle({display: 'none'})">button2</div>
<script type="text/javascript">
document.getElementById('button1').setStyle({display: 'none'});
</script>
When "onmouseover" changes to "onclick", it works.
<div id="button1">button1</div>
<div id="button2" onclick="document.getElementById('button1').setStyle({display: 'none'})">button2</div>
<script type="text/javascript">
document.getElementById('button1').setStyle({display: 'none'});
</script>
Is there anything wrong?