Konular
Php
Mysql
Html
Javascript
Windows Vista
Program Anlatımı
Internet
Google
Windows 2003 Server
Komikler
Windows Xp
Isa Server
Network
Ofis Programları
Css
Photoshop
Donanım
Joomla
Youtube Video
Diğer Konular
Jquery

Linklerimiz
Eskişehirde Satılık Evler
Turkey Sailing Trips
http://www.otelreferans.com/
http://www.gulet-im.com/TD3-901_teknekodu_Gulet.html
http://www.veryferry.com/
http://www.guletstore.com
http://www.oteliletisim.com/
http://www.otelvideo.org/
http://www.oteldizin.net
http://www.oteldirectory.com
http://www.otelresim.net
Otel Maps
Boutique Gulets

 
jquery jquery saat plug-in (clock)
<script>
(function($) {

$.fn.jclock = function(options) {
var version = '1.2.0';

// options
var opts = $.extend({}, $.fn.jclock.defaults, options);

return this.each(function() {
$this = $(this);
$this.timerID = null;
$this.running = false;

var o = $.meta ? $.extend({}, opts, $this.data()) : opts;

$this.timeNotation = o.timeNotation;
$this.am_pm = o.am_pm;
$this.utc = o.utc;
$this.utc_offset = o.utc_offset;

$this.css({
fontFamily: o.fontFamily,
fontSize: o.fontSize,
backgroundColor: o.background,
color: o.foreground
});

$.fn.jclock.startClock($this);

});
};

$.fn.jclock.startClock = function(el) {
$.fn.jclock.stopClock(el);
$.fn.jclock.displayTime(el);
}
$.fn.jclock.stopClock = function(el) {
if(el.running) {
clearTimeout(el.timerID);
}
el.running = false;
}
$.fn.jclock.displayTime = function(el) {
var time = $.fn.jclock.getTime(el);
el.html(time);
el.timerID = setTimeout(function(){$.fn.jclock.displayTime(el)},1000);
}
$.fn.jclock.getTime = function(el) {
var now = new Date();
var hours, minutes, seconds;

if(el.utc == true) {
var localTime = now.getTime();
var localOffset = now.getTimezoneOffset() * 60000;
var utc = localTime + localOffset;
var utcTime = utc + (3600000 * el.utc_offset);
now = new Date(utcTime);
}
hours = now.getHours();
minutes = now.getMinutes();
seconds = now.getSeconds();

var am_pm_text = '';
(hours >= 12) ? am_pm_text = " P.M." : am_pm_text = " A.M.";

if (el.timeNotation == '12h') {
hours = ((hours > 12) ? hours - 12 : hours);
} else if (el.timeNotation == '12hh') {
hours = ((hours > 12) ? hours - 12 : hours);
hours = ((hours < 10) ? "0" : "") + hours;
} else {
hours = ((hours < 10) ? "0" : "") + hours;
}

minutes = ((minutes < 10) ? "0" : "") + minutes;
seconds = ((seconds < 10) ? "0" : "") + seconds;

var timeNow = hours + ":" + minutes + ":" + seconds;
if ( (el.timeNotation == '12h' || el.timeNotation == '12hh') && (el.am_pm == true) ) {
timeNow += am_pm_text;
}

return timeNow;
};

// plugin defaults
$.fn.jclock.defaults = {
timeNotation: '24h',
am_pm: false,
utc: false,
fontFamily: '',
fontSize: '',
foreground: '',
background: '',
utc_offset: 0
};

})(jQuery);
</script>

Örnek -1

<script type="text/javascript">
$(function($) {
$('.jclock').jclock();
});
</script>



<div class="jclock"></div>


örnek-2


<script type="text/javascript">
$(function($) {
var options = {
timeNotation: '12h',
am_pm: true,
fontFamily: 'Verdana, Times New Roman',
fontSize: '20px',
foreground: 'yellow',
background: 'red'
};
$('.jclock').jclock(options);
});
</script>



<div class="jclock"></div>

paremetreler :


