Education Menu

 

Features Menu

 

Additional Menu

 

Now Online

We have 157 guests online
 

@edulanka

 

Follow US

Twitter You Tube Google Plus
Pinterest Facebook EduLanka Blog

 

Information Zone

eduLanka Sinhala

Welcome to eduLanka.LK, Largest online education web site in Sri Lanka & most popular educational web site among Sri Lankan students. EduLanka, Best nonprofit & educational website is provided large numbers of online lessons, education related course information, teachers information, E books, examination result alerts, goverment job alerts, tuition class information, career guide for school leavers and more resources related to education in Sri Lanka. Edulanka provides education related resources from primary education, O-Level & A-Level education, University & Postgraduate education and vocational training education.

EduLanka IDN Domains http://එඩියුලංකා.ලංකා http://எடியுலங்கா.இலங்கை


jobs Mathematics SLAS Exam Dharma Education Results



 

Inside Online School

Share Us

Home Page Information Technology Web Development (වෙබ් අඩවි නිර්මාණය)

JavaScript Time Function
Friday, 07 January 2011 09:02

JAVA Script Time Function

//Script By Sathiska Udayanga



var d=new Date();

var NOW=d.getHours();

document.write("  <font class=date1 size=4pt  face=verdana color=#995B3E>"+d.getDate()+" &nbsp ...  </font> ");
if(NOW>20){
document.write(" <font class=date1 size=4pt  face=verdana color=#995B3E>&nbsp;&nbsp;&nbsp;  Good Night </font>");}
else if(NOW>16){
document.write(" <font class=date1 size=4pt  face=verdana color=#995B3E> &nbsp; Good Evening </font>");}
else if(NOW>11){
document.write(" <font class=date1 size=4pt face=verdana color=#995B3E> Good AfterNoon </font>");}
else {
document.write(" <font class=date1 size=4pt  face=verdana color=#995B3E> &nbsp;&nbsp;&nbsp; Good Morning </font>");}


// http://www.edulanka.lk

 

Add comment

Add comments relevant to this Article. මෙම ලිපියට අදාලව පමණක් අදහස් එකතු කරන්න.


Security code
Refresh

6.jpg

Download Toolbar

 
 

Most Popular Articles

Latest Articles

Copyright © 2005 - 2016 (ඉස්කෝලේ) eduLanka Online Education School of Sri Lanka