0
난 그냥 JQuery와 내용을 시작하고 다음과 같은 효과 도움을 사용할 수
위시리스트 : 사용자가 ".blue_box"를 클릭 슬라이드 효과가 있습니다 (요소가 위로 이동하여 정보를 나타냅니다). 사용자가 ".blue_box"에서 마우스를 움직이면 다른 슬라이드 효과 (슬라이드 된 요소가 이전 위치로 다시 슬라이드됩니다)가 나타납니다.
현재 상태 : 내 코드에는 슬라이드 업 및 슬라이드 다운 효과 모두에 대한 클릭 이벤트가 있습니다. 당신이 제공 할 수있는 모든 도움에 미리
JQuery와
<script>
$(document).ready(function() {
$('.blue_box').click(function(){
$('.caption',this).slideToggle('slow');
}, function(){
$('.caption',this).slideToggle('slow');
});
});
</script>
HTML
<div class="dyslexia_link img_frame col span_4">
<div class="blue_box">
<h3>What is Dyslexia</h3>
<div class="caption">
<p>Dyslexia is a medical problem with an educational solution. By providing a style
of teaching that meets the unique learning needs of students with dyslexia, these
bright children can go on to achieve their highest academic potential.</p>
<a href= "http://riversideschool.rpmdevserver.com/what-is-dyslexia/"><h2 class="learn_btn_home">LEARN MORE</h2></a>
</div>
</div>
</div>
감사합니다!
이 – Spartacus
HTML이 추가되었습니다 당신의 HTML을 게시하시기 바랍니다 놓아야합니다. – sanzanobi