/*看大圖*/
var screenheight = $(視窗).height();
var screenwidth = $(window).width();
var loadCSS = function(){
var screenwidth = $(window).width();
varenwidth = $(window).width();
var screenheight = $(window).height();
$("div.lookBigPicture").css({"left":screenwidth*0.2,"top":screenheight*0.15 $(document).scrollTop() ,
"width":screenwidth*0.6, “高度”:螢幕高度*0.7});
$("img.bigImg").css({"最大寬度":(螢幕寬度*0.6 - 30 ),"最大高度":螢幕高度*0.7-40});
$("img.bigImg").load(function(){
$("img.bigImg").css("頂部",(螢幕高度*0.7 - 30 - $("img.bigImg") ).高度())*0.5 30);
$("img.bigImg").css("頂部",(screenheight* 0.7 - 30 - $("img.bigImg").height())*0.5 30);
$.log("$(文檔).height():" $(文檔).height());
};
$("a#bigPic").click(function(){
$.log("screenheight:" screenheight "screenwidth:" screenwidth);
str = $(" img[img-size] ]").attr("src");
$("body").append("
");//灰色薄
$ ("body").append("
");
$("div.grey").css( "height",$(document).height());
loadCSS();
$(" body").css({overflow:"hidden"}); //停用捲軸
});
$("body").delegate("div.grey,a.bigpicclose","click ",function(){
$("body").css({overflow:"visible"}) ; // 恢復捲軸
$("div.lookBigPicture").remove();
//當瀏覽器視窗大小改變時
$(window).resize(function () {
loadCSS();
});