Güne göre Resim gösteren js 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: 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";
document.getElementById('thumbLink').href = weekdayLinks[today];
document.getElementById('thumbImg').src = weekdayImg[today];
}
//-->
</script>
<a href="#" id="thumbLink")"><img border="0" id="thumbImg" alt="Thumbnail Of The Day"></a>
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
Güne göre yazı js
Kod:
<html>
<body>
<script type="text/javascript">
function greet() {
var day = new Date();
weekDay = day.getDay();
switch (weekDay) {
case 0:
// Sunday greeting
document.write("Today is: Sunday");
break;
case 1:
// Monday greeting
document.write("Ugh, Monday");
break;
case 2:
// Tuesday greeting
document.write("Turkey Turnover Tuesday");
break;
case 3:
// Wednesday greeting
document.write("Wednesday.");
break;
case 4:
// Thursday greeting
document.write("Almost there!");
break;
case 5:
// Friday Greeting
document.write("Friday, at last");
break;
case 6:
// Saturday Greeting
document.write("Barbecue Time!");
break;
}
}
</script>
<p>
<script type="text/javascript">greet();</script>
</body>
</html>
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
Umarım işinize yarar... O siteyi iyice kurcalayın bişeyler bulacaksınız... Bu arada şu frontpage işini bende anlamadım... Not defteriyle bile kodlar yazılabilirken ya siz frontpage ile anlatmak istediğinizi anlatamadınız yadabizler yanlış anlıyoruz diye düşünüyorum...