梵客家裝 十里春風 實景案例
來自設(shè)計師:曹樹峰
- 9/1
- 9/2
- 9/3
- 9/4
- 9/5
- 9/6
- 9/7
- 9/8
- 9/9
var head_bottom_height = $("#s_site")[0].offsetHeight + $(".i_tit")[0].offsetHeight + $(".menu")[0].offsetHeight + document.getElementById("imglist").offsetHeight;
var galleries = $('#gallery').adGallery({ cycle: false, head_bottom_height: head_bottom_height, description_wrapper: false, loader_image: 'https://static.zhuangyi.com/gallery/images/loader.gif'
, callbacks: {
beforeImageVisible: function () {
$(".ad-image").css("left", ($("#gallery")[0].offsetWidth - $(".ad-image").width()) / 2);
$(".ad-image").append('預約設(shè)計');
//var pictitle = $("#ad-title").html();
//document.title = $("#ad-title").html() + "-裝修效果圖-" + "";
}
}
});
window.onload = window.onresize = function () {
set();
}
function windowHeight() {
var de = document.documentElement;
return self.innerHeight || (de && de.clientHeight) || document.body.clientHeight;
}
function set() {
var wh = windowHeight();
var w_height = (wh - $("#s_site")[0].offsetHeight - $(".i_tit")[0].offsetHeight - $(".menu")[0].offsetHeight - document.getElementById("imglist").offsetHeight);
var image = new Image();
image.src = $(".ad-image img").attr("src");
var w_width = image.width * w_height / image.height;
var newimg_width = image.width;
var newimg_height = image.height;
if (image.width > w_width) {
newimg_width = w_width;
newimg_height = image.height * w_width / image.width;
}
if (image.height > w_height) {
newimg_width = image.width * w_height / image.height;
newimg_height = w_height;
}
$(".ad-image-wrapper").height((w_height) + "px");
$(".ad-image").height((newimg_height) + "px");
$(".ad-image").width((newimg_width) + "px");
$(".ad-image").css("top", (w_height - newimg_height) / 2);
$(".ad-image").css("left", ($("#gallery")[0].offsetWidth - newimg_width) / 2);
$(".ad-image img").attr("height", newimg_height);
$(".ad-image img").attr("width", newimg_width);
$(".ad-next").css("height", w_height);
$(".ad-prev").css("height", w_height);
var thumbsW = $("#imglist")[0].offsetWidth - 246;
if (thumbsW > 837) {
thumbsW = 837;
}
$(".ad-thumbs").css("width", thumbsW);
$(".ad-nav").css("width", thumbsW + 60);
}