View Single Post
Old 06-22-2011, 11:49 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,578
Thanks: 62
Thanked 4,063 Times in 4,032 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Look at this line in the code:
Code:
function putspan(backcolor, forecolor) {
 document.write("<span id='cntdwn' style='background-color:" + backcolor + 
                "; color:" + forecolor + "'></span>");
}
What *I* would do is change that to simply:
Code:
function putspan( ) {
    document.write( '<span id="cntdwn"></span>' );
}
And then use CSS <style> to set the color, background color, font, font-size, etc., etc., on that span:
Code:
<style type="text/css">
span#cntdwn { ... your specification here ... }
</style>
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
Emiil (06-23-2011)