OnMouseOver and OnMouseOut behaviour on table in Frontpage

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

"OnMouseOver and OnMouseOut Behaviour on the table
When the mouse pointer is on a cell of your table. The background color of
the cell will be changed (without any click of the mouse). When the mouse
point leaves the cell, the background color changes back to its original
form."

What is it and how can i add this effect with the frontpage 2003??
What is the differences between this and the DHTML Effects(Dynamic Effect)??
Are they the same?
 
Here's a simple example that uses the mouse events to swap a style class that sets the
background color of one cell in a 2 row 2 column table.


<html>
<head>
<style type="text/css">
..red{
background-color: red;
}
..blue{
background-color: Blue;
}
</style>
</head>
<body>

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse"
width="100%" id="table1">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td onmouseover="this.className='red'" onmouseout="this.className='blue'"> &nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>

</html>


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
Back
Top