首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

JQUERY HOVER 有关问题

2013-03-28 
JQUERYHOVER 问题$(function() {$(.showpic img).hover(function() {$(this).stop().animate({ opacity

JQUERY HOVER 问题
$(function() {
$('.showpic img').hover(function() {
$(this).stop().animate({ "opacity": 0.8 }, 80);
}, function() {
$(this).stop().animate({ "opacity": 1 }, 80);
});
});

我用的是织梦CMS   首页调用是OK 的

其他页面怎么弄都不行   奇怪了 怎么回事?

<div class="showpic">
 <a><img src="../images/123.jpg" /></a>
</div>

检查了路径都OK 的
[解决办法]
检查:
jquery主文件是否载入。
有这段hover的js是否在jquery之后载入。
这段js是否在
$(function(){
   // code
});
这个里边。

热点排行