* timeNotation (String): Type of time display: '24h' or '12h' ('12hh' inserts leading 0). Default: '24h'
* am_pm (Boolean): true/false. If true, displays A.M./P.M. Default: false (12h timeNotaion only)
* utc (Boolean): true/false. If true, shows time using UTC. Defaul: false
* utc_offset (Number): If specified, sets offset from UTC, negative or positive. Default: 0
* fontFamily (String): If specified, sets CSS fontFamily. Default: null
* fontSize (Number): If specified, sets CSS fontSize. Default: null
* foreground (String): If specified, sets CSS foreground color. Default: null
* background (String): If specified, sets CSS background color. Default: null

Böyyük Patron Tarafından 06-07-2010 Tarihinde Gönderilmiştir.   Bu Konuyu Yazdır
Kaynak : 

 

En Son Eklenenler
php
php klasörün altındaki dosyaları ve klasörleri göstermek
php
php array verilerini dosyaya kayıt etme dosyadan okuma
php
php string içindeki fazla boşlukları (whitespaces) kaldırmak
Diğer Konular
.htaccess ile dosyalarınız cache ile sayfa hızınız artsın
Javascript
javascript linklerde referrer bilgisi gönderilmesi
jquery
input ve textarea kutularına girilince kutunun içindeki değerlerin silinmesi
jquery
jquery ui autocomplate - Sonuçları formatlamak
jquery
jquery ui autocomplate - arama sonuçlarında satır sayısı belirlemek
php
iconv ile utf karakterleri çeviriken kesme işareti (apstrof) sorunu
php
ip adresi kontrolü ip validate
php
url adresi kontrolü validate url
php
php mail adresi kontrolü filter_var
php
dosya include error hatasını engellemek
jquery
internet explorer position fixed sorununu jquery ile çözmek
jquery
input alanlara girilen sayıların toplanarak gösterilmesi
MYSQL
aynı satırdaki (row) field değerlerin içinde en büyüğünü (max) bulmak
MYSQL
aynı satırdaki (row) field değerlerin içinde en küçüğünü (min) bulmak
jquery
select kutusunda seçilen option daki attribute özelliğindeki değeri almak
jquery
jquery dizide max ve min işlemeleri array max min
MYSQL
mysql de türkçe kayıtlı alanlarda arama yapmak
php
str_shuffle()
php
sql_regcase()
php
mysql_affected_rows()
php
php Chop
php
php pathinfo
MYSQL
Mysql de trigger
php
eposta adresine ait mx kaydının olup olmadığını kontrol etmek
php
Türkçe karakter destekli array sort
Javascript
Diziler ve Türkçe Karakterleri Sıralama
php
php curl türkçe karakter sorunu çözülmüştür
jquery
jquery mouse sağ tuşu kilitlemek
jquery
jquery tagların value değerini öğrenmek
jquery
jquery multiple selector çoklu element seçimi
jquery
jquery zebra tablolar yapmak iki renkli tablo yapımı
jquery
jquery sayfayı refresh etmek sayfayı yenilemek
jquery
jquery resim yüklenemiyorsa farklı resim göstermek
php
tckimlik sorgulama
php
php ile javascript ve style (css) dosyalarını browsere sıkıştırarak göndermek
php
curl ile twitpic.com sitesine resim upload etmek
php
stringde aradağımız stringin posizyonunu bulmak tripos()
İletişim : bpatron@codekodu.com
877298Kişi Tarafından Sitemiz Ziyaret Edilmiştir. 16 Kişi Online
Bugün 01 Saat 29 Dakikada Sitemizi Tekil 81 Kişi Ziyaret Etmiştir.
Dün Sitemizi Tekil 937 Kişi Ziyaret Etmiştir.
Sitemizi En Çok Tekil 14-03-2012 Tarihinde 962 Kişi Ziyaret Etmiştir.
Sitemizdeki bilgilerin büyük çoğunluğu alıntıdır.İlgili yazının yazarının veya kaynak sahibinin istemesi halinde ilgili yazı sitemizden kaldırılacaktır.
Sitemizin İmalatı Böyyükpatron Tarafından Yapılmıştır.