我有 2 个按钮
按钮 1(蓝色) 按钮 2(橙色)
当我将鼠标悬停在按钮 1 上时它变成橙色,当我将鼠标悬停时它再次变成蓝色,与橙色 OK 相同
现在我想要它,当我将鼠标悬停在按钮 1(蓝色)上时,按钮 2 必须是蓝色,按钮 1 必须是橙色,当我移开它时,它必须返回到按钮 1(蓝色)和按钮 2(橙色)
用我的 CSS 和 JavaScript 脚本!我一整天都在挣扎,我对网络编码很陌生!
$(document).ready(function() {
"use strict";
$('#slider-carousel').carouFredSel({
responsive: true,
width: '100%',
circular: true,
scroll: {
item: 1,
duration: 500,
pauseOnHover: true
},
auto: true,
items: {
visible: {
min: 1,
max: 1
},
height: "variable"
},
pagination: {
container: ".sliderpager",
pageAnchorBuilder: false
}
});
});
$(document).ready(function() {
$(".slider a.btn-half").mouseover(function() {
$(".slider a.btn-full").css("background-color", "deepskyblue");
});
});
$(document).ready(function() {
$(".slider a.btn-half").mouseout(function() {
$(".slider a.btn-full").css("background-color", "orange");
});
});
$(document).ready(function() {
$(".slider a.btn-full").mouseover(function() {
$(".slider a.btn-half").css("background-color", "deepskyblue");
});
});
$(document).ready(function() {
$(".slider a.btn-half").mouseout(function() {
$(".slider a.btn-full").css("background-color", "orange");
});
});
慕妹3242003
蝴蝶不菲
相关分类