html轮播鼠标悬停效果,jQuery图片轮播加悬停效果

b5f2af57a1125ea5a7a846cf90a6413f.png

3efc3516b7ecb765a1f067c294640f12.png

插件描述:jQuery图片轮播加悬停效果

=======以下内容由会员 只看不发了 提供============

使用方法

1.将文档内内部样式表保存到目录css下的style.css文件中,并在页面中链接到这个样式表文件

2.添加jquery.SuperSlide2.js

3.添加图片效果js(可根据实际情况整理到外部js文件中)$(document).ready(function () {

/* 图片滚动效果 */

$(".mr_frbox").slide({

titCell: "",

mainCell: ".mr_frUl ul",

autoPage: true,

effect: "leftLoop",

autoPlay: true,

vis: 4

});

/* 鼠标悬停图片效果 */

$(".mr_zhe_hover").css("top", $('.mr_zhe').eq(0).height());

$("li").mouseout(function (e) {

if ((e.pageX < $(this).offset().left || e.pageX > ($(this).offset().left + $(this).width())) || (e.pageY < $(this).offset().top || e.pageY > ($(this).offset().top + $(this).height()))) {

$(this).find('.mr_zhe_i').show();

$(this).find('.mr_zhe_hover').hide().stop().animate({ top: '190px' }, { queue: false, duration: 190 });

return false;

}

});

$('.mr_zhe').mouseover(function (event) {

$(this).find('.mr_zhe_i').hide();

$(this).find('.mr_zhe_hover').show().stop().animate({ top: '190px' }, { queue: false, duration: 190 });

return false;

});

});

4.html部分

mfrl.gif

  • i.jpg

    I

    家居软装设计概念Introduction soft home design

    plus.gif

    家居软装设计概念Introduction soft home design

  • i2.jpg

    E

    家居软装设计概念Introduction soft home design

    plus.gif

    家居软装设计概念Introduction soft home design

  • i3.jpg

    S

    家居软装设计概念Introduction soft home design

    plus.gif

    家居软装设计概念Introduction soft home design

  • i4.jpg

    A

    家居软装设计概念Introduction soft home design

    plus.gif

    家居软装设计概念Introduction soft home design

mfrr.gif

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值