mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@641 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0c99c45e46
commit
a24ef235b8
1 changed files with 7 additions and 9 deletions
|
|
@ -67,6 +67,7 @@ function start_slide_gallery() {
|
||||||
|
|
||||||
// 로딩 텍스트 없앰
|
// 로딩 텍스트 없앰
|
||||||
xGetElementById("slide_gallery_loading_text_"+srl).style.display = "none";
|
xGetElementById("slide_gallery_loading_text_"+srl).style.display = "none";
|
||||||
|
xGetElementById("slide_gallery_main_image_"+srl).style.display = "block";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -107,7 +108,9 @@ function display_gallery_image(obj, is_first_display) {
|
||||||
|
|
||||||
// 이미지 표시
|
// 이미지 표시
|
||||||
var target_image = xGetElementById("slide_gallery_main_image_"+obj.srl);
|
var target_image = xGetElementById("slide_gallery_main_image_"+obj.srl);
|
||||||
target_image.style.display = "none";
|
|
||||||
|
target_image.style.margin = "0px;";
|
||||||
|
target_image.style.marginLeft = x+"px";
|
||||||
|
|
||||||
target_image.src = obj.image.src;
|
target_image.src = obj.image.src;
|
||||||
target_image.srl = obj.srl;
|
target_image.srl = obj.srl;
|
||||||
|
|
@ -118,12 +121,9 @@ function display_gallery_image(obj, is_first_display) {
|
||||||
xWidth(target_image, image_width);
|
xWidth(target_image, image_width);
|
||||||
xHeight(target_image, image_height);
|
xHeight(target_image, image_height);
|
||||||
|
|
||||||
target_image.style.margin = "0px;";
|
if(image_height<180) {
|
||||||
target_image.style.marginLeft = x+"px";
|
target_image.style.marginTop = (180-image_height)+"px";
|
||||||
|
target_image.style.marginBottom = (180-image_height)+"px";
|
||||||
if(image_height<150) {
|
|
||||||
target_image.style.marginTop = (150-image_height)+"px";
|
|
||||||
target_image.style.marginBottom = (150-image_height)+"px";
|
|
||||||
} else {
|
} else {
|
||||||
target_image.style.marginTop = "10px";
|
target_image.style.marginTop = "10px";
|
||||||
target_image.style.marginBottom = "10px";
|
target_image.style.marginBottom = "10px";
|
||||||
|
|
@ -141,8 +141,6 @@ function display_gallery_image(obj, is_first_display) {
|
||||||
var next_idx = obj.idx+1;
|
var next_idx = obj.idx+1;
|
||||||
if(slide_gallery_images[obj.srl].length<=next_idx) next_idx = 0;
|
if(slide_gallery_images[obj.srl].length<=next_idx) next_idx = 0;
|
||||||
|
|
||||||
target_image.style.display = "block";
|
|
||||||
|
|
||||||
// srl의 모든 썸네일의 투명도 조절
|
// srl의 모든 썸네일의 투명도 조절
|
||||||
for(var i=0; i<slide_gallery_images[obj.srl].length;i++) {
|
for(var i=0; i<slide_gallery_images[obj.srl].length;i++) {
|
||||||
if(i==obj.idx) {
|
if(i==obj.idx) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue