user4fun Posted October 11, 2006 Share Posted October 11, 2006 this is a small peice from an if statmenti want the resutls of the (LostPotentialProfit) to be a bold red color including the $ sign offcourse.i am not sure how to add that in the middle of this mess. document.write(MessageD + " " + "=" + " " + "$" + Math.round(LostPotentialProfit) + "<br />"); I appreciate any helpthx Link to comment Share on other sites More sharing options...
aspnetguy Posted October 11, 2006 Share Posted October 11, 2006 document.write(MessageD + " " + "=" + " " + "$<span style=\"font-weight:bold;color:red\">" + Math.round(LostPotentialProfit) + "</span><br />"); Link to comment Share on other sites More sharing options...
user4fun Posted October 11, 2006 Author Share Posted October 11, 2006 document.write(MessageD + " " + "=" + " " + "$<span style=\"font-weight:bold;color:red\">" + Math.round(LostPotentialProfit) + "</span><br />");it works like a charm, i just moved the $ sign in sign into the font sectionTHANK YOU Link to comment Share on other sites More sharing options...
aspnetguy Posted October 11, 2006 Share Posted October 11, 2006 no problem, glad I could help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now