Đã Hủy

Javascript. Change Div's Class on Browser Window Change


I have a basic problem i need solved. I believe this should be quite easy for JavaScript experts.

I have a website, two divs. Left and Right

The right div is fixed position.

However when the user browser window, is less than the height of the div, i need it to be no longer fixed, but to scroll with the rest of the page.

I imagine the logic to be the following:

-detect div#right height

-if window-height is less than div#right height. change div class to xxx

-if window-height is greater than div#right height. div class stays at yyy

(must update window-height everytime window is resized)

BUDGET: <$20

DEADLINE: 24hours

Kĩ năng: CSS, HTML, Javascript

Xem nhiều hơn: javascript change div class browser, javascript window div class, javascript change div class, change div height javascript, javascript browser class, javascript less than, divs, div, change deadline, browser detect, javascript scroll page, scroll div page, change website right left, easy browser, javascript everytime, div scroll page, change javascript, window window window, basic javascript, css page change, xxx easy, javascript scroll, page scroll javascript, scroll javascript, javascript page scroll

Về Bên Thuê:
( 64 nhận xét ) Melbourne, Australia

ID dự án: #1009869

1 freelancer đang chào giá trung bình $30 cho công việc này


please check pm

$30 AUD trong 0 ngày
(51 Nhận xét)