displaying date

They have: 406 posts

Joined: Feb 2000

hello,

I am just trying to display the date on my page. I can do it, its just not the size i want it..Does anyone have the script to display the date the same size and same color like on www.go.com

Best Regards,

Adam Lee
DigitalONE Design
President - Internet Division
[email protected]
digitalonedesign.com

They have: 488 posts

Joined: Feb 2000

Try this script:

............................................
<FONT COLOR="#FFFFFF" FACE="ARIAL" SIZE=1>
<SCRIPT LANGUAGE=Javascript>
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var monthname =
new Array ("January","February","March","April","May","June","July","August","September","October","November","December" );
document.write(dayname[day] + ", ");
document.write(monthname[month] + " ");

if (date< 10) document.write("0" + date + ", ");
else document.write(date + ", ");
document.write(year + " <font color=000000>");
document.write("</font>");
</SCRIPT>
</FONT>

.............................................

Control the color,font size or bold like this:

<FONT COLOR="#FF0000" FACE="ARIAL" SIZE=2 >
<B>
<SCRIPT>
the code
</SCRIPT>
</B>
</FONT>
If you need to display the format like go.com, just use <BR> on the script.

To select color go to my site and use the background color code for your text color. http://www.unitronics.com/1color.htm

This script will give the date, month and year on the user's browser when they login to your site.(based on the user's cpu data )

Hope this helps.

NSS http://www.unitronics.com

[This message has been edited by NSS (edited 19 February 2000).]

[This message has been edited by NSS (edited 19 February 2000).]

[This message has been edited by NSS (edited 19 February 2000).]

[This message has been edited by NSS (edited 19 February 2000).]

They have: 406 posts

Joined: Feb 2000

Hello,

Thanks for your help. I got the date and everything on my site except its in black not white. Use said to control the text color and font to use this script..

<FONT COLOR="#FF0000" FACE="ARIAL" SIZE=2 >
<B>
<SCRIPT>
the code
</SCRIPT>
</B>
</FONT>

Where do i place that script to get my date white? Thanks for your help.

Adam

PS- You would know how to make it so when you scroll over a word, it underlines? Similar to the text at www.cdw.com
Thanks again!!

Best Regards,

Adam Lee
DigitalONE Design
President - Internet Division
[email protected]
digitalonedesign.com

They have: 488 posts

Joined: Feb 2000

Change the text color to white like this:

<FONT COLOR="#FFFFFF" FACE="ARIAL" SIZE=2 >
<B>
<SCRIPT>
the code
</SCRIPT>
</B>
</FONT>

NSS

They have: 488 posts

Joined: Feb 2000

I have edited the script, just copy the script inside the dotted lines.

It will have a white text, change to SIZE=2 if you need a larger size.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.