【劉思彤設(shè)計(jì)】110㎡簡(jiǎn)潔又大氣的三口之家,低預(yù)算一樣能做出輕奢美感!
來自設(shè)計(jì)師:朱普
17/1
17/2
17/3
17/4
17/5
17/6
17/7
17/8
17/9
17/10
17/11
17/12
17/13
17/14
17/15
17/16
17/17
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('預(yù)約設(shè)計(jì)');
//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);
}
主站蜘蛛池模板:
绥江县|
西华县|
榕江县|
孟连|
合水县|
额尔古纳市|
南召县|
永清县|
肇庆市|
康平县|
姚安县|
普兰店市|
双流县|
德江县|
盖州市|
濮阳县|
和政县|
鄂托克前旗|
汝南县|
剑川县|
施甸县|
滦南县|
灌南县|
裕民县|
黑龙江省|
登封市|
佛冈县|
阿勒泰市|
敖汉旗|
天台县|
吴江市|
平罗县|
赤城县|
准格尔旗|
五大连池市|
安阳县|
平南县|
隆昌县|
寿光市|
偃师市|
黑山县|