웹디자인을 하고있는 사회 초년생 입니다.ㅠ
이미지 위에 마우스를 올리면
요런이미지가 뜨면서 기존 이미지 위에 투명하게 덮이게 하고 싶어요 ㅠㅠ(쿠팡 가격표 이미지위에 롤오버 되듯이요)
아직 가야할 길이 많은데 벌써부터 뙇뙇 막히네요 ㅠㅠ 고수님들 도와주세요 ㅠㅠ
댓글 4개
jquery의 .hover() 메소드를 이용하는 방법도 있습니다.^^
페이지에 <script src="http://code.jquery.com/jquery-latest.min.js"></script> 를 넣어주시고요..
아래 소스를 활용해서 만들어보셔요~
<script>
$(document).ready(function(){
$('div.마우스올릴div명').hover(
function()
{
$("img.아이콘이미지클래스명").show();
},
function()
{
$("img.아이콘이미지클래스명").hide();
});
});
</script>
http://sir.co.kr/bbs/board.php?bo_table=pg_tip&wr_id=10977&sca=&sfl=wr_subject%7C%7Cwr_content&stx=hover
여기에도 소스가 있네요..
페이지에 <script src="http://code.jquery.com/jquery-latest.min.js"></script> 를 넣어주시고요..
아래 소스를 활용해서 만들어보셔요~
<script>
$(document).ready(function(){
$('div.마우스올릴div명').hover(
function()
{
$("img.아이콘이미지클래스명").show();
},
function()
{
$("img.아이콘이미지클래스명").hide();
});
});
</script>
http://sir.co.kr/bbs/board.php?bo_table=pg_tip&wr_id=10977&sca=&sfl=wr_subject%7C%7Cwr_content&stx=hover
여기에도 소스가 있네요..
발코딩 한번 해봤습니다. 돌아갈진 모르겠네요.
$(function(){
var $overimg = $("<img>").addClass('over').attr('src','http://kinimage.naver.net/20140924_232/1411549767211aizkB_PNG/over.png').css('opacity',0.5);
var $target = $("#main_logo").parent();
$target.hover(
function(){
var t_w = $target.find("img").width();
var t_h = $target.find("img").height();
$overimg.css({
'height':t_h,
'width':t_w
})
$target.append($overimg)
}
,function(){
$(".over").remove();
}
)
})
$(function(){
var $overimg = $("<img>").addClass('over').attr('src','http://kinimage.naver.net/20140924_232/1411549767211aizkB_PNG/over.png').css('opacity',0.5);
var $target = $("#main_logo").parent();
$target.hover(
function(){
var t_w = $target.find("img").width();
var t_h = $target.find("img").height();
$overimg.css({
'height':t_h,
'width':t_w
})
$target.append($overimg)
}
,function(){
$(".over").remove();
}
)
})
게시글 목록
| 번호 | 제목 |
|---|---|
| 8050 | |
| 8048 | |
| 19969 |
MySQL
mysql 상태를 확인 하는 방법
|
| 19968 |
MySQL
mysql 실시간 processlist
|
| 19967 | |
| 19966 | |
| 19965 |
MySQL
mysql 일반적인 최적화 팁
|
| 19964 |
기타
간단한 리눅스 명령어
|
| 19963 | |
| 19962 |
MySQL
mysql 데이터 경로 바꾸기
|
| 19961 |
MySQL
mysql 운영팁. 느린 쿼리를 발견하기
|
| 28345 | |
| 31017 | |
| 19960 | |
| 19959 |
MySQL
mysql index에 대해..
|
| 19958 |
MySQL
구분자는 enum으로
|
| 19957 |
MySQL
mysql zerofill에 대해
|
| 8039 | |
| 8035 | |
| 8029 | |
| 28344 | |
| 28339 | |
| 8019 | |
| 28338 | |
| 8017 | |
| 8010 | |
| 8007 | |
| 8004 | |
| 8003 | |
| 28332 | |
| 28322 | |
| 7999 | |
| 28317 | |
| 20956 | |
| 7992 | |
| 20945 | |
| 28314 | |
| 20936 | |
| 20931 | |
| 7986 | |
| 20925 | |
| 7982 | |
| 7979 | |
| 7978 | |
| 7975 | |
| 28307 | |
| 7973 | |
| 7966 | |
| 28305 | |
| 7963 | |
| 28300 | |
| 7961 | |
| 28297 | |
| 28295 | |
| 7959 | |
| 19948 | |
| 19947 | |
| 28292 | |
| 31016 | |
| 19946 | |
| 19945 | |
| 28286 | |
| 7958 | |
| 7956 | |
| 7952 | |
| 7946 | |
| 28285 | |
| 28283 | |
| 19943 | |
| 7944 | |
| 7936 | |
| 7931 | |
| 28279 | |
| 24666 | |
| 24663 | |
| 7928 | |
| 7923 | |
| 19941 |
MySQL
phpMyAdmin 시간 늘리기
1
|
| 28274 | |
| 28257 | |
| 28249 | |
| 28248 | |
| 7914 | |
| 7912 | |
| 7911 | |
| 20912 | |
| 7908 | |
| 31755 |
부트스트랩
부트스트랩 MIT 라이센스?
4
|
| 28233 | |
| 28232 | |
| 28228 | |
| 7903 | |
| 28217 | |
| 20900 | |
| 24662 | |
| 20891 | |
| 20882 | |
| 19936 | |
| 20853 | |
| 31011 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기