최근게시물..가로 사이즈 늘릴려면 어떻게 해야하나요?> 정보
최근게시물..가로 사이즈 늘릴려면 어떻게 해야하나요?>
관련링크
http://ckbook.ddoni.com/
163회 연결
본문
링크1에 있는 소스를 사용했는데요..
---------------------------------------------------------------------
<?php
$VAR['today'] = date('Ymd');
$VAR['select'] = date('Ym');
if(preg_match('/^[0-9]{6}$/', $_GET['select']) == true && checkdate(substr($_GET['select'], 4, 2), 1, substr($_GET['select'], 0, 4)) == true) $VAR['select'] = $_GET['select'];
$VAR['timestamp'] = strtotime($VAR['select'] . '01');
$VAR['weekday'] = date('w', $VAR['timestamp']);
$VAR['count'] = date('t', $VAR['timestamp']) + $VAR['weekday'] + 1;
$VAR['path'] = "{$g4['bbs_path']}/board.php?bo_table={$bo_table}";
?>
<link rel="stylesheet" type="text/css" href="<?php echo $latest_skin_path; ?>/css/schedule.skin.css" />
<script type="text/javascript" src="<?php echo $latest_skin_path; ?>/js/schedule.skin.js" charset="<?php echo $g4['charset']; ?>"></script>
<center class="G4_SCHEDULE">
<p>
<a href="<?php echo phpself('select', date('Ym', strtotime('-1 month', $VAR['timestamp']))); ?>"><img src="<?php echo $latest_skin_path; ?>/img/b_prev.gif" border=0 alt="이전달" /></a>
<a href="<?php echo $VAR['path'] . "&schedule_ym={$VAR['select']}"; ?>"><strong><?php echo date('Y년 m월', $VAR['timestamp']); ?></strong></a>
<a href="<?php echo phpself('select', date('Ym', strtotime('+1 month', $VAR['timestamp']))); ?>"><img src="<?php echo $latest_skin_path; ?>/img/b_next.gif" border=0 alt="다음달" /></a>
</p>
<table>
<tr>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_sunday.gif" alt="일" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_monday.gif" alt="월" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_tuesday.gif" alt="화" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_wednesday.gif" alt="수" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_thursday.gif" alt="목" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_friday.gif" alt="금" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_saturday.gif" alt="토" /></td>
</tr>
<tr>
<?php
for($i = $row = 1; $i < $VAR['count']; $i++, $row++)
{
$date = $i - $VAR['weekday'];
if($date < 1) echo '<td></td>';
else
{
echo "<td class=\"";
$wr_1 = $VAR['select'] . sprintf('%02d', $date);
if($VAR['today'] == $wr_1) echo 'bold';
$schedule = null;
$query = sql_query("SELECT wr_id, wr_subject FROM {$write_table} WHERE wr_1 = '{$wr_1}' AND wr_is_comment = 0");
while($result = mysql_fetch_array($query))
{
$schedule .= "<p><a href=\"{$VAR['path']}&wr_id={$result['wr_id']}\">{$result['wr_subject']}</a></p>";
}
if($schedule)
{
$schedule = "<div class=\"relative\"><div id=\"{$bo_table}_schedule_{$i}\" class=\"schedule\" onmouseover=\"schedule('{$bo_table}_schedule_{$i}', 'block');\" onmouseout=\"schedule('{$bo_table}_schedule_{$i}', 'none');\">{$schedule}</div></div>";
echo "color\" onmouseover=\"schedule('{$bo_table}_schedule_{$i}', 'block');";
}
echo "\">{$schedule}<div>{$date}</div></td>";
}
if($row > 0 && $row % 7 == 0 && $row < $VAR['count']) echo '</tr><tr>';
}
$count = 7 - ($row % 7);
if($count != 7)
{
for($i = 1; $i <= $count; $i++) echo '<td></td>';
}
?>
</tr>
</table>
</center>
---------------------------------------------------------------------
최근게시물 소스입니다.
링크2의 우측 하단에는.. 적용된 것이구요..
28일 날짜에 마우스를 올리면 일정이 나오는데.. 글자가 좀 길어지면.. 가로가 두줄 세줄로 나와버리네요..
가로 길이를 임의로 조절하고 싶은데.. 어떻게 해야하나요?ㅠㅠ
아무리 소수를 봐도 모르겠어요.ㅠㅠ
---------------------------------------------------------------------
<?php
$VAR['today'] = date('Ymd');
$VAR['select'] = date('Ym');
if(preg_match('/^[0-9]{6}$/', $_GET['select']) == true && checkdate(substr($_GET['select'], 4, 2), 1, substr($_GET['select'], 0, 4)) == true) $VAR['select'] = $_GET['select'];
$VAR['timestamp'] = strtotime($VAR['select'] . '01');
$VAR['weekday'] = date('w', $VAR['timestamp']);
$VAR['count'] = date('t', $VAR['timestamp']) + $VAR['weekday'] + 1;
$VAR['path'] = "{$g4['bbs_path']}/board.php?bo_table={$bo_table}";
?>
<link rel="stylesheet" type="text/css" href="<?php echo $latest_skin_path; ?>/css/schedule.skin.css" />
<script type="text/javascript" src="<?php echo $latest_skin_path; ?>/js/schedule.skin.js" charset="<?php echo $g4['charset']; ?>"></script>
<center class="G4_SCHEDULE">
<p>
<a href="<?php echo phpself('select', date('Ym', strtotime('-1 month', $VAR['timestamp']))); ?>"><img src="<?php echo $latest_skin_path; ?>/img/b_prev.gif" border=0 alt="이전달" /></a>
<a href="<?php echo $VAR['path'] . "&schedule_ym={$VAR['select']}"; ?>"><strong><?php echo date('Y년 m월', $VAR['timestamp']); ?></strong></a>
<a href="<?php echo phpself('select', date('Ym', strtotime('+1 month', $VAR['timestamp']))); ?>"><img src="<?php echo $latest_skin_path; ?>/img/b_next.gif" border=0 alt="다음달" /></a>
</p>
<table>
<tr>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_sunday.gif" alt="일" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_monday.gif" alt="월" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_tuesday.gif" alt="화" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_wednesday.gif" alt="수" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_thursday.gif" alt="목" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_friday.gif" alt="금" /></td>
<td><img src="<?php echo $latest_skin_path; ?>/img/i_saturday.gif" alt="토" /></td>
</tr>
<tr>
<?php
for($i = $row = 1; $i < $VAR['count']; $i++, $row++)
{
$date = $i - $VAR['weekday'];
if($date < 1) echo '<td></td>';
else
{
echo "<td class=\"";
$wr_1 = $VAR['select'] . sprintf('%02d', $date);
if($VAR['today'] == $wr_1) echo 'bold';
$schedule = null;
$query = sql_query("SELECT wr_id, wr_subject FROM {$write_table} WHERE wr_1 = '{$wr_1}' AND wr_is_comment = 0");
while($result = mysql_fetch_array($query))
{
$schedule .= "<p><a href=\"{$VAR['path']}&wr_id={$result['wr_id']}\">{$result['wr_subject']}</a></p>";
}
if($schedule)
{
$schedule = "<div class=\"relative\"><div id=\"{$bo_table}_schedule_{$i}\" class=\"schedule\" onmouseover=\"schedule('{$bo_table}_schedule_{$i}', 'block');\" onmouseout=\"schedule('{$bo_table}_schedule_{$i}', 'none');\">{$schedule}</div></div>";
echo "color\" onmouseover=\"schedule('{$bo_table}_schedule_{$i}', 'block');";
}
echo "\">{$schedule}<div>{$date}</div></td>";
}
if($row > 0 && $row % 7 == 0 && $row < $VAR['count']) echo '</tr><tr>';
}
$count = 7 - ($row % 7);
if($count != 7)
{
for($i = 1; $i <= $count; $i++) echo '<td></td>';
}
?>
</tr>
</table>
</center>
---------------------------------------------------------------------
최근게시물 소스입니다.
링크2의 우측 하단에는.. 적용된 것이구요..
28일 날짜에 마우스를 올리면 일정이 나오는데.. 글자가 좀 길어지면.. 가로가 두줄 세줄로 나와버리네요..
가로 길이를 임의로 조절하고 싶은데.. 어떻게 해야하나요?ㅠㅠ
아무리 소수를 봐도 모르겠어요.ㅠㅠ
댓글 전체
schedule.skin.css 파일에서
.G4_SCHEDULE table tr td div.relative{position:relative;}
이부분에서 폭을 정의해주면 될거같아요
.G4_SCHEDULE table tr td div.relative{position:relative;}
이부분에서 폭을 정의해주면 될거같아요
감사합니다.^^;
그 아래줄것 수정하니 되네요^^;
참..그리고 지금 보시면.. 일정들을 3개정도 등록을 했는데..
이것이.. 제목에 마우스를 올렸다가 아웃을 해야 사라지는데..
혹시 다른일정으로 가면 사라지게 하는 방법이 있을까요?
그 아래줄것 수정하니 되네요^^;
참..그리고 지금 보시면.. 일정들을 3개정도 등록을 했는데..
이것이.. 제목에 마우스를 올렸다가 아웃을 해야 사라지는데..
혹시 다른일정으로 가면 사라지게 하는 방법이 있을까요?
schedule.skin.js이 파일을 적정하게 수정을 하시면 될듯 합니다.
내용을 보닌깐 무조건 디스플레이되게 되어 있네요
검색싸이트에서 메뉴스크립트나 마우스 스크립트를 찾아 보시면 충분히 찾을 수 있습니다.
내용을 보닌깐 무조건 디스플레이되게 되어 있네요
검색싸이트에서 메뉴스크립트나 마우스 스크립트를 찾아 보시면 충분히 찾을 수 있습니다.
어떤방법으로요 ?
감사합니다