First post - How to only execute JS code on a certain day of the week?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • belcamino
    New Member
    • Feb 2010
    • 1

    #1

    First post - How to only execute JS code on a certain day of the week?

    For example,

    I only want this code to show up on Wed:

    <center>
    <font color="red">Rep lay Of Tuesday's Call:</font>
    <script type='text/javascript' src='swfobject. js'></script>
    <div id='mediaspace' >This text will be replaced</div>
    <script type='text/javascript'>
    var so = new SWFObject('play er.swf','mpl',' 504','24','9');
    so.addParam('al lowfullscreen', 'true');
    so.addParam('al lowscriptaccess ','always');
    so.addParam('wm ode','opaque');
    so.addVariable( 'duration','350 8');
    so.addVariable( 'file','http://xxxxxxxxxxxx.s3 .amazonaws.com/xxx.mp3');
    so.addVariable( 'autostart','fa lse');
    so.write('media space');
    </script>
    Click Play To Start
    <br />
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    use JavaScript’s Date object (esp. the .getDay() method)

    Comment

    Working...