| |
talentscout
Posts: 1
Score: 0
Joined: 7/5/2008
Status: offline
|
hey guys i'm having a problem displaying a script. In firefox, it looks just the way I want it to. Here it is However, this is what it looks like in Internet Explorer Here is the code is there a certain code of color that will make it clear? i removed the color and it comes up clear in firefox(what i want), but it comes up white in internet explorer. <body bgcolor="" topmargin="0" marginheight="0" leftmargin="0" marginwidth="0"> <script> var cause=new Array() // delete or add new death-causes like this: // cause[x]="cause of death|number of deaths per year" cause[0]="<strong>Total Cases of Identity Theft</strong>|10000000" cause[1]="<strong>Credit Card Fraud</strong>|2000000" cause[2]="<strong>Identity Cloning</strong>|1000000" cause[3]="<strong>Check Forgery</strong>|3000000" cause[4]="<strong>Mail Order Fraud</strong>|1500000" cause[5]="<strong>Bank Wire Fraud</strong>|2500000" // font var thisfont="Geneva" // font-size var thissize=11 // font-color var thiscolor="#ffffff" // font of title var titlefont="Times New Roman" // font-size of title var titlesize=15 // font-color var titlecolor="#ffffff" // backgroundcolor title var titlebg="" // backgroundcolor id counter var bg="" // do not edit below this line var t = 0 var enterTime = new Date() var enterTime = Math.floor(enterTime.getTime()/1000) var secyear=31536000 var rowflag=false var i_causes=0 if (document.getElementById) { initdisplay() } function initdisplay() { document.write('<TABLE BORDER=0 CELLSPACING=9 CELLPADDING=0 bgcolor="'+bg+'">') document.write('<tr valign=top>') document.write('<td colspan=4 style="font-family:'+titlefont+';font-size:'+titlesize+'pt;color:'+titlecolor+';background-color:'+titlebg+'" id="titlecell" align=center>') document.write(' Realtime Death counter: Deaths within the last 0 seconds') document.write('</td></tr>') document.write('<tr valign=top>') document.write('<td colspan=2>') document.write(' ') document.write('</td></tr>') document.write('<tr valign=top>') document.write('<td><TABLE BORDER=0 CELLSPACING=3 CELLPADDING=0>') for (i=0; i<=(cause.length)/3; i++) { var content=cause.split("|") document.write('<tr valign=top>') document.write('<td align=right id="cell'+i+'" style="font-family:'+thisfont+';font-size:'+thissize+'pt;color:'+thiscolor+'">') document.write('empty') document.write('</td>') document.write('<td>') document.write(' ') document.write('</td>') document.write('<td align=left style="font-family:'+thisfont+';font-size:'+thissize+'pt;color:'+thiscolor+'">') document.write(content[0]+" ") document.write('</td>') document.write('</tr>') i_causes++ } document.write('</TABLE></td>') document.write('<td> </td>') document.write('<td><TABLE BORDER=0 CELLSPACING=3 CELLPADDING=0>') for (i=i_causes; i<=cause.length-1; i++) { var content=cause.split("|") document.write('<tr valign=top>') document.write('<td align=right id="cell'+i+'" style="font-family:'+thisfont+';font-size:'+thissize+'pt;color:'+thiscolor+'">') document.write('empty') document.write('</td>') document.write('<td>') document.write(' ') document.write('</td>') document.write('<td align=left style="font-family:'+thisfont+';font-size:'+thissize+'pt;color:'+thiscolor+'">') document.write(content[0]+" ") document.write('</td>') document.write('</tr>') } document.write('</TABLE></td></TABLE>') } function docounter() { var now = new Date() var now=Math.floor((now.getTime()/1000)) var hereSince = now - enterTime for (i=0; i<=cause.length-1; i++) { var content=cause.split("|") content[1]=Math.floor(content[1]/secyear*hereSince) document.getElementById('cell'+i).innerHTML=content[1] document.getElementById('titlecell').innerHTML=" Identity Theft Victims in the last "+hereSince+" seconds" } var setT = setTimeout("docounter()",1000) } function showNr(zahlProSec,hereSi,gifNa) { var zahlSince = ""+Math.floor(hereSi*zahlProSec) var rechtsPos = 9 - zahlSince.length-1 for (i=0; i<= zahlSince.length-1; i++) { document.images[gifNa+(i+rechtsPos)].src = "z"+zahlSince.charAt(i)+".gif" } } if (document.getElementById) { window.onload=docounter } </script> </body> </html> Is there any way to get rid of the white background in internet explorer? thanks guys
|
|