1
에서 작동하지 않습니다 : 여기온 클릭 버튼이 코드가 파이어 폭스
<H4>
<b>
<span style="color:blue;cursor:pointer" onclick="showImage(6)">test</span>
</b>
</H4>
<BR>
그리고 내 자바 스크립트 코드는 다음과 같습니다
function showImage(id){
if(id==4){
$("image4").style.display = '';
$("image5").style.display = 'none';
$("image6").style.display = 'none';
}else if(id==5){
$("image4").style.display = 'none';
$("image6").style.display = 'none';
$("image5").style.display = '';
}else{
$("image4").style.display = 'none';
$("image6").style.display = '';
$("image5").style.display = 'none';
}
내 onclick
버튼을 당신이 할 수있는, 파이어 폭스에서하시기 바랍니다 작동하지 않습니다 도와주세요?
가 작동하지 않습니다이 오류 메시지도 문제가 설명되지 않습니다 시도 할 수 있습니다. – PeeHaa
'$ '는 어디에서 왔습니까? 그것은 jQuery 또는'document.getElementById'입니까? 함수가 끝나면'}'을 잃어 버렸습니다. – Eric
$ ("imageX")를 사용하는 것이 훨씬 쉽습니다. hide(); 또는 $ ("imageX"). show(); – jtheman