是要鼠标移上对象,就出现备注效果吗?请参考title属性
例:
<input title="备注信息">

解决方案 »

  1.   

    是title,就像http://bt3.btchina.net那样,点击一个链接就会打开一个层,然后点其它地方就消失,可是我不知道怎么写
      

  2.   

    这个方法如果页面上元素比较少还可以用用,太多的话容易起冲突,不易使用
    <body >
    <div id=div1  height="400" width="200" style="display:none;background-color:ff0000" onmouseout="window.setTimeout('hidddiv()',10000)">
    sdfsdfsdfsdf
    </div>
    <input name=button1 type=button value="按" onclick="showdiv()">
    <script>
    function hidddiv()
    {
    document.getElementById('div1').style.display='none';
    }
    function showdiv()
    {
    document.getElementById("div1").style.display='';
    }
    document.body.onmousedown=function keydown(){if((event.srcElement.id!='div1')&&(event.srcElement.name!='button1')){document.getElementById('div1').style.display='none'}}
    </script>
    </body>