Results 1 to 15 of 29

Thread: new image every week

Threaded View

  1. #14
    Join Date
    Mar 2006
    Ah, it starts with 0!
    Any way to make it start with 1?

    (I have others who will be populating the images, and I'd like to K.I.S.S.)

    And how can I also make this change sequential text files on Monday for virtual SSI includes?

    I tried this, but it didn't work. I'm sure I've got something totally wrong:

    function mondayText(){
    var n, now= new Date(), d= new Date(now.getFullYear(), 0, 0);
    while(d.getDay()!== 1) d.setDate(d.getDate()+1);
    n= Math.floor((now-d)/6.048e8);
    document.getElementById('mondaytext').src= '/text'+n+'.txt';

    <!--#include virtual id='mondaytext' src="" -->
    Last edited by LambdaEnt; 03-29-2012 at 03:00 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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

Recent Articles