font change |
![]() ![]() |
font change |
Dec 3 2004, 11:23 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 70 Joined: May 2004 Member No: 16,677 |
uhm i want to use the birthday calender...
which is right here... CODE <!-- begin code provided by createblog.com --> <!-- begin code provided by createblog.com --> </tr><script language="JavaScript1.2"> var today = new Date; var Future0 = new Date; var BirthMonth = 6; var BirthDate = 20; var BirthYear = 1987; BirthMonth--; Future0.setMonth(BirthMonth, BirthDate); if (Date.parse(today) > Date.parse(Future0)) { Future0.setFullYear(today.getYear()+1); age = (today.getYear() - BirthYear) + 1; } else {age = today.getYear() - BirthYear;} if (age % 10 == 0) ageend = 'th'; else if (age % 10 == 4) ageend = 'th'; else if (age % 10 == 5) ageend = 'th'; else if (age % 10 == 6) ageend = 'th'; else if (age % 10 == 7) ageend = 'th'; else if (age % 10 == 8) ageend = 'th'; else if (age % 10 == 9) ageend = 'th'; else if (age % 10 == 1) ageend = 'st'; else if (age % 10 == 2) ageend = 'nd'; else if (age % 10 == 3) ageend = 'rd'; var faraevent = "<font color=#99CC33><i>my birthday</font>"; today1 = Date.parse(today); future1 = Date.parse(Future0); secleft = future1 - today1; miliday = 24 * 60 * 60 * 1000; daysleft = secleft/miliday; daysleftint = Math.round(daysleft); if (daysleftint > 1) document.write(" ", daysleftint, " days until <font color=#99CC33>my <i>", age, ageend, "</i> birthday</font>"); else if (daysleftint == 1) document.write("<font color=#99CC33>my <i>", age, ageend, "</i> birthday</font> is tomorrow"); else if (today1 == future1) document.write("<font color=#99CC33>my <i>", age, ageend, "</i> birthday</font> is today"); else document.write("passed"); </script><br> <!-- end code provided by createblog.com --> <!-- end code provided by createblog.com --> but when is shows up on my xanga you cant read it because part of the font is black and my xanga is black. i tried editing the code to make the font color white but then my xanga got all messed up so i came here for help. --> how would i change the font color to white??!!?!?!? ..thanx |
|
|
|
Dec 3 2004, 11:25 PM
Post
#2
|
|
![]() ..dewa hajimemashou ![]() ![]() ![]() Group: Member Posts: 41 Joined: Jul 2004 Member No: 35,029 |
Hmm.
|
|
|
|
Dec 3 2004, 11:27 PM
Post
#3
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
document.write(" ", daysleftint, " days until <font color=#99CC33>my <i>", age, ageend, "</i> birthday</font>");
else if (daysleftint == 1) document.write("<font color=#99CC33>my <i>", age, ageend, "</i> birthday</font> is tomorrow"); else if (today1 == future1) document.write("<font color=#99CC33>my <i>", age, ageend, "</i> birthday</font> is today"); Somewhere around there code? did you use that italic code or bold and it turns a font color black? if u did, that's prolly the problem |
|
|
|
Dec 3 2004, 11:36 PM
Post
#4
|
|
![]() Um....Its meeee ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,218 Joined: Mar 2004 Member No: 8,264 |
Try if this work?If it don't maybe the cause had to do with the italic code... |
|
|
|
Dec 8 2004, 07:47 AM
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 70 Joined: May 2004 Member No: 16,677 |
hmmm.... still not working. i want to know how to change alll of the wording into a color such as white where i can see because my background is black...
my xanga |
|
|
|
![]() ![]() |