hover 이미지 효과를 쓰고 싶습니다! 정보
jQuery hover 이미지 효과를 쓰고 싶습니다!본문
http://mattbango.com/demos/hover-zoom/
이 사이트를 보니 크롬에서는 마우스가 올라갔을 때 글자가 나오면서 색상이 그레이로 바뀌는데요
익스플로러에서는 먹지 않네요.
여기에 적절한 IE 핵이 있는지 궁금합니다. ^^;
추천
0
0
댓글 1개
$(function() {
$(".object").hover(function() {
$(this).attr("style", "background-color: gray");
$(this).hide();
$(this).html("글씨등장");
$(this).fadeIn(500);
}, function() {
$(this).fadeOut(500);
$(this).html("");
$(this).attr("style", "");
$(this).show();
});
});
이런식으로 짜시면 될거 같아요. 모든 브라우저에서 동일하게 먹더라구요.
$(".object").hover(function() {
$(this).attr("style", "background-color: gray");
$(this).hide();
$(this).html("글씨등장");
$(this).fadeIn(500);
}, function() {
$(this).fadeOut(500);
$(this).html("");
$(this).attr("style", "");
$(this).show();
});
});
이런식으로 짜시면 될거 같아요. 모든 브라우저에서 동일하게 먹더라구요.