최신글 이미지 해상도에 따라 100% 추출하는 방법 부탁드립니다ㅠㅠ
본문
최신글 같은경우에 latest.skin.php파일에 보면 상단에
$board['bo_gallery_width'] = 1300;
$board['bo_gallery_height'] = 500;
이런식으로 가로, 세로 길이가 정해져 있잖아요~~
원하는건 해상도에 따라서 100%로 맞춰지는 반응형 최신글이미지를 불러오고 싶습니다.
아래 스크립트소스 일부인데요 빨간색 표시된부분처럼 가로사이즈를 불러오는데
100%로 변경하려면 어떻게 수정해주어야 할까요?ㅠㅠ
.
.
.
//responsive code begin
//you can remove responsive code if you don't want the slider scales while window resizes
function ScaleSlider() {
var bodyWidth = document.body.clientWidth;
if (bodyWidth)
jssor_slider1.$ScaleWidth(Math.min(bodyWidth, <?php echo $board['bo_gallery_width']?>));
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider();
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
//responsive code end
.
.
.