Jump to content

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...

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!

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.