我想在ASP.NET中使用jGrowl,但得到Microsoft JScript运行时错误:对象不支持此属性或方法错误时尝试在IE中运行页面。任何想法为什么发生这种情况?Microsoft JScript运行时错误:对象不支持此属性或方法
<link rel="stylesheet" href="css/jquery.jgrowl.css" type="text/css" />
<style type="text/css">
div.jGrowl div.smoke {
background: url(images/smoke.png) no-repeat;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
width: 280px;
height: 55px;
overflow: hidden;
}
</style>
<!--[if lt IE 7]>
<link rel="stylesheet" href="css/jquery.jgrowl.ie6.css" type="text/css" />
<![endif]-->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.jgrowl.js"></script>
<script type="text/javascript" src="js/jquery.template.js"></script>
<script type="text/javascript" src="js/jquery.ui.all.js"></script>
<script type="text/javascript" src="js/jquery-1.4.2.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
$('#test2').jGrowl("TEST", {
theme: 'smoke',
closer: true
});
});
</script>
BODY:
<a onclick="$('#test2').jGrowl('TEST');" href="javascript:void(0);">Sample 3</a>
修复了错误,谢谢。但有一个问题,出于某种原因,jGrowl窗口在页面加载时同时显示,并且在点击链接时也会激活。你知道这是为什么吗? – MiziaQ 2011-01-28 21:23:13