'HTML_'에 해당되는 글 2건

  1. 2017.06.26 :: Titlebar clock
  2. 2017.04.05 :: HTML-CSS-inline_block
HTML_ 2017. 6. 26. 13:42


Titlabar clock 

http://www.javascriptsource.com/time-date/title-bar-clock.html


 


<!-- THREE STEPS TO INSTALL TITLE BAR CLOCK:


  1.  Copy the coding into the HEAD of your HTML document

  2.  Add the onLoad event handler into the BODY tag

  3.  Put the last coding into the BODY of your HTML document  -->


<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->


<HEAD>


<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://www.javascriptsource.com -->

<!-- Original:  Alex Jarvis (gamemastax@hotmail.com ) -->

<!-- Begin

function clock() {

var date = new Date()

var year = date.getYear()

var month = date.getMonth()

var day = date.getDate()

var hour = date.getHours()

var minute = date.getMinutes()

var second = date.getSeconds()

var months = new Array("", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC")


var monthname = months[month]


if (hour > 12) {

hour = hour - 12

}


if (minute < 10) {

minute = "0" + minute

}


if (second < 10) {

second = "0" + second

}



document.title = "JSS - " + monthname + " " + day + ", " + year + " - " + hour + ":" + minute + ":" + second


setTimeout("clock()", 1000)


}

//  End -->

</script>


</HEAD>


<!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->


<BODY onLoad="clock()">


<!-- STEP THREE: Copy this code into the BODY of your HTML document  -->


The script is running in the title bar!!


<p><center>

<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>


<!-- Script Size:  1.53 KB -->


'HTML_' 카테고리의 다른 글

HTML-CSS-inline_block  (0) 2017.04.05
posted by cskimair
:
HTML_ 2017. 4. 5. 15:09

http://ko.learnlayout.com/inline-block.html

CSS 레이아웃을 배웁시다  - inline-block



inline div 

#inline_div 

'HTML_' 카테고리의 다른 글

Titlebar clock  (0) 2017.06.26
posted by cskimair
: