Jump to content

FastDuck

Members
  • Posts

    3
  • Joined

  • Last visited

About FastDuck

  • Birthday 06/06/1975

Contact Methods

  • Website URL
    http://
  • ICQ
    0

FastDuck's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Yes, i figured that out myself. what i am looking for is a solution.. But i guess ill have to code it in php.Anders
  2. Well, the code works, and you are allowed scripts other places than inside the <head> tag, and beside from a few typos.. try validating this code..... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html lang="da"><head><title>Some Title</title><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head><body><script type="text/javascript"> var idx = 3; var idy = 0;</script><table border="1"> <tr> <td> <script type="text/javascript"> if((idy % idx) == 0){ document.write("Hello world") } </script> </td> </tr></table></body></html> Beside from a few typos in a script function, you should be able to guess that its document.write(.... but for clarification, here is the correct code... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html lang="da"><head><title>Some Title</title><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head><body> <script type="text/javascript"> var idx = 3; var idy = 0; </script> <table> <script type="text/javascript"> if((idy % idx) == 0){ document.write("<tr>"); ++idy } </script> <td> <script type="text/javascript"> <!-- get content for each mont from db, repeat until 1 year is shown--> </script> </td> <script type="text/javascript"> if((idy % idx) == 0){ document.write("<\/tr>"); } </script> </table></body></html> So with that in place... the validation messages is seen in justsomeguy's post...Anders
  3. HelloI am having problems with a simple calendar function. The code works alright, but when i run it trough the validation, witch i try to make my whole site stand up against, i get an error, can't really figure the solution. This is a partial code witch works, but as said don't validate, any got a solution? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html lang="da"><head><title>Some Title</title><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head><body><script type="text/javascript"> var idx = 3; var idy = 0;</script><table> <script type="text/javascript"> if((idy % idx) == 0){ dokment.write("<tr>"); ++idy } </script> <td> <script type="text/javascript"> <!-- get content for each mont from db, repeat until 1 year is shown--> </script> </td> <script type="text/javascript"> if((idy % idx) == 0){ dokument.write("<\/tr>"); } </script></table></body></html> This make a 3 by 4 calendar trough a php function, the comment inside the td tag, and as said works flawless, don't validate though. There are a bunch more in this, but these few lines sums it up i think.Anders
×
×
  • Create New...