Передалать код под jQuery
Доброго времени суток.
Столкнулся с проблемой. Не работает нижеприведенный код на jQuery. Пожалуйста, помогите его переделать под jQuery function hide_div() { //var rnd_200 = Math.round(Math.random()*4) + 7; swap_img('loader_' + rnd_200); clearTimeout(show_delay); show_delay = null; if ( ! obj_float_div ) return; obj_float_div.style.visibility = 'hidden'; obj_float_div.style.left = "-3000px"; obj_float_div = false; } var IE = (document.all); var NC = (document.layers); var Opera = (document.getElementById); function getWidth() { if (IE) return document.body.clientWidth; if (NC) return window.innerWidth; if (Opera) return document.body.offsetWidth; return 1024; } var cmw; var hfw; var ww; function recount() { var ttt; if (window.getSize().x>=1690) { ttt=8; } else if (window.getSize().x>=1260) { ttt=6; } else { ttt=4; } cmw=ttt*205; hfw=cmw-5; ww=hfw+30; } window.onload=resizecontent; window.onresize=resizecontent; function resizecontent() { recount(); if ($('header').style) $('header').style.width=hfw+'px'; $('footer').style.width=hfw+'px'; if (document.getElementById('contentmain')) { $('contentmain').style.width=cmw+'px'; } else { $('wrapper').style.width=ww+'px'; } if ($('imagezoom_overlay')) { $('imagezoom_overlay').style.width = document.body.offsetWidth + "px"; $('imagezoom_overlay').style.height = window.getScrollSize().y + "px"; } } |
Часовой пояс GMT +3, время: 03:40. |