javascript ile sayfada tarih gösterme

Javascript kodları javascript ile sayfada tarih gösterme Hazır program kodları hakkında bilgi paylaş; format: Sunday, November 25, 2007 HTML-Kodu: <!-- ONE STEP TO INSTALL BASIC DATE DISPLAY: 1. Copy the coding into ...
Cevapla
 
Seçenekler
  #1  
Arama 25-11-2007, 11:50
banias - ait Kullanıcı Resmi (Avatar)
Pseudo Coder
Üyelik Tarihi: 23/08/07
Mesajlar: 1.177
 
     WS-Ticareti: (2)
Blog Yazıları: 2
Teşekkürleri: 9
100 Msg. 180 Tşkr.
Rep Gücü: 100 banias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud of

javascript ile sayfada tarih gösterme

format: Sunday, November 25, 2007

HTML-Kodu:
<!-- ONE STEP TO INSTALL BASIC DATE DISPLAY:

  1.  Copy the coding into the BODY of your HTML document  --> <!-- STEP ONE: Paste this code into the BODY of your HTML document  --> <BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!--  Author: www.cgiscript.net  --> <!-- Begin

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
today =  days[now.getDay()] + ", " +
         months[now.getMonth()] + " " +
         date + ", " +
         (fourdigits(now.getYear())) ;

// Print out the data.
document.write(today);

//  End --> </script> <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.30 KB -->
__________________
| | |
| |
|
|
|
Alıntı ile Cevapla
  #2  
Arama 25-11-2007, 11:51
banias - ait Kullanıcı Resmi (Avatar)
Pseudo Coder
Üyelik Tarihi: 23/08/07
Mesajlar: 1.177
 
     WS-Ticareti: (2)
Blog Yazıları: 2
Teşekkürleri: 9
100 Msg. 180 Tşkr.
Rep Gücü: 100 banias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud of
format: November 25, 2007
HTML-Kodu:
<!-- Paste this code into an external JavaScript file named: dateDisplay.js.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Lee Underwood :: http://javascript.internet.com/ */

function displayDate() {
  var now = new Date();
  var today = now.getDate();
  var month = now.getMonth();
    var monthName = new Array(12)
      monthName[0]="January ";
      monthName[1]="February ";
      monthName[2]="March ";
      monthName[3]="April ";
      monthName[4]="May ";
      monthName[5]="June ";
      monthName[6]="July ";
      monthName[7]="August ";
      monthName[8]="September ";
      monthName[9]="October ";
      monthName[10]="November ";
      monthName[11]="December ";
  var year = now.getFullYear();

  document.write(monthName[month]+today+ ", "+year);
}



<!-- Paste this code into the BODY section of your HTML document
     where you want the date displayed  --> <script type="text/javascript"> <!--
  displayDate();
//--> </script> 
__________________
| | |
| |
|
|
|
Alıntı ile Cevapla
Cevapla
Arama Etiketleri: , , ,



Seçenekler


Benzer Konular
Konu Konu Açanlar Forum Cevaplar Güncel Mesajlar
Sayfada yagmur Miliotta Html kodları 2 01-08-2008 12:00
javascript ile sayfada geçirilen zamanı hesaplayan kod banias Javascript kodları 0 26-11-2007 12:32
javascript rastgele resim gösterme kodu banias Javascript kodları 3 23-11-2007 12:48
(javascript) sayfada matrix kodları banias Javascript kodları 0 23-11-2007 12:34
Basit Tarih Gösterme [php] Nurullah_ Php kodları 0 07-09-2007 04:36


Webmaster web tasarım online reviews ~ Kadınlar blogu ~ Apple iPhone, iPod Touch ( iTouch ) Forum ~ iPhone