PDA

View Full Version : Time and date



JGoudge87
06-10-2007, 05:11 AM
Is there a way to put the time and date on my website? If so, how?

larazovich
06-10-2007, 05:17 AM
Is there a way to put the time and date on my website? If so, how?
I think there will be something here you can use for that:
http://www.dynamicdrive.com/dynamicindex6/

JGoudge87
06-10-2007, 06:14 AM
I am having a bit of trouble, would you mind taking a couple of minutes to describe what i should be diting and so forth?

larazovich
06-10-2007, 06:19 AM
sure. are you just looking for a way to put a time and date on your site?

larazovich
06-10-2007, 06:22 AM
http://www.timeanddate.com/clocks/free.html (http://http://www.timeanddate.com/clocks/free.html)
If you follow this link you can configure a clock.
then copy the html it makes for you
then put the html you copy into an html box where you want it on your site and there you go

LadyEye
06-10-2007, 10:09 AM
<FONT style="FONT-SIZE:10pt" color="#FFFFFF" face="Georgia"><b>
<script language="JavaScript" type="text/javascript">
<!--
var
month = new Array();
month[0]="January";
month[1]="February";
month[2]="March";
month[3]="April";
month[4]="May";
month[5]="June";
month[6]="July";
month[7]="August";
month[8]="September";
month[9]="October";
month[10]="November";
month[11]="December";
var
day = new Array();
day[0]="Sunday";
day[1]="Monday";
day[2]="Tuesday";
day[3]="Wednesday";
day[4]="Thursday";
day[5]="Friday";
day[6]="Saturday";
today = new Date();
date = today.getDate();
day = (day[today.getDay()]);
month = (month[today.getMonth()]);
year = (today.getFullYear());
suffix = (date==1 || date==21 || date==31) ? "st" : "th" &&
(date==2 || date==22) ? "nd" : "th" && (date==3 || date==23) ? "rd" : "th"
function print_date()
{
document.write(day + "," + "&nbsp;" + date + "<sup>" + suffix + "</sup>" + "&nbsp;" +
month + "," + "&nbsp;" + year);
}
// -->
</script>
<script>
<!--
print_date();
//-->
</script>



Copy the above script into an html box and place on your page .... you can change the font size and color code ...

JGoudge87
06-10-2007, 02:21 PM
Thanks for all of your quick and helpful responses!

Thank you

melody
06-11-2007, 07:35 PM
I tried copying and pasting the code...I clicked on html, pasted the code, tried to preview in my browser...nothing. Then I published my site to see if the date/time would show up, nothing.

melody
06-11-2007, 07:54 PM
Okay, i found it, but once i copied the code you have above it centered it on the bottom of the page. Which portion of the code can i change to allow me to place it anywhere i want on the page?

Vasili
06-12-2007, 03:33 AM
Okay, i found it, but once i copied the code you have above it centered it on the bottom of the page. Which portion of the code can i change to allow me to place it anywhere i want on the page?It seems that you did not copy the script into a HTML box as directed. Unconfined scripts (those not copied into "boxes" but pasted onto the page itself) will always present at the top of the page wherever page coding itself allows.

Delete it from your BV page as is, click the icon for a HTML box, double-click that box, and copy the script entirely into it.

>> You can re-shape the html box to approximate the size you wish the script to appear, but keep in mind the only real reference that is useful is the top-left corner of the HTML box, which corresponds to the X-Y axis point of your BV page: scripts are not bound to present within the HTML box per se, but can be placed/moved upon your BV page with this X-Y reference point a "box" provides --- all scripts perform as they were written (not as you simply "intend"), so being able to place/move them with a single reference/reform point is extremely useful. You will figure this out by needing to move the box until your script is in the exact place you desire.