招商學(xué)府380㎡新中式別墅案例
來自設(shè)計師:田甜
26/1
26/2
26/3
26/4
26/5
26/6
26/7
26/8
26/9
26/10
26/11
26/12
26/13
26/14
26/15
26/16
26/17
26/18
26/19
26/20
26/21
26/22
26/23
26/24
26/25
26/26
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è)計');
//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);
}
主站蜘蛛池模板:
瑞安市|
梧州市|
神木县|
瓮安县|
万荣县|
建昌县|
扶绥县|
民丰县|
宁安市|
通山县|
成武县|
莱西市|
西峡县|
舒兰市|
南投县|
洛川县|
义乌市|
左贡县|
福州市|
乌兰察布市|
元阳县|
吕梁市|
庆阳市|
成安县|
正安县|
大化|
和林格尔县|
静乐县|
永丰县|
罗平县|
白河县|
曲周县|
青岛市|
平阴县|
龙江县|
灵石县|
齐齐哈尔市|
景泰县|
黄梅县|
含山县|
教育|