Декорация радиокнопок
How do I make an Декорация радиокнопок?
What is a Декорация радиокнопок? How do you make a Декорация радиокнопок? This script and codes were developed by Ddimonn8080 on 01 August 2022, Monday.
Декорация радиокнопок - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Декорация радиокнопок</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="radioButtons"> <div class="radioWrapp radioWrapp1"> <span class="showRadio"><input type="radio" name="radioSearch" class="nameParam" id="nameParam" checked></span> <label for="nameParam">по названию</label> </div> <div class="radioWrapp radioWrapp2"> <span class="showRadio"><input type="radio" name="radioSearch" class="licenseParam" id="licenseParam"></span> <label for="licenseParam">по лицензии</label> </div> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Декорация радиокнопок - Script Codes CSS Codes
/* radioButtons */
.radioButtons { overflow: hidden; zoom: 1;/* ie */
}
.radioWrapp1,
.radioWrapp2 { float: left; padding: 10px 10px 10px 0;
}
.radioWrapp1 label,
.radioWrapp2 label { font-size: 14px; font-weight: 400; line-height: 20px; color: #222; display: inline-block; cursor: pointer;
}
.nameParam,
.licenseParam { vertical-align: bottom; margin: 0 5px 0 0; width: 17px; height: 17px;
}
/* decoration_________*/
.nameParam,
.licenseParam { display: none;
}
.radioWrapp1 span,
.radioWrapp2 span { float: left; margin: 0 10px 0 0; height: 22px; width: 22px; background: url(http://savepic.ru/8354524.png) no-repeat 0 0;
}
.radioWrapp .hoverRadio { background-position: -23px 0;
}
.radioWrapp .checkedRadio { background-position: -45px 0;
}
/* radioButtons End */
Декорация радиокнопок - Script Codes JS Codes
$(document).ready(function(){ var $radioWrapp = $('.radioWrapp'); $radioWrapp.each(function(){ var $radio = $(this).find('input[type=radio]'); var $span = $radio.parent('.showRadio'); if ($radio.prop('checked')) { $span.addClass('checkedRadio'); } }).on({mousemove: function(){ var $radio = $(this).find('input[type=radio]'), $span = $radio.parent('.showRadio'), hasClass = $span.hasClass('checkedRadio'); if (!hasClass) { $span.addClass('hoverRadio'); } }, mouseout: function(){ var $radio = $(this).find('input[type=radio]'); var $span = $radio.parent('.showRadio'); $span.removeClass('hoverRadio'); }, click: function(){ var $radio = $(this).find('input[type=radio]'), $span = $radio.parent('.showRadio'); if ($radio.prop('checked')) { $('.showRadio').removeClass('checkedRadio'); $span.addClass('checkedRadio'); $radioWrapp.find('input[type=radio]').prop('checked', false); $radio.prop('checked', true); } } });
});
Developer | Ddimonn8080 |
Username | ddimonn8080 |
Uploaded | August 01, 2022 |
Rating | 3 |
Size | 2,370 Kb |
Views | 32,384 |
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 |
Bootstrap grid sistem | 1,927 Kb |
A Pen by ddimonn8080 | 22,065 Kb |
Menu | 3,823 Kb |
Menu icons css | 2,200 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 |
Isometric css island | Xaddict | 2,950 Kb |
Brian The CSS Bee | Jonitrythall | 3,922 Kb |
V.35 The Monolith Update - Hero Release Notes | Jordan | 12,045 Kb |
Learning FlexBox | Alex_rodrigues | 2,821 Kb |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 Kb |
Midterm dry run | Jds317 | 1,649 Kb |
Video mute | Leon9208 | 2,131 Kb |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Force Counter | Kenlauguico | 2,732 Kb |
React Template | Isac | 1,241 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!