Forum'da ara:
Ara


Yazar Mesaj
Mesaj27.06.2009, 10:43 (UTC)    
Mesaj konusu: saate göre değişen resim kodu

arkadaşlar bana saate göredeişen resim kodu lazım
______________
Mesaj27.06.2009, 17:14 (UTC)    
Mesaj konusu:

hadiya yokmu bçlebi kopd
______________
Mesaj06.07.2009, 15:23 (UTC)    
Mesaj konusu:

bi uğraşayım kardeş belki yaparım
Mesaj06.07.2009, 15:53 (UTC)    
Mesaj konusu:

Şöle Bişimi

Günün hersaatinde değişen resimli saat javascript uygulaması..

DEMO = http://www.javascriptindir.com/testet.asp?id=1337

KODU


Kod:
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Anonymous | http://musikimiz.googlepages.comLicensed under: Creative Commons License
 */

function pixTimeChange() {
  var t=new Date();
  var h = t.getHours();
  var r1="http://javascript.internet.com/time-date/pic1.gif";
  var r2="http://javascript.internet.com/time-date/pic2.gif";
  var el=document.getElementById('myimage');

  // See the time below. Note: The time is in 24 hour format.
  // In the example here, "7" = 7 AM; "17" =5PM.
  el.src = (h>=7 && h<17) ? r1 : r2;
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  pixTimeChange();
});
</script>


<img src="" id="myimage" alt="time of day">

Mesaj07.07.2009, 10:30 (UTC)    
Mesaj konusu:

Güsel Kod Helal sana Wink
Mesaj08.07.2009, 10:20 (UTC)    
Mesaj konusu:

Daha Başka Bulamadığınız Kod Lazım olursa bulmaya çalısrım
Mesaj08.07.2009, 22:47 (UTC)    
Mesaj konusu:

Wink saol
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu