如何在DIV层上双击这个层的方法呢? 就是如何实现在这个层上双击的方法,弹出另一个页面!!!请大家给一个例子。onclick方法。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 javascript应该是有双击事件的吧。 <script type="text/javascript"> $(function () { $(".test").dblclick(function () { location.href = "http://csdn.net"; // window.open(); }); }); </script></head><body> <form id="form1" runat="server"> <div class="test" style=" width:200px; height:200px; background-color:#000000; cursor:pointer;" title="请双击"> </div> </form></body></html> <script type="text/javascript"> function test() { alert("双击了"); } </script> <div ondblclick="test()" style="width:500px; border:solid 1px red; height:300px"> 在此区域双击 </div> function test() { alert("双击了"); window.open("打开页面地址") } 关于触发DIV滚动条事件的问题 datalist ??? 如何实例化uri 关于DataGrid的问题?谢谢回答! asp.net生成静态页面后如何统计点击数 那位高手帮个忙,解决一下,无限级别分类的问题,???? datagrid在不分页的情况下会根据数据量的多少而进行扩大,请问在数据量大而又不分页的情况下,怎样在页面上控制datagrid所占位置的大小, 天气预报 在线等……急 jquery ajax跨域请求如何获取返回的文本值 服务器端控件太难用。。 ASP.NET 多图片上传组件! ASP.NET的MVC框架,到底有什么好处?什么样的系统适合选择这一框架?
<script type="text/javascript">
$(function () {
$(".test").dblclick(function () {
location.href = "http://csdn.net";
// window.open();
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="test" style=" width:200px; height:200px; background-color:#000000; cursor:pointer;" title="请双击">
</div>
</form>
</body>
</html>
<script type="text/javascript">
function test()
{
alert("双击了");
}
</script>
<div ondblclick="test()" style="width:500px; border:solid 1px red; height:300px">
在此区域双击
</div>
function test()
{
alert("双击了");
window.open("打开页面地址")
}