为什么当我在看教程或例子,当我只是基本上做一个剪切和过去到我的HTML页面上,我得到的“对象不支持此属性或方法”上我的网页,但我复制脚本的网站不会给这个错误?对象不支持这个属性或方法
是我的jQuery库旧吗?
不知道该怎么办...
这里就是我的工作......这是一个多复盖页。
<map name="Map" id="Map">
<area shape="poly" coords="90,63,128,110,150,95,177,80" href="#" class="bmhoverlay" rel="#mies1"/>
<Area shape="poly" coords="255,5,257,64,276,68,301,73" href="#" class="bhmoverlay" rel="#mies2" />
</map>
这里是CSS:
/* the overlayed element */
.simple_overlay {
/* must be initially hidden */
display:none;
/* place overlay on top of other elements */
z-index:10000;
/* styling */
background-color:#333;
width:675px;
min-height:200px;
border:1px solid #666;
/* CSS3 styling for latest browsers */
-moz-box-shadow:0 0 90px 5px #000;
-webkit-box-shadow: 0 0 90px #000;
}
/* close button positioned on upper right corner */
.simple_overlay .close {
background-image:url(../img/overlay/close.png);
position:absolute;
right:-15px;
top:-15px;
cursor:pointer;
height:35px;
width:35px;
}
/* styling for elements inside overlay */
.details {
position:absolute;
top:15px;
right:15px;
font-size:11px;
color:#fff;
width:150px;
}
.details h3 {
color:#aba;
font-size:15px;
margin:0 0 -10px 0;
}
并调用脚本的页面:
<script>
$("area[rel]").overlay();
</script>
但每次我生成这个网页的时候,我得到的“对象犯规支持此财产或方法“..?
有人吗? 我正在使用jQuery库1.3.2
如果你得到了你喜欢的答案,一定要“接受”它! – Pointy 2010-03-01 17:21:17