function adjustStyle(width) {
  width = parseInt(width);
  if (width < 1000) {
    $("#ttt").hide();
  } else {
    $("#ttt").show();
  }
}

$(function() {
  adjustStyle($(this).width());
  $(window).resize(function() {
    adjustStyle($(this).width());
  });
});

 

'웹프로그래밍 > jquery' 카테고리의 다른 글

윈도우 위치  (0) 2016.04.01
jQuery를 이용한 네비게이션 모음 (펌)  (0) 2015.03.20
챠트 플러그인 (펌)  (0) 2015.03.20
iframe 높이값 조정  (0) 2015.03.16

+ Recent posts