c

마우스 오버시 나오게 할려면 어떻게하나요?

그누보드 질문에도 올렸는데.. 이건 제이쿼리 문제인것것같아 여기로 다시올립니다.
 
http://best.milkyxy.milkyxy.gethompy.com/nbbs/index1.php

최근 게시물 설치했는데요..
마우스 클릭시 큰이미지 나오는게아니라 오버시 나오게끔했음좋겠는데.. 어떻게 수정해야하나요?




<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$img_width = 739; //큰 썸네일 가로
$img_height = 391; //큰 썸네일 세로
$img_quality = 100; //썸네일 퀄리티

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_big4';
$ym = date("ym", $g4[server_time]);

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);

//코멘트와 리플글은 제외
$sql = " select * from $tmp_write_table
where wr_comment = '' and wr_reply = ''
order by wr_id DESC LIMIT 0, 1 ";
$result = sql_query($sql);
$last_con = sql_fetch_array($result);
?>

<link rel="stylesheet" type="text/css" href="<?=$latest_skin_path?>/style.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script>

<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});


</script>

<h4><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=$latest_title?></a></h4>

<div id="featured" >
<ul class="ui-tabs-nav">
<?
for ($i=0; $i<count($list); $i++) {
$j = $i + 1;
if ($j == "1") {
$selected='ui-tabs-selected';
} else {
$selected='';}
//썸네일 생성
$thumfile = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
// 썸네일 이미지가 존재하지 않는다면
if (!file_exists($thumb)) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);

// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
} else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4/{$ym}/[^<>]*\.(gif|jpg|png|bmp)", $edit_img, $tmp)) { // data/geditor------
$file = './' . $tmp[0]; // 파일명
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);

// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
}

if (file_exists($thumb))
$thumfile = "$thumb";
else
//이미지가 없으면
$thumfile="$latest_skin_path/img/noimg.gif";
//이미지가 아니네
if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))
{ $thumfile = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }
?>
<li class="ui-tabs-nav-item <?=$selected?>" id="nav-fragment-<?=$j?>"><a href="#fragment-<?=$j?>"><img src="<?=$thumfile?>" alt="" width="80" height="50" ></a></li>
<? }?>
</ul>


<!-- First Content -->
<?
for ($i=0; $i<count($list); $i++) {
$thumfile2 = $thumb_path.'/'.$list[$i][wr_id];

$j = $i + 1;
if ($j == "1") {
$hide='';
} else {
$hide='ui-tabs-hide'; }
?>
<div id="fragment-<?=$j?>" class="ui-tabs-panel <?=$hide?>" style="">
<a href='<?=$list[$i][href]?>'><img src="<?=$thumfile2?>" alt="" /></a>
<div class="info" >
<h2><a href='<?=$list[$i][href]?>'><strong><?=$list[$i][subject]?></strong></a></h2>
<p><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><?=cut_str(strip_tags($list[$i][wr_content]),120,"...더보기")?></a></p>
</div>
</div>
<? }?>
</div>
</div>
|

댓글 3개

jQuery 스크립트가 나타난 부분이 확인이 안되서 자세한 설명은 어렵습니다만,
click 매서드 대신에 mouseover 매서드를 사용하시면 됩니다.
이를 테면,
$("#div").click(function() {
/* 클릭시 실행될 스크립트 */
});
->
$("#div").mouseover(function() {
/* 마우스오버시 실행될 스크립트 */
});
답변주셔서.. 감사..
어딜 고쳐야 되는지 몰라서 ㅋ
다른 플러그인 http://malsup.com/jquery/cycle/... 이쪽사이트에 비슷한게 있어서 그걸로 들에서 확인해서 교체했습니다.
css만 제대로 숙지하셔도 같은 효과를 볼 것 같은데요
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
13년 전 조회 4,129
13년 전 조회 1,265
13년 전 조회 916
13년 전 조회 583
13년 전 조회 555
13년 전 조회 1,685
13년 전 조회 1,190
13년 전 조회 2,672
13년 전 조회 825
13년 전 조회 813
13년 전 조회 658
13년 전 조회 860
13년 전 조회 583
13년 전 조회 1,025
13년 전 조회 724
13년 전 조회 929
13년 전 조회 2,406
13년 전 조회 1,517
13년 전 조회 1,535
13년 전 조회 1,386
13년 전 조회 2,105
13년 전 조회 790
13년 전 조회 665
13년 전 조회 2,005
13년 전 조회 604
13년 전 조회 621
13년 전 조회 913
13년 전 조회 650
13년 전 조회 506
13년 전 조회 870
13년 전 조회 1,010
13년 전 조회 1,030
13년 전 조회 785
13년 전 조회 1,767
13년 전 조회 959
13년 전 조회 533
13년 전 조회 775
13년 전 조회 1,374
13년 전 조회 847
13년 전 조회 489
13년 전 조회 1,029
13년 전 조회 1,413
13년 전 조회 527
13년 전 조회 509
13년 전 조회 427
13년 전 조회 749
13년 전 조회 479
13년 전 조회 942
13년 전 조회 970
13년 전 조회 1,381
13년 전 조회 570
13년 전 조회 856
13년 전 조회 4,465
13년 전 조회 1,093
13년 전 조회 429
13년 전 조회 506
13년 전 조회 662
13년 전 조회 1,131
13년 전 조회 441
13년 전 조회 1,369
13년 전 조회 1,618
13년 전 조회 485
13년 전 조회 404
13년 전 조회 557
13년 전 조회 2,164
13년 전 조회 412
13년 전 조회 558
13년 전 조회 419
13년 전 조회 424
13년 전 조회 900
13년 전 조회 1,084
13년 전 조회 429
13년 전 조회 544
13년 전 조회 982
13년 전 조회 432
13년 전 조회 1,187
13년 전 조회 1,512
13년 전 조회 3,948
13년 전 조회 941
13년 전 조회 1,156
13년 전 조회 626
13년 전 조회 555
13년 전 조회 631
13년 전 조회 996
13년 전 조회 2,204
13년 전 조회 693
13년 전 조회 1,708
13년 전 조회 1,790
13년 전 조회 2,037
13년 전 조회 793
13년 전 조회 1,065
13년 전 조회 792
13년 전 조회 910
13년 전 조회 818
13년 전 조회 673
13년 전 조회 795
13년 전 조회 872
13년 전 조회 941
13년 전 조회 1,756
13년 전 조회 464
🐛 버그신고