O co mi chodzi. Mam id CSS np:
#header
{
height: 600 px;
}
I podczas zdarzenia onscroll. Chce przekazać wartość:
var thisHeight = document.getElementById("header").clientHeight - window.scrollY;
Obecnie robię to tak.
document.getElementById("header").style.height = thisHeight;
I tworzy mi się osobny selektor style. Chciałbym by bezpośrednio przekazać do id CSS, do reguły height, wartość thisHeight. Czy jest to możliwe?