table的td设id="shuoming"
<script>
function show_txt(str)
{
  document.getElementById("shuoming").innerText = str;
}
</script><IMG onmouseover="show_txt(pic1)">
<IMG onmouseover="show_txt(pic2)">
<IMG onmouseover="show_txt(pic3)">

解决方案 »

  1.   

    table的td设id="shuoming"
    <script>
    function show_txt(str)
    {
      document.getElementById("shuoming").innerText = str;
    }
    </script><IMG onmouseover="show_txt('this is pic1')">
    <IMG onmouseover="show_txt('this is pic2')">
    <IMG onmouseover="show_txt('this is pic3')">
      

  2.   

    如果要所有的说明文字的格式颜色都一致的话,直接在这个td的style里面设置就可以了如果各个说明文字格式不同的话,就改 document.getElementById("shuoming").innerText = str;这句话
    改成如下:
     document.getElementById("shuoming").innerHTML = "<div style='FONT-SIZE:14pt;FONT-FAMILY:system;COLOR:red'>"+str+"<br>this is 2 row</div>";类似就可以了