Javascript - Html kodları

Aşağıdaki kodları <body> kodundan sonra istediğiniz bir yere yapıştırın.

{codecitation class="brush: xml; gutter: false;" width="500px"}

<script language="JavaScript1.2">
<!--hide

//date in title by Randall Smith copyright 1999
//Permission given to Dynamicdrive.com to feature it in it's DHTML archive
//Script modified by Dynamicdrive.com to make it cross browser friendly. Visit Dynamicdrive.com for more DHTML scripts
//please visit me on the web at http://members.xoom.com/u4rstunzd/
//when it gets to the year 2000 you'll need to change the 19 to 20 if not when it's the year 2000
//it will show the year as 1900 to change it see where it says 19"+Year+" just change the 19 to 20
//and to change the title:where it says Welcome todays date is: just put you own text in if you would like to--
var isnMonth = new
Array("Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık");
var isnDay = new
Array("Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar");
today = new Date () ;
Year=today.getYear();
if (Year < 1000)
Year+=1900
Date=today.getDate();
if (document.all)
document.title="Hoşgeldiniz. Bugün: "+Date+" "+isnMonth[today.getMonth()]+" , "+Year+" , "+isnDay[today.getDay()]+""
//--hide-->
</script>

{/codecitation}



Örnek demo için tıklayın >>