You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB
JavaScript

hovering
#1
$(document).on('mouseover','.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'grey');
}).on('mouseout','.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'white');
});
$(document).on('click', '.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'blue');
}).on('mouseout','.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'blue');
});
#2
$('.NN, .NNS').mouseover(function() {
$('.NN, .NNS').css('background-color', "grey");
});
$('.NN, .NNS').mouseout(function() {
$('.NN, .NNS').css('background-color', "white");
});
$('.NN, .NNS').click(
function() {
$('.NN, .NNS').toggleClass('noun');
});
$(document).on('mouseenter','.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'grey');
}).on('mouseout','.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'white');
});
$(document).on('click', '.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'blue');
}).on('mouseout','.NN, .NNS', function() {
$('.NN, .NNS').css('background-color', 'blue');
});