0
 <span id="hintText_123" style="display:none">
          <table id="hintTable" style="width:100%;border:0px none;padding:0px;border-collapse:collapse;margin:0px;background-color:#7F9DB9;">
             <tr style=background-color:#56718A;>
             <td style="color:white;font-size:11px;font-weight:bold;padding:2px">
                                        Title
              </td>
              <td style="width:5%;padding:2px">
              <img alt="" src="close.gif" style="width:15px;height:15px"  align=middle onclick=parent.hidetip()>
                                    </td></tr>
              <tr  style="background-color:#8CA7C0;"><td style="color:white;font-size:10px;padding:2px" colspan=2 >Description
                 </td>
               </tr>
               </table>
                        </span>

这是我想在以下项目的 mouseclick 事件上显示的表格

<span style="display:block;" onmouseout="toggleHelp('helpGrp_123',false,'group_field_name_123')" onclick="showhint(document.getElementById('hintTextGrp_123') , this, event, '380px')">
                                Hello!!!
</span>

</tr>

但点击Hello时表格未显示!

4

1 回答 1

0
<script>
function callMe()
{
    var tmp = document.getElementById("hintText_123");
    alert(tmp.style.display);
    tmp.style.display = 'block'; 
}
</script>

调用 onmousemove="callMe()"

于 2013-03-04T12:22:47.027 回答