求 点击一链接打开个层,鼠标移开十秒后关闭,或者点击页面其它地方关闭层 是要鼠标移上对象,就出现备注效果吗?请参考title属性例:<input title="备注信息"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是title,就像http://bt3.btchina.net那样,点击一个链接就会打开一个层,然后点其它地方就消失,可是我不知道怎么写 这个方法如果页面上元素比较少还可以用用,太多的话容易起冲突,不易使用<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> 在一个Form里有多组复选框,我要控制每组复选框只能选择3项 用图片提交表单的JS验证问题 哪位好心人,帮我做一份啊 如何模拟选中网页单选框 求日历控件+学习资料 为什么我在page.js文件下写了如下函数,总是提示"缺少标识符"?? [感谢]Estyle(靳田),请进来拿分! javascript可以将字符串看成二进制字符做位操作吗? html问题:通过点击一个frame里面的链接让另一个frame装载需要的htm(kingofark) 数组对比,去掉重复的返回没有重复的值 函数调用的参数问题 函数重载?
<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>