Con un poquito de css lo conseguís
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
/*<![CDATA[*/
.borrar{
visibility: hidden;
}
#tablaDatos tr:hover .borrar{
visibility: visible;
}
/*]]>*/
<script type="text/javascript"> //<![CDATA[
function borrarFila(f){
var i=f.parentNode.parentNode.rowIndex;document.getElementById('tablaDatos').deleteRow(i);
}
//]]>
<table id="tablaDatos" border="1" width="40%"> <th align="left" width="60%">Nombre
</th> <th width="40%"> </th>
Saludos