„Benutzer:ManosHacker/common.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
AZ: Die Seite wurde neu angelegt: $('.hover-bgc').hover( function() { $(this).attr("data-hover-bgc-original", $(this).css("backg… |
(kein Unterschied)
|
Aktuelle Version vom 29. März 2018, 00:56 Uhr
$('.hover-bgc').hover( function() {
$(this).attr("data-hover-bgc-original", $(this).css("background-color"))
var parentSpec = $(this).parent('.hover-bgc-parent').attr('data-hover-bgc-child');
$(this).css({ "background-color" : ((typeof parentSpec !== typeof undefined) && (parentSpec !== false)) ? parentSpec : $(this).attr('data-hover-bgc') });
}, function() {
$(this).css({ "background-color" : $(this).attr('data-hover-bgc-original') });
});