// homepee.com $(".bbsnewf5 table tr td a img").addClass("album_img"); $(".bbsnewf5 table tr td a img").attr("width","100%"); $(".bbsnewf5 table tr td a img").attr("height","auto"); $(".album_img").wrap("
"); //$(".album_img_box").wrap("
"); $(".bbsnewf5 table").prepend("
"); list_cno = 0; list_color = new Array; list_color = ["#000000", "#666666", "#AAAAAA", "#FFFFFF", "#000000", "#666666", "#AAAAAA", "#FFFFFF"]; font_color = new Array; font_color = ["#FFFFFF", "#FFFFFF", "#000000", "#000000", "#FFFFFF", "#FFFFFF", "#000000", "#000000"]; list_tmp = new Array; font_tmp = new Array; var g_etc= $('.gallery_etc'); //var f_etc= $('.gallery_etc font'); var etc_box= $('.ect_box'); var img_box= $('.album_img'); for (i = 0; i < img_box.length; i++) { img_ck = showImageSize(img_box[i], 0); if(img_ck == '1'){ $(img_box[i]).addClass("album_img1"); img_left = showImageSize(img_box[i], 1); $(img_box[i]).css("left",img_left); }else{ $(img_box[i]).addClass("album_img2"); } if(g_etc.length > 0){ etcTxt = ''; etc_var = $(g_etc[i]).text(); etcEx = etc_var.split(' : '); if(etcEx.length > 1){ etcFun1 = etcEx[1].substring(0, 3); if(etcEx[2]){ etcEx2 = etcEx[2].split(']'); etcFun2 = etcEx2[0]; }else{ etcFun2 = ''; } txtCk = etcFun2; corCk = list_tmp[txtCk]; if(corCk){ corCk2 = font_tmp[txtCk]; corTmp = corCk; corTmp2 = corCk2; }else{ corTmp = list_color[list_cno]; corTmp2 = font_color[list_cno]; list_tmp[txtCk] = corTmp; font_tmp[txtCk] = corTmp2; list_cno++; } if(etcFun1 == '½Ã°øÀü' || etcFun1 == '½Ã°øÈÄ' || etcFun1 == '½Ã°øÁß'){ $(etc_box[i]).addClass("etc_box1"); $(etc_box[i]).css("background-color", corTmp); $(etc_box[i]).css("color", corTmp2); etcTxt = etcFun2; if(etcTxt) etcTxt += ' - '; } if(etcFun1 == '½Ã°øÀü'){ etcTxt += '½Ã°øÀü'; $(etc_box[i]).text(etcTxt); } if(etcFun1 == '½Ã°øÈÄ'){ etcTxt += '½Ã°øÈÄ'; $(etc_box[i]).text(etcTxt); } if(etcFun1 == '½Ã°øÁß'){ etcTxt += '½Ã°øÁß'; $(etc_box[i]).text(etcTxt); } } } } function showImageSize(img, ck){ var width, height; if(img.naturalWidth){ width = img.naturalWidth; height = img.naturalHeight; } else { var tImg = new Image(); tImg.src = img.src; width = tImg.width; height = tImg.height; } if(width >= height){ if(ck == 1){ c1 = height/297; c2 = width/c1; c3 = ((c2-297)/2)*-1; fun = Math.round(c3); }else{ fun = '1'; } }else{ fun = '2'; } return fun; }