点击javascript:void(0);会弹出新窗口问题,提示Internet Explorer 无法显示该网页
本来是点击javascript:void(0);关闭当前窗口、、但现在会弹出另一个新的页面,提示InternetExplorer无法显示该网页,链接是javascript...
本来是点击javascript:void(0);关闭当前窗口、、但现在会弹出另一个新的页面,提示Internet Explorer 无法显示该网页,链接是javascript:void(0);
代码如下:
<div class="lanrenzhijia_m">
<ul>
<a href="javascript:void(0);" class="close"></a>
<a href="/" style="left:145px;"></a>
<a href="javascript:void(0); class="guanbi" style="left:235px;"></a>
</ul>
</div>
<script>
$(function() {
$('.lanrenzhijia_m').delay(3000).slideDown();
$('.close').click(function() {
$('.lanrenzhijia_m').slideUp();
});
$('.guanbi').click(function() {
$('.lanrenzhijia_m').slideUp();
});
});
</script> 展开
代码如下:
<div class="lanrenzhijia_m">
<ul>
<a href="javascript:void(0);" class="close"></a>
<a href="/" style="left:145px;"></a>
<a href="javascript:void(0); class="guanbi" style="left:235px;"></a>
</ul>
</div>
<script>
$(function() {
$('.lanrenzhijia_m').delay(3000).slideDown();
$('.close').click(function() {
$('.lanrenzhijia_m').slideUp();
});
$('.guanbi').click(function() {
$('.lanrenzhijia_m').slideUp();
});
});
</script> 展开
1个回答
展开全部
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script class="jquery library" src="/js/sandbox/jquery/jquery-1.8.2.min.js" type="text/javascript"></script>
<title>
RunJS 演示代码
</title>
<script>
$(function() {
$('.lanrenzhijia_m').delay(3000).slideDown();
$('.close').click(function() {
$('.lanrenzhijia_m').slideUp();
return false;
});
$('.guanbi').click(function() {
$('.lanrenzhijia_m').slideUp();
});
});
</script>
</head>
<body>
<div class="lanrenzhijia_m">
<ul>
<li>111
<a href="javascript:void(0);" class="close">close
</a>
<a href="/" style="left:145px;">
style
</a>
<a href="javascript:void(0);" class="guanbi" style="left:235px;">
guabi
</a>
</li>
</ul>
</div>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |