限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

jquery支持图片文本文字视频的幻灯片特效代码

所属分类: 网页特效-图片特效&上传    2023-11-08 01:50:31

jquery支持图片文本文字视频的幻灯片特效代码 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery支持图片文本文字视频的幻灯片特效代码(共9个文件)

    • index.html

使用方法

/**
 * home JS - separated because homepages usually use a lot of stuff the rest of the site doesn't need
 */
/* define $ as jQuery just in case */
(function ($) {
	/* slideshow - my custom plugin */
	$.fn.slideshow = function () {
		/* set vars */
		var slideshow = this;
		var slides = slideshow.find('.slide');
		var controls = slideshow.find('.control');
		var active_slides = slideshow.find('.slide.active');
		var active_slide = active_slides.first().length > 0 ? active_slides.first() : slideshow.find('.slide:eq(0)');
		var target_index = active_slide.index();
		var target_el = slideshow.find('.slide:eq(' + target_index + ')');
		var target_control = slideshow.find('.control:eq(' + target_index + ')');
		var slide_speed = 10000;
		var timer;

		/* hide the slides before showing the active slide */
		slideshow.hide();
		$(window).load(function () {
			/* hide all slides, then show the active one */
			slides.removeClass('active').hide();
			target_el.addClass('active').show();

			/* remove active class from all controls and then add it to the target (active) control */
			controls.removeClass('active');
			target_control.addClass('active');

			/* show the slideshow when everything is set */
			slideshow.show();

			/* animate the slideshow every XX seconds */
			var timer = setInterval(show_next_slide, slide_speed);
		});

		/* navigator */
		slideshow.on('click', '.control', function (e) {
			/* reset the timer */
			window.clearInterval(timer);

			/* set the vars */
			var target_index = $(this).index();
			var target_slide = slideshow.find('.slide:eq(' + target_index + ')');

			/* show the targeted slide */
			slides.removeClass('active').hide();
			target_slide.show().addClass('active');

			/* change the control nav to active */
			controls.removeClass('active');
			$(this).addClass('active');
			e.preventDefault();
		});

		/* animate slides */
		function show_next_slide() {
			/* set the vars */
			var slides = slideshow.find('.slide');
			var curr_slide = slideshow.find('.slide.active');
			var curr_index = curr_slide.index();
			var next_index = parseInt(curr_index + 1);
			if (next_index > slides.length - 1) {
				var next_index = 0;
			}
			var target_el = slideshow.find('.slide:eq(' + next_index + ')');
			var target_control = slideshow.find('.control:eq(' + next_index + ')');

			/* show the next slide */
			slides.hide().removeClass('active');
			target_el.show().addClass('active');

			/* change the control nav to active */
			controls.removeClass('active');
			target_control.addClass('active');
		}
	}
})(jQuery);

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 图片特效&上传

jquery响应式图片画廊效果

该插件共两种特效:带文字标题和不带文字标题,响应式设计,兼容不同分辨率屏幕。
  图片特效&上传
 7308  0

jquery支持图片或文本文字的幻灯片特效代码

一款支持图片文字的轮播插件,分别支持图片、文字左右滚动,可自定义:上一张、下一张、自动播放、停止等。
  图片特效&上传
 7277  0

原生js图片反向动画拆分滚动效果

一款很有趣的图片滚动特效,拉动滚动条上下两组图片反方向拆分。
  图片特效&上传
 9311  0

jquery响应式带loading加载动画的图片放大镜插件

一款带预加载动画的图片预览插件,兼容各种分辨率,响应式布局。
  图片特效&上传
 6301  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论