새창을 띄우려는데 새창띄워지는 창의 사이즈(이미지 사이즈가 아님)를
Width= 800 Hight=800 숫자로 대입해서 창사이즈를 고정시키고 출력위치는
상단 100px 마진주고 중간에 띄우게 하려고 합니다.
자동으로 사이즈 조정되는 것 말고 위와 같이 강제로 사이즈 조정하게 하려면
어디를 수정해야 하는지요??
item.php코드에
<?
for ($i=1; $i<=5; $i++)
{
if (file_exists("$g4[path]/data/item/{$it_id}_l{$i}"))
{
echo get_large_image("{$it_id}_l{$i}", $it[it_id], false);
if ($i==1 && file_exists("$g4[path]/data/item/{$it_id}_m"))
echo "<img id='middle{$i}' src='$g4[path]/data/item/{$it_id}_m' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
else
echo "<img id='middle{$i}' src='$g4[path]/data/item/{$it_id}_l{$i}' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
echo " onmouseover=\"document.getElementById('$middle_image').src=document.getElementById('middle{$i}').src;\">";
echo "</a> ";
}
}
?>
================
와 largeimage.php 코드
<?
for ($i=1; $i<=5; $i++)
{
if (file_exists("$g4[path]/data/item/{$it_id}_l{$i}"))
echo "<img id='large{$i}' src='$g4[path]/data/item/{$it_id}_l{$i}' border=0 width=50 height=50 style='border:1 solid #E4E4E4;'
onmouseover=\"document.getElementById('largeimage').src=document.getElementById('large{$i}').src;\"> ";
}
?>
에서 수정해야 하는지요??
방법좀 갈켜주시면 감사합니다
Width= 800 Hight=800 숫자로 대입해서 창사이즈를 고정시키고 출력위치는
상단 100px 마진주고 중간에 띄우게 하려고 합니다.
자동으로 사이즈 조정되는 것 말고 위와 같이 강제로 사이즈 조정하게 하려면
어디를 수정해야 하는지요??
item.php코드에
<?
for ($i=1; $i<=5; $i++)
{
if (file_exists("$g4[path]/data/item/{$it_id}_l{$i}"))
{
echo get_large_image("{$it_id}_l{$i}", $it[it_id], false);
if ($i==1 && file_exists("$g4[path]/data/item/{$it_id}_m"))
echo "<img id='middle{$i}' src='$g4[path]/data/item/{$it_id}_m' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
else
echo "<img id='middle{$i}' src='$g4[path]/data/item/{$it_id}_l{$i}' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
echo " onmouseover=\"document.getElementById('$middle_image').src=document.getElementById('middle{$i}').src;\">";
echo "</a> ";
}
}
?>
================
와 largeimage.php 코드
<?
for ($i=1; $i<=5; $i++)
{
if (file_exists("$g4[path]/data/item/{$it_id}_l{$i}"))
echo "<img id='large{$i}' src='$g4[path]/data/item/{$it_id}_l{$i}' border=0 width=50 height=50 style='border:1 solid #E4E4E4;'
onmouseover=\"document.getElementById('largeimage').src=document.getElementById('large{$i}').src;\"> ";
}
?>
에서 수정해야 하는지요??
방법좀 갈켜주시면 감사합니다
댓글 3개
lib/shop.lib.php 의
// 큰 이미지
function get_large_image($img, $it_id, $btn_image=true)
{
global $g4;
if (file_exists("$g4[path]/data/item/$img") && $img != "")
{
$size = getimagesize("$g4[path]/data/item/$img");
$width = $size[0];
$height = $size[1];
$str = "<a href=\"javascript:popup_large_image('$it_id', '$img', $width, $height, '$g4[shop_path]')\">";
를
$str = "<a href=\"javascript:popup_large_image('$it_id', '$img', 800, 800, '$g4[shop_path]')\">";
이렇게 수정해 보시기 바랍니다.
// 큰 이미지
function get_large_image($img, $it_id, $btn_image=true)
{
global $g4;
if (file_exists("$g4[path]/data/item/$img") && $img != "")
{
$size = getimagesize("$g4[path]/data/item/$img");
$width = $size[0];
$height = $size[1];
$str = "<a href=\"javascript:popup_large_image('$it_id', '$img', $width, $height, '$g4[shop_path]')\">";
를
$str = "<a href=\"javascript:popup_large_image('$it_id', '$img', 800, 800, '$g4[shop_path]')\">";
이렇게 수정해 보시기 바랍니다.
shop/largeimage.php 의
<br>
<div align=center>
<a href='#' onclick='window.close();'><img id='largeimage' src='<?=$imagefile?>' width='<?=$size[0]?>' height='<?=$size[1]?>' alt='<?=$row[it_name]?>' border=0 style='border:1 solid #E4E4E4;'></a>
</div>
를
<div align=center style="margin:10px">
와 같이 수정해 보시기 바랍니다.
레이아웃 문제는 저희쪽에서 해결해 드리기 어려운점 양해 바랍니다.
<br>
<div align=center>
<a href='#' onclick='window.close();'><img id='largeimage' src='<?=$imagefile?>' width='<?=$size[0]?>' height='<?=$size[1]?>' alt='<?=$row[it_name]?>' border=0 style='border:1 solid #E4E4E4;'></a>
</div>
를
<div align=center style="margin:10px">
와 같이 수정해 보시기 바랍니다.
레이아웃 문제는 저희쪽에서 해결해 드리기 어려운점 양해 바랍니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기