Planet Shake
You are watching the site as a guest to see everything that gets offered register for free or log in....or take a look around on the few things that you can see as a guest.....

Planet Shake

Discover Your World Here !
 
HomeHome  PortalPortal  GalleryGallery  FAQFAQ  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Current Day Code

View previous topic View next topic Go down 
AuthorMessage
jimzstone
Moderator
Moderator


Posts : 67
Points : 2885
Reputation : 2
Join date : 2009-02-19
Age : 25
Location : Laguna

Planet Shake
huo: 4

PostSubject: Current Day Code   Fri Feb 20, 2009 12:17 am

This code makes the day, month, and year display on your webpage. Were ever you decide to paste it.

Code:
<div id="Last Update">
<p>Last Update Was On<script Language="Javascript">
<!-- hide from old browsers
  function GetDay(intDay){
    var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday",
                        "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
    }

  function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
                              "April", "May", "June",
                              "July", "August", "September",
                              "October", "November", "December")
    return MonthArray[intMonth]       
    }
  function getDateStrWithDOW(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
    }
//-->
</script>
<script Language="Javascript">
<!-- hide from old browsers
    document.write(getDateStrWithDOW())
//-->
</script>
</p>
  </div>
Back to top Go down
View user profile http://www.friendster.com/12252675
darknezz
Private First Class
Private First Class


Posts : 12
Points : 2859
Reputation : 0
Join date : 2009-02-18

PostSubject: Re: Current Day Code   Fri Feb 20, 2009 12:19 am

waw nice ahahah tnx moderator
Back to top Go down
View user profile
jimzstone
Moderator
Moderator


Posts : 67
Points : 2885
Reputation : 2
Join date : 2009-02-19
Age : 25
Location : Laguna

Planet Shake
huo: 4

PostSubject: Re: Current Day Code   Fri Feb 20, 2009 12:20 am

np Very Happy by the way just call me Jim Very Happy
Back to top Go down
View user profile http://www.friendster.com/12252675
Sponsored content




PostSubject: Re: Current Day Code   Today at 8:56 pm

Back to top Go down
 
Current Day Code
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Silenium IDE code for selecting and ajax autopopulate dropdown item
» 'Play Current Test Case' button not support to Ruby language.
» Export IDE code to JUNIT4, edit and import back to IDE
» How do I get the current day, month & year in Selenium IDE?
» How to parameterize with "today's date" with IDE

Permissions in this forum:You cannot reply to topics in this forum
Planet Shake :: Tutorials :: Scripting-
Jump to:  
Free forum | © phpBB | Free forum support | Contact | Report an abuse | Free forum