为什么我用jquery用不了effect方法?已经导入了jquery-ui-1.10.2.custom.min.js文件
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content...
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jqueryUI-图片消失和显示</title>
<link rel="stylesheet" type="text/css" href="themes/lightness/jquery-ui-1.10.2.custom.css" />
<script type="text/javascript" src="scripts/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery-1.9.1.js"></script>
<style type="text/css">
.testSubject{ float:left; border:1px solid #000; height:80px; width:120px; margin:10px; padding:12px;}
.float_clear{ clear:left;}
.float_left{ float:left;}
</style>
<script type="text/javascript">
function test(){
var subject = $(".testSubject").get(0);
if(subject.style.display=="" || subject.style.display=="block"){
$(".testSubject").slideUp('slow');
}else{
$(".testSubject").slideDown('slow');
}
}
function test1(){
$('.testSubject').effect('blind',{},null);
}
</script>
</head>
<body>
<div id="testSubjectContainer" data-module="Test Subjects">
<div class="testSubject">
«To err is human — and to blame it on a computer is even more so.»
</div>
<div class="testSubject">
<img src="images/hibiscus.small.jpg" width="120" height="80">
</div>
<div class="float_clear"></div>
<input type="button" onclick="test()" value="点击" />
<input type="button" onclick="test1()" value="点击1" />
</body>
</html>
------------------------------------------------------------------------------------------
“点击”按钮可以运行
“点击1”按钮运行不了,在Adobe Dreamweaver CS6里,.effect('blind',{},null);这个方法没有提示,好像导入不了这个方法一样 展开
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jqueryUI-图片消失和显示</title>
<link rel="stylesheet" type="text/css" href="themes/lightness/jquery-ui-1.10.2.custom.css" />
<script type="text/javascript" src="scripts/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery-1.9.1.js"></script>
<style type="text/css">
.testSubject{ float:left; border:1px solid #000; height:80px; width:120px; margin:10px; padding:12px;}
.float_clear{ clear:left;}
.float_left{ float:left;}
</style>
<script type="text/javascript">
function test(){
var subject = $(".testSubject").get(0);
if(subject.style.display=="" || subject.style.display=="block"){
$(".testSubject").slideUp('slow');
}else{
$(".testSubject").slideDown('slow');
}
}
function test1(){
$('.testSubject').effect('blind',{},null);
}
</script>
</head>
<body>
<div id="testSubjectContainer" data-module="Test Subjects">
<div class="testSubject">
«To err is human — and to blame it on a computer is even more so.»
</div>
<div class="testSubject">
<img src="images/hibiscus.small.jpg" width="120" height="80">
</div>
<div class="float_clear"></div>
<input type="button" onclick="test()" value="点击" />
<input type="button" onclick="test1()" value="点击1" />
</body>
</html>
------------------------------------------------------------------------------------------
“点击”按钮可以运行
“点击1”按钮运行不了,在Adobe Dreamweaver CS6里,.effect('blind',{},null);这个方法没有提示,好像导入不了这个方法一样 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询