javascript ile gün ay yıl sayacı

Javascript kodları javascript ile gün ay yıl sayacı Hazır program kodları hakkında bilgi paylaş; HTML-Kodu: <!-- Paste this code into an external JavaScript file named: daySince.js --> /* This script and many more ...
Cevapla
WebMasTer SiTeSi
 
Seçenekler
  #1  
Arama 26-11-2007, 12:07
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 gün ay yıl sayacı

HTML-Kodu:
<!-- Paste this code into an external JavaScript file named: daySince.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Chris Hallberg :: http://kanoa.heavenfromhell.com */

function time() {
  // Enter the month, day, and year below you want to use as
  // the starting point for the date calculation
  var amonth = 9
  var aday = 11
  var ayear = 2001

  var x = new Date()
  var dyear
  var dmonth
  var dday
  var tyear = x.getFullYear()
  var tmonth = x.getMonth()+1
  var tday = x.getDate()
  var y=1
  var mm=1 
  var d=1 
  var a2=0 
  var a1=0
  var f=28

  if ((tyear/4)-parseInt(tyear/4)==0) {
    f=29
  }

  m = new Array(31, f, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)

  dyear = tyear-(ayear)

  dmonth = tmonth-amonth
  if (dmonth<0) {
    dmonth = dmonth+12
    dyear--
  }

  dday = tday-aday
  if (dday<0) {
    var ma = amonth+tmonth
    if (ma>12) {ma = ma-12}
    if (ma=0) {ma = ma+12}
    dday = dday+m[ma]
    dmonth--
  }

  if (dyear==0) {y=0}
  if (dmonth==0) {mm=0}
  if (dday==0) {d=0}
  if ((y==1) && (mm==1)) {a1=1}
  if ((y==1) && (d==1)) {a1=1}
  if ((mm==1) && (d==1)) {a2=1}
  if (y==1){
  document.write(+dyear+" Years") }
    if ((a1==1) && (a2==0)) {document.write(" and ")}
    if ((a1==1) && (a2==1)) {document.write(", ")}
    if (mm==1){
    document.write(dmonth+" Months")
  }
  if (a2==1) {document.write(", and ")}
  if (d==1){
    document.write(+dday+" Days")
  }
}



<!-- Paste this code into the HEAD section of your HTML document.
     You may need to change the path of the file.  --> <script type="text/javascript" src="daySince.js"></script> <!-- Paste this code into the BODY section of your HTML document  --> <script type="text/javascript">time()</script> since September 11, 2001
__________________
| | |
| |
|
|
|
Alıntı ile Cevapla
Cevapla
Arama Etiketleri: , , ,



Seçenekler


Benzer Konular
Konu Konu Açanlar Forum Cevaplar Güncel Mesajlar
Sayfa Görüntüleme Sayacı hasemrah Javascript 0 01-12-2008 02:32
download sayacı silver_devil Javascript 0 18-06-2008 01:11
hit sayacı arayanlar için kaynak kadınca Genel 0 09-06-2008 04:05
Wordpress Sayacı Arıyorum berkai wordpress 5 22-03-2008 03:14
güzel bir ziyaretçi sayacı için kadınca Webmaster Genel Konular 0 11-01-2008 08:17


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