<menuitem id="dlsmt"></menuitem>

<nav id="dlsmt"><strong id="dlsmt"></strong></nav>

<samp id="dlsmt"></samp>\r\n?\r\n??

Jquery實現(xiàn)鼠標移動\/移過到商品小圖片上時替換掉大圖片上的圖片<\/p>\r\n??\r\n???\r\n????\r\n???<\/a>\r\n???\r\n????\r\n???<\/a>\r\n???\r\n????\r\n???<\/a>\r\n???\r\n????\r\n???<\/a>\r\n??<\/p>\r\n??<\/p>\r\n?<\/p>\r\n<\/body>\r\n<\/html><\/pre>\n

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website! <\/p>\n

Recommended reading: <\/p>\n

JS Basic Improvement Learning Operation DOM Object Style<\/a>
<\/p>\n

js Basic Improvement Learning Basic Data Types <\/a>
<\/p>"}

亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Home WeChat Applet Mini Program Development jQuery implements mouse binding event image zoom function

jQuery implements mouse binding event image zoom function

Jun 04, 2018 pm 03:07 PM
jquery event binding

This time I will bring you jQuery to implement the image magnification function of mouse binding events. What are the precautions for jQuery to implement the image magnification function of mouse binding events. The following is a practical case, let's take a look.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery圖片變換</title>
</head>
<style type="text/css">
?.show{width:330px;?height:auto;?margin:50px?auto;?background:#eee}
?.item{background:#fff;?width:300px;?height:auto;?float:left;?margin:15px;}
?p{?padding:15px;?color:#ff6600}
?.big-photo?img{?width:300px;?height:300px;?border:1px?solid?#e0e0e0}
?.des-small?img{?width:30px;?height:30px;border:1px?solid?#e0e0e0;?}
?.des-small?img:hover{?border:1px?solid?#ff6600}
?.clear{clear:both}
</style>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript">
?$(function()?{
??/**?更換小圖片?*/
??$(".item?a").hover(function(){
???changeImg($(this))
??});?
?});
?function?changeImg(obj){
??if(obj.find("img").attr("alt")=="small"){
???var?temp_big_src?=?obj.siblings('a').find('img[alt=big]').attr('src');
???var?temp_big_url?=?obj.siblings('a[class=big-photo]').attr('href');
???var?temp_small_src?=?obj.find('img').attr('src');
???var?temp_small_url?=?obj.attr('href');
???obj.siblings('a').find('img[alt=big]').attr('src',temp_small_src);
??}
?}
</script>
<body>
?<p class="show">
??<p>Jquery實現(xiàn)鼠標移動/移過到商品小圖片上時替換掉大圖片上的圖片</p>
??<p class="item">
???<a class="big-photo">
????<img src="WR_00001.jpg" alt="big"/>
???</a>
???<a class="des-small">
????<img src="WR_00002.jpg" alt="small"/>
???</a>
???<a class="des-small">
????<img src="WR_00003.jpg" alt="small"/>
???</a>
???<a class="des-small">
????<img src="WR_00004.jpg" alt="small"/>
???</a>
??</p>
??<p class="clear"></p>
?</p>
</body>
</html>

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

JS Basic Improvement Learning Operation DOM Object Style

js Basic Improvement Learning Basic Data Types

The above is the detailed content of jQuery implements mouse binding event image zoom function. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to bind a sub-account on Xiaohongshu? How does it check whether the account is normal? How to bind a sub-account on Xiaohongshu? How does it check whether the account is normal? Mar 21, 2024 pm 10:11 PM

In today's era of information explosion, the construction of personal brand and corporate image has become increasingly important. As the leading fashion life sharing platform in China, Xiaohongshu has attracted a large number of user attention and participation. For those users who want to expand their influence and improve the efficiency of content dissemination, binding sub-accounts has become an effective means. So, how does Xiaohongshu bind a sub-account? How to check whether the account is normal? This article will answer these questions for you in detail. 1. How to bind a sub-account on Xiaohongshu? 1. Log in to your main account: First, you need to log in to your Xiaohongshu main account. 2. Open the settings menu: click &quot;Me&quot; in the upper right corner, and then select &quot;Settings&quot;. 3. Enter account management: In the settings menu, find the &quot;Account Management&quot; or &quot;Account Assistant&quot; option and click

BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? Apr 26, 2024 am 09:40 AM

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

How to bind the Cainiao app to Pinduoduo? How to add the Cainiao Wrap to Pinduoduo platform? How to bind the Cainiao app to Pinduoduo? How to add the Cainiao Wrap to Pinduoduo platform? Mar 19, 2024 pm 02:30 PM

The Cainiao app is a platform that can provide you with various logistics information. The functions here are very powerful and easy to use. If you have any logistics-related problems, they can be solved here. Anyway, it can bring you a The one-stop service can solve everything in time. Checking the express delivery, picking up the express delivery, sending the express delivery, etc. are all without any problems. We have cooperated with various platforms and all the information can be queried. However, sometimes It will happen that the goods purchased on Pinduoduo cannot display the logistics information. In fact, you need to manually bind Pinduoduo to achieve this. The specific methods have been sorted out below, and everyone can take a look. . How to bind Cainiao to Pinduoduo account: 1. Open Cainiao APP and go to the main page

Steps and methods to bind Douyin in Toutiao Steps and methods to bind Douyin in Toutiao Mar 22, 2024 pm 05:56 PM

1. Open Toutiao. 2. Click My in the lower right corner. 3. Click [System Settings]. 4. Click [Account and Privacy Settings]. 5. Click the button on the right side of [Douyin] to bind Douyin.

How to use PUT request method in jQuery? How to use PUT request method in jQuery? Feb 28, 2024 pm 03:12 PM

How to use PUT request method in jQuery? In jQuery, the method of sending a PUT request is similar to sending other types of requests, but you need to pay attention to some details and parameter settings. PUT requests are typically used to update resources, such as updating data in a database or updating files on the server. The following is a specific code example using the PUT request method in jQuery. First, make sure you include the jQuery library file, then you can send a PUT request via: $.ajax({u

How to bind the Cainiao APP to Pinduoduo How to bind the Cainiao APP to Pinduoduo How to bind the Cainiao APP to Pinduoduo How to bind the Cainiao APP to Pinduoduo Mar 19, 2024 pm 05:16 PM

Do you know how to bind Pinduoduo when using Cainiao Wrap? The official version of Cainiao Wrap App does not automatically synchronize some Pinduoduo’s logistics information on this platform. All we need to do is You can copy the order number or check your mobile phone to see if there is any express delivery information. Of course, these all need to be completed manually. If you want to know more, come and take a look with the editor. How to bind the Cainiao APP to Pinduoduo 1. Open the Cainiao APP and click &quot;Package Guide&quot; in the upper left corner of the main page. 2. In the interface, there are many shopping websites, and accounts can be bound. 3. Click to import other e-commerce platforms. 4. User authorization: Click Pinduoduo to go to the interface

jQuery Tips: Quickly modify the text of all a tags on the page jQuery Tips: Quickly modify the text of all a tags on the page Feb 28, 2024 pm 09:06 PM

Title: jQuery Tips: Quickly modify the text of all a tags on the page In web development, we often need to modify and operate elements on the page. When using jQuery, sometimes you need to modify the text content of all a tags in the page at once, which can save time and energy. The following will introduce how to use jQuery to quickly modify the text of all a tags on the page, and give specific code examples. First, we need to introduce the jQuery library file and ensure that the following code is introduced into the page: &lt

Use jQuery to modify the text content of all a tags Use jQuery to modify the text content of all a tags Feb 28, 2024 pm 05:42 PM

Title: Use jQuery to modify the text content of all a tags. jQuery is a popular JavaScript library that is widely used to handle DOM operations. In web development, we often encounter the need to modify the text content of the link tag (a tag) on ??the page. This article will explain how to use jQuery to achieve this goal, and provide specific code examples. First, we need to introduce the jQuery library into the page. Add the following code in the HTML file:

See all articles