Zum Inhalt springen

„Benutzer:ManosHacker/common.js“ – Versionsunterschied

aus Wikipedia, der freien Enzyklopädie
Inhalt gelöscht Inhalt hinzugefügt
ManosHacker (Diskussion | Beiträge)
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') });
});