내 홈페이지에서 순환되는 코드와 코드가 Firefox, Chrome 및 Safari에서 제대로 작동하지만 IExplorer에서는 정상적으로 작동하지 않는 것으로 확인되었습니다. 저는 IE 9를 실행하고 있습니다. 도움이나 통찰력을 주셔서 감사합니다.Javascript가 IE에서 작동하지 않지만 다른 모든 브라우저가 정상적으로 작동합니다.
<div class="quotes">
<div id="tst">
<div id="quote"></div>
</div>
<br><span></span>
</div>
<div class="comment"><strong>
<div id="tstperson"></div></strong>
</div>
<script type="text/javascript">
var quote=new Array();
quote[0]="An essential tool in preparation for any show. Valuable time is saved, refining vocals much earlier in the process.";
quote[1]="Invaluable for learning vocal lines! A brilliantly simple and easy to use interface that saved me hours of time.";
quote[2]="MixMyPart saved us almost a week of rehersal time. A brilliant invention. Singers come in less nervous and more focused.";
<!-- quote[3]="An invaluble tool for learning vocal lines! Brilliantly simple and easy to use interface that saved me hours of time.";
-->
var quoteperson=new Array();
quoteperson[0]="Bob Foster, <font color=\"ffffff\">Music Director</font>";
quoteperson[1]="Liam Tobin, <font color=\"ffffff\">Actor</font>";
quoteperson[2]="Shawn Wright, <font color=\"ffffff\">Actor</font>";
<!-- quoteperson[3]="Liam Tobin, <a href=\"website.html\" target=\"_blank\">website.org</a>";
-->
var speed=7000;
var q=Math.floor(Math.random()*quote.length)
function showQuote() {
document.getElementById("tst").innerHTML="“"+quote[q]+"”";
document.getElementById("tstperson").innerHTML=quoteperson[q];
q++;
if(q==quote.length) {
q=0;
}
}
showQuote();
setInterval('showQuote()',speed);
</script>
오류가 있습니까? – j08691
"작동하지 않는다"는 것은 무엇을 의미합니까? 뭐하는거야? –