Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

my live space


  • Please log in to reply

#1
waterhouses

waterhouses

    New Member

  • Member
  • Pip
  • 1 posts
:whistling: hi guys;I am an old timer 66 yrs.old pretty new to computing,I have my own space on msn live somewhere on IE I found a javascript which would add dates and days plus a welcome to my site window, I have tried to insert this without success how would I do so or do you think it might be too risky?appreciate your replies, Thanks bob
java script: you can use this code to display todays date anywhere on page ,insert code where you want it to appear, enclose code between script and script tags
varDays = newArray(`sun',`mon',`teu',`wed',`thu',`fri',`sat');
varMonths = newArray(`Jan',`feb',`mar',`apr',`may',`jun',`jul',`aug',`sep',`oct',`nov',`dec',);
varDate = newDate ();
var weekDay = days[d.getDay()];
var Month = months[d.getMonth()];
var day = d.getdate();
var year = d.getyear();
var suffix = `th';
if(day==1) suffix=`st';
else if(day==2) suffix=`nd,';
else if(day==3) suffix=`rd';
document.write(weekday+',`+day+suffix+',`+month+',`+year);
Display message in status bar
window.status = `Welcome to my Site.';
to use both above codes in status bar replace document.write with window.status
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP