View Full Version : Need Help Installing Day-Date2 Script
THOPress
08-16-2002, 12:45 PM
Hey folks,
I need help installing the Day-Date2 script. I don't normally use scripts so I can't recall what to do here. When I paste it where I want the day-date to appear the code appears on the web page and obviously I don't want that to happen. Whats the trick? PLEASE HELP ME :o
THOPress
08-17-2002, 10:00 PM
Originally posted by Mark
Please post the code! :)
<script language="JavaScript">
// -- made by A1javascripts.com, please keep these credits when using this script
days = new Array(7)
days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
months = new Array(12)
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
today = new Date(); day = days[today.getDay() + 1]
month = months[today.getMonth() + 1]
date = today.getDate()
year=today.getYear();
if (year < 2000)
year = year + 1900;
document.write ("<font size=-2 face='Arial, Helvetica, sans-serif' color=003399> "+ day +
", " + month + " " + date + ", " + year + "</font>")
// -- end hiding
</script>
Thanks, I hope you can help me. :confused:
Copy and paste the whole script into the body of your page where you want the script to dispaly. Change the font face, color and size to suit the look you want, and thats all there is to it.
Good luck. :rocker:
THOPress
08-30-2002, 11:43 AM
Originally posted by Ian
Copy and paste the whole script into the body of your page where you want the script to dispaly. Change the font face, color and size to suit the look you want, and thats all there is to it.
Good luck. :rocker:
I did that but like I said in my first post the code itself if showing up on the web page, how do I prevent that from happening? Isn't there something I need to include in html to stop that from happening?
THOPress
08-30-2002, 12:16 PM
Originally posted by Ian
Copy and paste the whole script into the body of your page where you want the script to dispaly. Change the font face, color and size to suit the look you want, and thats all there is to it.
Good luck. :rocker:
Please disregard my last message, I've worked things out.
Thanks
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.