http://www.dynamicdrive.com/dynamicindex6/countingup.htm I would like to change the font color to red, is this possible?
Thanks
http://www.dynamicdrive.com/dynamicindex6/countingup.htm I would like to change the font color to red, is this possible?
Thanks
Try changing:
To:Code:.dcountstyle{ /*Example CSS to style count up output*/ font: bold 16px Arial; padding: 3px; }
Code:.dcountstyle{ /*Example CSS to style count up output*/ font: bold 16px Arial; padding: 3px; color: red; }
Jeremy | jfein.net
That changes Date Line
how about Top Line Text
Prince Charles and Camilla Parker have been married for:
Change:
To:Code:mycountainer.innerHTML="Prince Charles and Camilla Parker have been married for:"+ result['days']+" days "+result['hours']+" hours "+result['minutes']+" minutes
Code:mycountainer.innerHTML="<span style='color:red'>Prince Charles and Camilla Parker have been married for:</span>"+ result['days']+" days "+result['hours']+" hours "+result['minutes']+" minutes
Jeremy | jfein.net
Prince Charles and Camilla Parker have been married for (is now red)
1773 days 2 hours 27 minutes 56 seconds Has gone backto black
Both need to be red
If you do both of what Nile suggested, that is, change the CSS:
plus make the necessary changes inside the output to include the part in red:Code:.dcountstyle{ /*Example CSS to style count up output*/ font: bold 16px Arial; padding: 3px; color: red; }
That should do it.Code:mycountainer.innerHTML="<span style='color:red'>Prince Charles and Camilla Parker have been married for: <br /><span class='dcountstyle'>"+result['days']+" <sup>days</sup> "+result['hours']+" <sup>hours</sup> "+result['minutes']+" <sup>minutes</sup> "+result['seconds']+" <sup>seconds</sup></span></span>"
DD Admin
GunSlinger (02-16-2010)
Bookmarks