Img Swap on hover or mouseover with JQuery
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 - 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"); });
Developer | Mia Sno |
Username | mrs_snow |
Uploaded | August 12, 2022 |
Rating | 3 |
Size | 1,561 Kb |
Views | 48,576 |
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!
Name | Size |
Toggle graph phases with menu of phases | 3,030 Kb |
Add id to body tag based on url jQuery | 1,501 Kb |
Sticky Navigation or Section with jQuery | 2,297 Kb |
Smooth Scroll To Anchor With jQuery | 1,976 Kb |
Sample fancybox 2 overlay with no wrapper and custom close | 1,937 Kb |
Placeholder sample for IE | 2,578 Kb |
Print element on a page | 2,081 Kb |
QA list with content property | 1,628 Kb |
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!
Name | Username | Size |
Social.svg.min | Larsenwork | 13,849 Kb |
Blockquote design | Sjmcpherson | 1,863 Kb |
Local Weather App - FreeCodeCamp | TrevorWelch | 4,134 Kb |
TweetBox with React JS | J0zelito | 3,325 Kb |
Web Spiral - p5.js | TWAIN | 2,183 Kb |
Learning canvas drawing | Aurer | 2,204 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
A Pen by Michael Parenteau | Michaelparenteau | 2,133 Kb |
Get third wednesday | Wojtek1150 | 2,691 Kb |
Comment Jquery | SquishyAndroid | 2,421 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!