Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Special java effects not showing up

  • 3 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: cor-el

more options

Going to my band's website thru Foxfire.. I installed some java that gives the effect of stars moving in the background.. It show up in other browsers but not Foxfire..

Going to my band's website thru Foxfire.. I installed some java that gives the effect of stars moving in the background.. It show up in other browsers but not Foxfire..

모든 댓글 (3)

more options

What page?

more options

The first page.. home page.. On IE and Chrome there's the effect of stars moving in the background.. on Mozilla Foxfire there's just black background.. Thanks!!

www.4evererin.com

more options

That script isn't working in Firefox.
You can't have multiple IDs si and address them via si[i]
You need to use a similar construction as for Netscape and add the index to the ID (si0-siXX)and use document.getElementById('si'+i)

I don't think that there are much users with a Netscape browser, so you can leave out all that ns code and use code that modern browsers understand.


for (i = 0; i < SmallStars; i++) {
document.write('<div id="si'+i+'" style="position:absolute;top:0;left:0;width:1px;height:1px;background:#fffff0;font-size:1px"></div>');
}

function fly() {
.....
document.getElementById('li'+i).style.left = LargeXpos[i];
document.getElementById('li'+i).style.top = LargeYpos[i] + hscrll;
.....
document.getElementById('si'+i).style.left = SmallXpos[i];
document.getElementById('si'+i).style.top = SmallYpos[i]+hscrll;
.....
setTimeout('fly()', 10);
}