Hi,
Currently, i am would like to apply a <style> on my div onmouseover but unable to do so. I would like to apply a border account the image when onmouseover. Hopefully, you guys can help me out here. Below is a snippet of my code:
<HTML>
<TABLE id=”Table1″ style=”WIDTH: 56px; HEIGHT: 30px” cellSpacing=”1″ cellPadding=”1″ width=”56″
border=”1″>
<TR>
<TD>
<div id=”divDisplay” onmouseover=”borderit”>
<asp:ImageButton id=”imgDisplay” runat=”server”></asp:ImageButton>
</div>
<div id=’more1′ style=”DISPLAY:block” onmouseover=”this.style.color=’red'”>
<a href=”#” id=”link1″ name=”link1″ onclick=”show(‘more’,true)”>More</a>
</div>
<div id=’more’ style=”DISPLAY:none” onmouseover=”this.style.color=’red'”>
<asp:ImageButton id=”img2″ runat=”server”></asp:ImageButton>
<asp:ImageButton id=”img3″ runat=”server”></asp:ImageButton>
<a href=”#” id=”link2″ name=”link2″ onClick=”show(‘more’, false)”>Close</a>
</div>
</TD>
</TR>
</TABLE>
</HTML>
Here is my <style> coding in javascript:
<Javascript>
<style type=”text/css”>
.borderit{
color: red;
}
</style>
</Javascript>