<!-- for message diaplay for umie-->
<div id="PopUp1" align="center" ><h3>Umie</h3>
<img border="1" src="images/umieNew.png" />
<br /><br />
Umie Slim, Umie Young, Apple Stem Cell, Anti-Wrinkle, Sabun Jongkong Emas = Stem Cell, Set pencerahan 3 in 1, 24k Pure Gold Collagen Serum.
<br /><br />
Our Website : <a onMouseOver="umieboxover(this)" href="http://www.gagoda.com/umie/" target="_blank" >Umie: Rahsia Kekal Remaja</a>
<br /> <br />
</div>
</div></a>
<!-- END -->
<!-- START -->
<!-- Coding for mouse over & out for Arcadia-->
<a name="arcadia" onmouseover="arcadiaover(this)" onmouseout="arcadiaout(this)">
<area shape="rect" coords="173,82,197,133" /></a>
<!-- for message diaplay for arcadia-->
<div id='PopUp2' align="center"><h3>Arcadia Agency</h3>
<img border="1" src="images/ArcadiaAgencyNew.jpg" />
<br /><br />
Looking for a property? An apartment? Come visit us!
<br /><br />
Our Website : <a onMouseOver="arcadiaboxover(this)" href="http://www.gagoda.com/arcadiaagency/" target="_blank" >Arcadia Agency</a>
<br /> <br />
</div>
</div></a>
<!-- END -->
<!-- START -->
<!-- Coding for mouse over & out for Breadtime Bakery -->
<a name="arcadia" onmouseover="breadtimeover(this)" onmouseout="breadtimeout(this)">
<area shape="poly" coords="687,156,720,157,731,210,743,265,736,302,725,307,686,307,686,298,653,299,650,253,685,254,687, 229,702,229,702,181,686,180,686,156" /></a>
<div id="PopUp3" align="center"><h3>Arcadia Agency</h3>
<img border="1" src="images/breadtimeBakeryNew.png"/>
<br /><br />
We provide a wide variety of cakes, breads, muffins, cup cakes, pizza, doughnut, and many, more of pastries products. Come visit us to try the best quality of bakery product in Malaysia!
<br /><br />
Our Website : <a onMouseOver="breadtimeboxover(this)" href="http://www.gagoda.com/breadtimestore/" target="_blank" >Breadtime Bakery</a>
<br /> <br />
</div>
</div></a>
<!-- END -->
function umieover(a)
{
a.document.getElementById("PopUp1").style.display = "block";
}
When you call one of these functions, you are passing a reference to the clicked link via this, so you are saying linkReference.document which doesn't exist. I.E. allows it but strictly it's incorrect and will cause errors elsewhere.
If I had written this code, I would have used just one function to handle the individual hiding and re-display of all the different elements. It's not difficult, see if you can do it.
Where used, return should be executed unconditionally and always as the last statement in the function.
That's my signature, it's not part of the damn post!
Bookmarks