Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


background color problem

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,62167
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> background color problem
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 background color problem - 7/5/2008 2:45:16 PM   
  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
 
 
Post #: 1
 
 RE: background color problem - 7/7/2008 1:40:57 AM   
  Rischip


Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
Something like this ??

style="background-color : transparent;"

_____________________________

Rischip
Author of - The Grim Linker

(in reply to talentscout)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> background color problem Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts