


jquery Jingdong Mall Double 11 focus picture multi-picture advertising special effects code sharing_jquery
The example in this article describes the jquery JD Mall Double 11 focus image multi-image advertising special effects. Share it with everyone for your reference. The details are as follows:
The jquery implementation of the JD Mall Double 11 focus image multi-image advertisement sliding and automatic switching animation effect source code is a piece of code that imitates the JD Mall Double 11 focus image code. It is professionally used in the image display and key display areas of the website. This code implements There are two effects: switching pictures by sliding the mouse over and automatically switching pictures.
Operation rendering: ------------------View the effect Download the source code---------- --------
Tips: If the browser does not work properly, you can try switching the browsing mode.
The jquery Jingdong Mall Double 11 focus image multi-image advertising special effects code shared with you is as follows
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="IE=edge" /> <title>jquery京东商城双11焦点图多图广告代码</title> <link rel="stylesheet" href="css/common.css" /> <link rel="stylesheet" href="css/jd.css" /> <style> .zxx_body .zxx_constr {width: 1210px;} </style> </head> <body> <div class="zxx_body"> <div class="zxx_constr"> <!-- body of jd.html --> <div class="jd_body"> <div id="jdAdSlide" class="jd_ad_slide"> <img src="images/rBEhVlJ5oCUIAAAAAAE4O585pSAAAFGKgINDgcAAThT749.jpg" class="jd_ad_img"> <img data-src="images/rBEhVlJ4ugUIAAAAAADNu0WERsYAAFE9ABekBAAAM3T074.jpg" class="jd_ad_img"> <img data-src="images/rBEhUlJzCqoIAAAAAAE7yTNr8uEAAE2ggLjA1QAATvh176.jpg" class="jd_ad_img"> <img data-src="images/rBEhVVJ40jMIAAAAAAEESo4hULIAAFFRgKzU_IAAQRi366.jpg" class="jd_ad_img"> <img data-src="images/rBEhVlJ5oCUIAAAAAAE4O585pSAAAFGKgINDgcAAThT749.jpg" class="jd_ad_img"> <img data-src="images/rBEhVlJ5mUEIAAAAAAFZ8YVO0RYAAFGEwKl9xAAAVoJ892.jpg" class="jd_ad_img"> <img data-src="images/rBEhVlJ5sGsIAAAAAAEw4mmfc50AAFGdwOMkwIAATD6787.jpg" class="jd_ad_img"> <div id="jdAdBtn" class="jd_ad_btn"></div><!-- add active --> </div> </div> </div> </div> <script src="js/jquery.min.js"></script> <script src="js/jquery-powerSwitch.js"></script> <script> // 大的图片广告 // 根据图片创建id,按钮元素等,实际开发建议使用JSON数据类似 var htmlAdBtn = ''; $("#jdAdSlide img").each(function(index, image) { var id = "adImage" + index; htmlAdBtn = htmlAdBtn + '<a href="javascript:" class="jd_ad_btn_a" data-rel="'+ id +'">'+ (index + 1) +'</a>'; image.id = id; }); $("#jdAdBtn").html(htmlAdBtn).find("a").powerSwitch({ eventType: "hover", classAdd: "active", animation: "fade", autoTime: 5000, onSwitch: function(image) { if (!image.attr("src")) { image.attr("src", image.attr("data-src")); } } }).eq(0).trigger("mouseover"); // 便民服务 $("#servNav a").powerSwitch({ classAdd: "active", eventType: "hover", onSwitch: function() { $("#pointLine").animate({ "left": $(this).position().left}, 200); } }); </script> <div style="width:960px;margin:10px auto; clear:both; text-align:center; "> </div> <div style="width:960px;margin:20px auto 100px auto; clear:both; text-align:center; font-size:12px; line-height:25px; "> <p>适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. </p> <a href="http://www.jb51.net" style="color:#333"><strong>脚本之家整理</strong></a> </strong> </div> </body> </html>
The above is the special effects code shared with you based on jquery to implement JD.com Double 11 focus image multi-image advertising. I hope you can like it and apply it in practice.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Frequently Asked Questions and Solutions for Front-end Thermal Paper Ticket Printing In Front-end Development, Ticket Printing is a common requirement. However, many developers are implementing...

JavaScript is the cornerstone of modern web development, and its main functions include event-driven programming, dynamic content generation and asynchronous programming. 1) Event-driven programming allows web pages to change dynamically according to user operations. 2) Dynamic content generation allows page content to be adjusted according to conditions. 3) Asynchronous programming ensures that the user interface is not blocked. JavaScript is widely used in web interaction, single-page application and server-side development, greatly improving the flexibility of user experience and cross-platform development.

There is no absolute salary for Python and JavaScript developers, depending on skills and industry needs. 1. Python may be paid more in data science and machine learning. 2. JavaScript has great demand in front-end and full-stack development, and its salary is also considerable. 3. Influencing factors include experience, geographical location, company size and specific skills.

How to merge array elements with the same ID into one object in JavaScript? When processing data, we often encounter the need to have the same ID...

Learning JavaScript is not difficult, but it is challenging. 1) Understand basic concepts such as variables, data types, functions, etc. 2) Master asynchronous programming and implement it through event loops. 3) Use DOM operations and Promise to handle asynchronous requests. 4) Avoid common mistakes and use debugging techniques. 5) Optimize performance and follow best practices.

Discussion on the realization of parallax scrolling and element animation effects in this article will explore how to achieve similar to Shiseido official website (https://www.shiseido.co.jp/sb/wonderland/)...

The latest trends in JavaScript include the rise of TypeScript, the popularity of modern frameworks and libraries, and the application of WebAssembly. Future prospects cover more powerful type systems, the development of server-side JavaScript, the expansion of artificial intelligence and machine learning, and the potential of IoT and edge computing.

In-depth discussion of the root causes of the difference in console.log output. This article will analyze the differences in the output results of console.log function in a piece of code and explain the reasons behind it. �...
