The script that you link to in your post has no such timing mechanism to begin with. Perhaps you are thinking of the daily iframe?
Anywys, to alter this scroller script for monthly content though, you could just changes this:
Code:
var iframesrc="external.htm"
Code:
var scd=new Date();
var iframesrc="external"+scd.getMonth()+".htm"
Then you would need 12 external pages numbered 0 to 11:
external0.htm
external1.htm
. . .
external10.htm
external11.htm
0 is for January, 1 for Feb. and so on, 11 is Dec.
For daily content use:
Code:
var scd=new Date();
var iframesrc="external"+scd.getDate()+".htm"
You would then need 31 pages numbered from 1 through 31.
If you just want 7 pages, Sun. through Mon., use:
Code:
var scd=new Date();
var iframesrc="external"+scd.getDay()+".htm"
The seven pages would be numbered 0 (Sunday) through 6 (Monday).
Bookmarks