/ Published in: Other
Expand |
Embed | Plain Text
<script type="text/javascript"> $(document).ready(function() { today=new Date() thisDay=today.getDay() $("#sunday").hide(); $("#monday").hide(); $("#tuesday").hide(); $("#wednesday").hide(); $("#thursday").hide(); $("#friday").hide(); $("#saturday").hide(); if (thisDay == 0){ $("#sunday").show(); } if (thisDay == 1){ $("#monday").show(); } if (thisDay == 2){ $("#tuesday").show(); } if (thisDay == 3){ $("#wednesday").show(); } if (thisDay == 4){ $("#thursday").show(); }4 if (thisDay == 5){ $("#friday").show(); } if (thisDay == 6){ $("#saturday").show(); } }); </script> div id="sunday"> <h3>Sunday</h3> </div> <div id="monday"> <h3>Monday</h3> </div> <div id="tuesday"> <h3>Tuesday</h3> </div> <div id="wednesday"> <h3>Wednesday</h3> </div> <div id="thursday"> <h3>Thrursday</h3> </div> <div id="friday"> <h3>Friday</h3> </div> <div id="saturday"> <h3>Saturday</h3> </div>
You need to login to post a comment.
