사진클릭시 팝업으로 뜨면서 상단 제목에 사이트명 수정 방법은? 정보
사진클릭시 팝업으로 뜨면서 상단 제목에 사이트명 수정 방법은?본문
사진 클릭하면 팝업이 뜨면서
창제목표시줄에 사이트 제목과 주소가 보여지잔아요..
그거 임의적으로 수정할려면 어디를 수정해야하나요?
부탁드립니다.
댓글 전체
view.skin.php 파일입니다.
스크립트 부분을 잘 살펴보시면 타이틀을 수정하실 수 있습니다.
<script language="javascript">
<!--
function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>이곳에 원하는 이름을 넣습니다.</title>\n"); //穽破? 筑綜他 綜? 竹??曖 溜蔚
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
중략
;
스크립트 부분을 잘 살펴보시면 타이틀을 수정하실 수 있습니다.
<script language="javascript">
<!--
function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>이곳에 원하는 이름을 넣습니다.</title>\n"); //穽破? 筑綜他 綜? 竹??曖 溜蔚
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
중략
;
제 view.skin.php 파일에는 위에 부분이 없습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<STYLE TYPE="text/css" TITLE="">
.member { color:#585858; font-weight:normal; }
.guest { font-weight:normal; }
.lh { line-height: 150%; }
.jt { text-align:justify; }
.li { font-weight:bold; font-size:18px; vertical-align:-4px; color:#66AEAD; }
.ul { list-style-type:square; color:#66AEAD; }
.ct { font-family: Verdana, 굴림; color:#222222; }
.ed { border:1px solid #CCCCCC; }
.tx { border:1px solid #CCCCCC; }
.small { font-size:8pt; font-family: Verdana, 굴림; }
.o_line1 {font-family: tahoma;font-size:9pt;color:464646;padding:3 0 0 0;height:28px;border-width:0 0 1 0;border-color:F0F0F0;border-style:solid; }
</STYLE>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0" style='padding-top:3px'><tr><td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<table width="100%" cellspacing="0" cellpadding="0">
<!--<tr><td height=1 bgcolor=#F5F5F5></td></tr> -->
<tr><td height=32 bgcolor=#ffffff style='word-break:break-all; border:5px solid #EBEBEB; padding-top:4px'> <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?=$view[subject]?></td></tr>
<tr><td height=24 style='padding-top:4px'> <font color=#7A8FDB></font><?=$view[name]?>
<? if ($is_ip_view) { echo "<span style='font-family:tahoma; font-size:8pt;color:#737373; '> ($ip)"; } ?>
<font color=#7A8FDB>Date</font> : <?=substr($view[wr_datetime],2,14)?>
<font color=#7A8FDB>Hit</font> : <?=$view[wr_hit]?>
<? if ($is_good) { ?><font color=#7A8FDB>Vote</font> : <?=$view[wr_good]?> <?}?>
<? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?> <?}?></span></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<? if ($trackback_url) { ?>
<tr><td height=24 style='padding-top:4px'> 트랙백 주소 : <a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str)
{
if (g4_is_gecko)
prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
else if (g4_is_ie) {
window.clipboardData.setData("Text", str);
alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
}
}
</script></td></tr>
<?}?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
if ($view[file][$i][source] && !$view[file][$i][view])
{
$cnt++;
//echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : <span style='font-family:tahoma; font-size:8pt;color:#737373; '>{$view[file][$i][download]}, {$view[file][$i][datetime]}</span></a></td></tr>";
}
}
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank>{$link}</strong> ({$view[link_hit][$i]})</a></td></tr>";
}
}
?>
<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<tr>
<td height="10" style='word-break:break-all; padding:10px; border:1px solid #F5F5F5;' bgcolor=#FFFFFF>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<span class="ct lh"><?=$view[content];?></span>
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<div align=right>
<table>
<tr>
<td width=></td>
<td style='word-break:break-all; padding:0px; border:1px solid #DBDBDB;' bgcolor=#FCFCFC>
<? if ($is_signature) { echo "<br> $signature <br><br>"; } // 서명 출력 ?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table><br>
<?
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td></tr></table><br>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
//window.onload = resize_image;
function file_download(link, file)
{
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href = link;
}
</script>
<!-- 게시글 보기 끝 -->
여기서 어디를 수정 해야 하나요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<STYLE TYPE="text/css" TITLE="">
.member { color:#585858; font-weight:normal; }
.guest { font-weight:normal; }
.lh { line-height: 150%; }
.jt { text-align:justify; }
.li { font-weight:bold; font-size:18px; vertical-align:-4px; color:#66AEAD; }
.ul { list-style-type:square; color:#66AEAD; }
.ct { font-family: Verdana, 굴림; color:#222222; }
.ed { border:1px solid #CCCCCC; }
.tx { border:1px solid #CCCCCC; }
.small { font-size:8pt; font-family: Verdana, 굴림; }
.o_line1 {font-family: tahoma;font-size:9pt;color:464646;padding:3 0 0 0;height:28px;border-width:0 0 1 0;border-color:F0F0F0;border-style:solid; }
</STYLE>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0" style='padding-top:3px'><tr><td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<table width="100%" cellspacing="0" cellpadding="0">
<!--<tr><td height=1 bgcolor=#F5F5F5></td></tr> -->
<tr><td height=32 bgcolor=#ffffff style='word-break:break-all; border:5px solid #EBEBEB; padding-top:4px'> <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?=$view[subject]?></td></tr>
<tr><td height=24 style='padding-top:4px'> <font color=#7A8FDB></font><?=$view[name]?>
<? if ($is_ip_view) { echo "<span style='font-family:tahoma; font-size:8pt;color:#737373; '> ($ip)"; } ?>
<font color=#7A8FDB>Date</font> : <?=substr($view[wr_datetime],2,14)?>
<font color=#7A8FDB>Hit</font> : <?=$view[wr_hit]?>
<? if ($is_good) { ?><font color=#7A8FDB>Vote</font> : <?=$view[wr_good]?> <?}?>
<? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?> <?}?></span></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<? if ($trackback_url) { ?>
<tr><td height=24 style='padding-top:4px'> 트랙백 주소 : <a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str)
{
if (g4_is_gecko)
prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
else if (g4_is_ie) {
window.clipboardData.setData("Text", str);
alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
}
}
</script></td></tr>
<?}?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
if ($view[file][$i][source] && !$view[file][$i][view])
{
$cnt++;
//echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : <span style='font-family:tahoma; font-size:8pt;color:#737373; '>{$view[file][$i][download]}, {$view[file][$i][datetime]}</span></a></td></tr>";
}
}
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank>{$link}</strong> ({$view[link_hit][$i]})</a></td></tr>";
}
}
?>
<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<tr>
<td height="10" style='word-break:break-all; padding:10px; border:1px solid #F5F5F5;' bgcolor=#FFFFFF>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<span class="ct lh"><?=$view[content];?></span>
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<div align=right>
<table>
<tr>
<td width=></td>
<td style='word-break:break-all; padding:0px; border:1px solid #DBDBDB;' bgcolor=#FCFCFC>
<? if ($is_signature) { echo "<br> $signature <br><br>"; } // 서명 출력 ?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table><br>
<?
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td></tr></table><br>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
//window.onload = resize_image;
function file_download(link, file)
{
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href = link;
}
</script>
<!-- 게시글 보기 끝 -->
여기서 어디를 수정 해야 하나요?