자바 스크립트로 일부 imgs 또는 div를 애니메이션 한 후에 더 이상 클릭 또는 호버 이벤트를 사용할 수 없습니다. 문제의 img는 "n"뒤의 4 개의 큰 거품입니다.jquery animate 후 이벤트가 더 이상 작동하지 않습니다.
나는 이것이 답을 찾을 수없는 일반적인 문제라고 확신합니다. 미리 감사드립니다!
라이브 코드 : 여기 http://jboullion.com/nebuloid/index.html
내 html로 div의 다음
<div >
<a href="javascript:link()"> <img id="bubbleOne" alt="Staff" src="images/smallbubble.png" /></a><br />
</div>
<div>
<img id="bubbleTwo" onclick="link()" alt="Mission" src="images/smallbubble.png" /><br />
</div>
<div>
<img id="bubbleThree" href="javascript:link()" alt="Games" src="images/smallbubble.png" /><br />
</div>
내 자바 스크립트 -brief 버전
$("#bubbleOne").click(function(event)
{
fadeLogo()
if (iOS == true) {
window.scroll(0,350);
}
$("#copy").html("<span id='purp'>WE ARE NEBULOID</span> <br/><br/>We want to make great video games.<br/> We want to stretch the boundaries that define what video gaming looks and feels like.<br/> We are new developers cutting our teeth, and we have very grand and exciting projects coming soon.<br/> Our biggest upcoming project is a subtle, human, and epic science fiction adventure.");
$("#mission").css("color","#8470FF");
colorHoldM = "#8470FF";
colorHoldG = "white";
colorHoldS = "white";
colorHoldC = "white";
$("#games").css("color","white");
$("#staff").css("color","white");
$("#contact").css("color","white");
});
$("#bubbleOne").hover(function(){
$("#bubbleOne").animate({
width: "175px"}, 500);
});
$("#bubbleOne").mouseout(function(){
$("#bubbleOne").animate({
width: "110px"}, 500);
});
function fadeLogo()
{
//stuff
$('#bubbleOne').delay(1000).animate({left: '+=120', top: '-=130' }, 1000);
$('#bubbleTwo').delay(1000).animate({left: '-=50', top: '-=130' }, 1500);
$('#bubbleThree').delay(1000).animate({left: '-=230', top: '-=165' }, 2000);
//stuff
}
사람은 답을 알고있다 3 개 다른 유사입니까?
당신은 * break * 옵션의 의미를 설명 할 수 있습니까? – McGarnagle
죄송합니다. 설명이 불량합니다. imgs 애니메이션을 실행 한 후에는 더 이상 클릭 또는 호버 이벤트를 사용할 수 없습니다. – Bullyen
자기가하는 것처럼 보이지만 그 전체 장치가 어떻게 동작하는지 명확하지 않습니다. 문제를 재현하기위한 단계를 제공 할 수 있습니까? – McGarnagle