<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
    </head>
    <body>
        <SCRIPT Language="JavaScript">
            <!--
            // Week of the year script - By Ada Shimar (ada@chalktv.com)
            // Based on code by Duncan Kabinu, Florida Department of Agriculture.
            // Modified by Italian anonimous on 19.08.2002
            // Visit JavaScript Kit (http://javascriptkit.com) for this script and 400+ more
            
            function weekNo(){
                var totalDays = 0;
                now = new Date();
                years = now.getYear();
                var days = new Array(12);
                days[0] = 31;
                days[2] = 31;
                days[3] = 30;
                days[4] = 31;
                days[5] = 30;
                days[6] = 31;
                days[7] = 31;
                days[8] = 30;
                days[9] = 31;
                days[10] = 30;
                days[11] = 31;
                
                
                if (Math.round(now.getYear() / 4) == now.getYear() / 4) {
                    days[1] = 29
                }
                else {
                    days[1] = 28
                }
                if (now.getMonth() == 0) {
                    totalDays = totalDays + now.getDate();
                }
                else {
                    var curMonth = now.getMonth();
                    for (var count = 1; count <= curMonth; count++) {
                        totalDays = totalDays + days[count - 1];
                    }
                    totalDays = totalDays + now.getDate();
                }
                var agt = navigator.userAgent.toLowerCase();
                if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) {
                    var firstday = new Date("01/01/" + String(now.getYear())).getDay();
                }
                else {
                    var firstday = new Date("01/01/" + String(1900 + now.getYear())).getDay();
                }
                var diff = 7 - firstday + 1;
                var week = Math.round((totalDays + diff - firstday) / 7);
                return week;
            }
            
            var mondayimg = "Babe/71.jpg"
            var tuesdayimg = "Babe/72.jpg"
            var wednesdayimg = "Babe/73.jpg"
            var thursdayimg = "Babe/74.jpg"
            var fridayimg = "Babe/75.jpg"
            var saturdayimg = "Babe/69.jpg"
            var sundayimg = "Babe/70.jpg"
            
            if (weekNo() == 22 || weekNo() == 23 || weekNo() == 24) {
                document.write('<img src="' + mondayimg + '">')
            }
            else 
                if (weekNo() == 25 || weekNo() == 26 || weekNo() == 27) {
                    document.write('<img src="' + tuesdayimg + '">')
                }
            
            // -->
        </SCRIPT>
    </body>
</html>
du burde kunne fylde resten ud selv..
						
						
						
						
		
							Indlæg senest redigeret d. 02.06.2009 21:16 af Bruger #11506