crashcarter
09-25-2008, 05:00 AM
Hey, I managed to get a quick code for my scheduled image but am having some problems configuring it.
Here's the code
<img id="myImage" alt="myImage" title="myImage">
<script type="text/javascript">
var date = new Date();
if ((date.getDay() > 0 && date.getDay() < 6) && date.getHours() == 14) {
document.getElementById("myImage")["src"] = "MON-FRI-2-OCLOCK-IMAGE.jpg";
};
</script>
My problem is I need this code to keep a particular image up from mid to 6a then 6a to 9a and 9a to noon during the weekdays then some different schedules on Saturday and Sunday. I can't seem to configure it properly.
Anyone with any ideas?
Here's the code
<img id="myImage" alt="myImage" title="myImage">
<script type="text/javascript">
var date = new Date();
if ((date.getDay() > 0 && date.getDay() < 6) && date.getHours() == 14) {
document.getElementById("myImage")["src"] = "MON-FRI-2-OCLOCK-IMAGE.jpg";
};
</script>
My problem is I need this code to keep a particular image up from mid to 6a then 6a to 9a and 9a to noon during the weekdays then some different schedules on Saturday and Sunday. I can't seem to configure it properly.
Anyone with any ideas?