Come dicevo questa mattina ho provato a correggere quello che mi ha segnalato cavicchiandrea .


il codice con la correzione è il seguente:
codice:
<div  id="count_box" >
    <table  class ="count_desktop" style="background-image: url('images/bg_countdown.gif'); border: 1px dotted #b32682; text-align: center; font-family: 'Indie Flower', cursive; font-size: 12pt; color: #b32682; width: 400px; margin: auto;">
	<tbody>
	    <tr>
		<td></td>
		<td>
		    <script type="text/javascript">
			var before = "Ludovica & Alessandro ";
			var current = "Ludovica & Alessandro... Oggi sposi!!!";
			var montharray = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
			function countdown(yr, m, d) {
			    var today = new Date();
			    var todayy = today.getYear();
			    if (todayy < 1000) {
				todayy += 1900;
			    }
			    var todaym = today.getMonth();
			    var todayd = today.getDate();
			    var todaystring = montharray[todaym] + " " + todayd + ", " + todayy;
			    var futurestring = montharray[m - 1] + " " + d + ", " + yr;
			    var difference = (Math.round((Date.parse(futurestring) - Date.parse(todaystring)) / (24 * 60 * 60 * 1000)) * 1);
			    if (difference === 0) {
				document.write(current);
			    } else if (difference > 0) {
				document.write(before + "
...Sposi tra " + difference + " giorni!!");
			    } else if (difference < 0) {
				var da_gg = (difference * (-1));
				document.write("Ludovica e Alessandro sposi da " + da_gg + " giorni!!");
			    }
			}
			countdown(2014, 5, 31);

		    </script>
		</td>
	    </tr>
	</tbody>
    </table>
</div>
per piacere se avete suggerimenti, correzioni o altro aiutatemi!