Img Swap on hover or mouseover with JQuery

Developer
Size
1,561 Kb
Views
48,576

How do I make an img swap on hover or mouseover with jquery?

A simple jquery to swap image on hover or mouseover. What is a img swap on hover or mouseover with jquery? How do you make a img swap on hover or mouseover with jquery? This script and codes were developed by Mia Sno on 12 August 2022, Friday.

Img Swap on hover or mouseover with JQuery Previews

Img Swap on hover or mouseover with JQuery - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Img Swap on hover or mouseover with JQuery</title>
</head>
<body> <img src="//dx6i5pkyrcr70.cloudfront.net/images/cart_icon_off.png" class="img-swap"> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Img Swap on hover or mouseover with JQuery - Script Codes JS Codes

// swap image etc. $(".img-swap").hover( function () { this.src = this.src.replace("_off", "_on"); }, function () { this.src = this.src.replace("_on", "_off"); });
Img Swap on hover or mouseover with JQuery - Script Codes
Img Swap on hover or mouseover with JQuery - Script Codes
Home Page Home
Developer Mia Sno
Username mrs_snow
Uploaded August 12, 2022
Rating 3
Size 1,561 Kb
Views 48,576
Do you need developer help for Img Swap on hover or mouseover with JQuery?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Mia Sno (mrs_snow) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!