Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am making a daily vocab thing.
XML
<!doctype><html><body onload="loaded()"><div style="width:400px;height:200px;border:6px ridge orange;">
<script>
  {
     var d = new date()
     d.getDate()
    if (d=17)
      {document.getElementById('dailyword').innerHTML ='<p><br>Philanthropy</p>';}
  }
</script>
<p><b><font size="6">Daily Vocab</font></b><br></p><br><p id=dailyword>
</p>
  <p id="dailyvocabdefine"><br>
    <button onclick="foo()">Define</button></p>
    <script>
 function undefine()
      {document.getElementById('dailyvocabdefine').innerHTML ='<p><br><button onclick="foo()">Define</button></p>';}
       function foo()
      {document.getElementById('dailyvocabdefine').innerHTML ='<p id="definition"><br>silence or reserve<br><br><button onclick="undefine()">Cover definition</button></p>';}
  </script></div>
</body></html>

I am trying to make it so if date is 17 then do a word. I am doing it one step at a time. I have just finished the first step and I don't know what I did wrong. What is it supposed to be?
Posted
Updated 17-Jun-13 22:33pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900