Professional Web Applications Themes

Ezine Script - Macromedia Dreamweaver

Jhinuk: I have no idea, but welcome back to the forum! 8) -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver MX (If you *MUST* email me, don't LAUGH when you do so!) ================== news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET ANSWERS ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "Jhinuk Chowdhury" <com> wrote in message news:57.83.209... ...

  1. #1

    Default Re: Ezine Script

    Jhinuk:

    I have no idea, but welcome back to the forum! 8)

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
    ANSWERS
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "Jhinuk Chowdhury" <com> wrote in message
    news:57.83.209... 


    Murray Guest

  2. #2

    Default Re: Ezine Script

    Thanks, Murray! I think I will spend the rest of my summer here. :-)

    ~ Jhinuk ~

    --
    Jhinuk Chowdhury
    --
    Jhinuk Chowdhury
    <jc AT plasticcreations DOT com>
    Jhinuk Guest

  3. #3

    Default Re: Ezine Script

    Jhinuk:

    YAY!

    --
    Murray --- ICQ 71997575
    ==================

    "Jhinuk Chowdhury" <com> wrote in message
    news:57.83.209... 


    Murray Guest

  4. #4

    Default Re: Ezine Script

    I have implemented a js archive for the weekly Old Toad Quiz, which is
    dynamically created. It needs no maintenance, except to upload the current
    quiz.
    http://mickweb.com/quiz/archive2003.html

    It relies on the user's computer clock, but it could easily be adapted to
    use your server's clock, using asp or php.

    function writeLinks(year,howmany){ //howmany= how many entries you want
    var a=new Array();
    c=getWeekday(year,1).length;// # of mondays ("1") in the year
    m=getWeekday(year,1); array of mondays in the form "January 2","January 9"
    and so on
    j=new Date();
    outerloop:
    for(b=0;b<c;b++){ // loop through mondays, create a link for mondays that
    have passed
    k=new Date(m[b]+" "+year);// create a full n date object for every
    entry
    if(k>j){break;}
    if(m[b]=="March 17" || m[b]=="May 26" || m[b]=="July 7"){continue;} //
    missing quizzes
    a[a.length]="<a
    href='archives/"+pad(k.getMonth()+1)+pad(k.getDate())+pad(yea r-2000)+".html'>"+m[b]+"</a>";

    //in the form "archives/010203.html" (Jan 2 2003 quiz)
    }
    return a.reverse().slice(0,howmany? howmany:a.length);
    //reverse the array so that recent issues appear first.
    // display all of them if "howmany" is not passed to the fumction
    }

    This is for a weekly quiz, but you could use the same principle for a
    monthly isue.
    If you'd like to explore this further, I'd be glad to help.
    Mick:

    Supporting functions below:
    var months =
    ["January","February","March","April","May","June", "July","August","September","October","November"," December"];

    function getNthDayInMonth(N,day,month,year){
    b=getMonthLength(month,year);
    d=7*N - 6 + (7+day-getFirstDayOfMonth(month,year))%7 ;
    return d<b? d:"error";
    }

    function getMonthLength(month,year){
    d= new Date(month+" 1, "+year);
    ml=[31,isLeapYear(year)? 29:28,31,30,31,30,31,31,30,31,30,31];
    return ml[d.getMonth()];
    }

    function isLeapYear(year){
    return new Date(year, 1, 29).getMonth() == 1;
    }

    function getFirstDayOfMonth(month,year){
    return new Date(month+" 1, "+year).getDay();
    }

    function pad(number){return number<10? "0"+number:number;}

    function getYearLength(year){
    return isLeapYear(year)? 366:365;
    }

    Jhinuk Chowdhury wrote:
     

    mick_white Guest

Similar Threads

  1. Replies: 2
    Last Post: January 24th, 06:00 AM
  2. Ezine (email magazine) ideas or hints
    By Terry Murray in forum ASP Database
    Replies: 1
    Last Post: September 30th, 04:06 PM
  3. Program/Project Management Ezine
    By Knowledge Transfer in forum Mac Programming
    Replies: 0
    Last Post: August 27th, 04:27 AM
  4. Announcing issue 2 of The Agile Developer's Life free eZine
    By Borcis in forum PERL Miscellaneous
    Replies: 0
    Last Post: July 31st, 03:31 PM
  5. [OT] Announcing issue 2 of The Agile Developer's Life free eZine
    By J. Gleixner in forum PERL Miscellaneous
    Replies: 0
    Last Post: July 31st, 03:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139