Neler yeni
Türkiye'nin En Güncel Forum Sitesi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı yada giriş yapmalısınız. Forum üye olmak tamamen ücretsizdir.

Week Day Image w/URL (ing)

ByOnur58

Kayıtlı Üye
MFC Üyesi
  • Üyelik Tarihi
    7 Ocak 2015
  • Mesajlar
    2,113
  • MFC Puanı
    10
  • MFC Seviyesi

Kod:
<script type="text/javascript">
<!--
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: John Hobbs :: http://www.velvetcache.org/ */

window.onload = function() {
    var date = new Date();
    var today = date.getDay();

    var weekdayImg = new Array(7);
    weekdayImg[0]="http://javascript.internet.com/img/week-day-images/sunday.jpg";
    weekdayImg[1]="http://javascript.internet.com/img/week-day-images/monday.jpg";
    weekdayImg[2]="http://javascript.internet.com/img/week-day-images/tuesday.jpg";
    weekdayImg[3]="http://javascript.internet.com/img/week-day-images/wednesday.jpg";
    weekdayImg[4]="http://javascript.internet.com/img/week-day-images/thursday.jpg";
    weekdayImg[5]="http://javascript.internet.com/img/week-day-images/friday.jpg";
    weekdayImg[6]="http://javascript.internet.com/img/week-day-images/saturday.jpg";

    var weekdayLinks=new Array(7);
    weekdayLinks[0]="SundayURL.html";
    weekdayLinks[1]="MondayURL.html";
    weekdayLinks[2]="TuesdayURL.html";
    weekdayLinks[3]="WednesdayURL.html";
    weekdayLinks[4]="ThursdayURL.html";
    weekdayLinks[5]="FridayURL.html";
    weekdayLinks[6]="SaturdayURL.html";

    ********.getElementById('thumbLink').href = weekdayLinks[today];
    ********.getElementById('thumbImg').src = weekdayImg[today];
}
//-->
</script>

<a href="#" id="thumbLink")"><img border="0" id="thumbImg" alt="Thumbnail Of The Day"></a>
 
Üst Alt