# Load swf according to the months

**URL:** <https://forum.kirupa.com/t/load-swf-according-to-the-months/201330>\
**Category:** Uncategorized\
**Created:** [September 20, 2006, 2:52pm UTC](https://forum.kirupa.com/t/load-swf-according-to-the-months/201330 "2006-09-20T14:52:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![max23](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@max23](https://forum.kirupa.com/u/max23)\
**Post date:** [September 20, 2006, 2:52pm UTC](https://forum.kirupa.com/t/load-swf-according-to-the-months/201330/1 "2006-09-20T14:52:15Z")

</div>

hi guys, I need to load swf according to the months. I have the script with the date, hour and days, but I need to load a swf in January, other in February… Since it might do it .I leave the script that I have: thank you

```auto

months = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
daysofweek = new Array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sábado");
webdate = new Date();
daysofweekvar = webdate.getDay();
weboftoday = daysofweek[daysofweekvar];
monthsvar = webdate.getMonth();
webmonth = months[monthsvar];
webyear = webdate.getFullYear();
webday = webdate.getDate();
webhour = webdate.getHours();
webmin = webdate.getMinutes();
websec = webdate.getSeconds();
if(webhour < 12){
    apm = "GECE";
}
if(webhour >= 12){
    apm = "GUNDUZ";
}
if(length(webmin) == 1){
    webmin = "0" + webdate.getMinutes();
}
if(length(websec) == 1){
    websec = "0" + webdate.getSeconds();
}

```

thanks
