Jump to content

[SOLVED] Mouseover Table border


mkr365

Recommended Posts

Hello,

 

On this moment i am using the code below for changing the background table color after a mousover wich is working. But now i want a mousover for changing the table border color. I really cant find how to do that.

Does somebody know how to do that?

 

<table bgcolor="#ffffff" onMouseOver=this.bgColor="#99CCFF" onMouseOut=this.bgColor="#FFFFFF" width="100%" STYLE="border: 1px solid #b7b7b9; border-collapse: separate; border-spacing: 2px"

 

Thanks in advance!

 

Marcel

Link to comment
https://forums.phpfreaks.com/topic/60065-solved-mouseover-table-border/
Share on other sites

Na, its been moved:)

 

how about this

<style type="text/css">
<!--

.btnav { background-color: #84C1DF; border: 1px #000000 solid;} 

}
-->
</style>
<table width="200" border="0">
  <tr>
<td class="btnav" onmouseover="style.backgroundColor='#84DFC1';"
onmouseout="style.backgroundColor='#84C1DF'">
Hover
</td>
    <td>Blar</td>
  </tr>
  <tr>
    <td>Blar</td>
    <td>Blar</td>
  </tr>
</table>


Opps

ok Border

Same idea but still

 

<style type="text/css">
<!--

.btnav { 
border: 1px #000000 solid;
border-color: #FFFF00;
} 

}
-->
</style>
<table width="200" border="0">
  <tr>
<td class="btnav" onmouseover="style.borderColor='#FF0000';"
onmouseout="style.borderColor='#FFFF00'">
Hover
</td>
    <td>Blar</td>
  </tr>
  <tr>
    <td>Blar</td>
    <td>Blar</td>
  </tr>
</table>

  • 9 months later...
  Quote

Hello,

 

On this moment i am using the code below for changing the background table color after a mousover wich is working. But now i want a mousover for changing the table border color. I really cant find how to do that.

Does somebody know how to do that?

 

<table bgcolor="#ffffff" onMouseOver=this.bgColor="#99CCFF" onMouseOut=this.bgColor="#FFFFFF" width="100%" STYLE="border: 1px solid #b7b7b9; border-collapse: separate; border-spacing: 2px"

 

Thanks in advance!

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.