این کد رو نمیشه زد ماژول؟
سلام می خواستم این کد رو بزنم تو ماژول، اچ تی ام ال دلخواه،
ولی نشون نمی ده!
<html>
<head>
<td><center><script language="JavaScript">
CurrentDate= "02/27/2012 9:40:25 PM";
TargetDate = "2012/3/2";
TargetTime = "08:00:00 AM";
BackColor = "";
ForeColor = "#FF0000";
CountActive = true;
DisplayFormat = " تا روز انتخابات %%D%% روز و %%H%% ساعت و %%M%% دقيقه و %%S%% ثانيه باقي مانده است.";
FinishMessage = "<strong>شروع انتخابات</strong>";
function calcage(secs, num1, num2) {
s = ((Math.floor(secs/num1))%num2).toString();
return "<b>" + s + "</b>";
}
function CountBack(secs) {
if (secs < 0) {
document.getElementById("cntdwn").innerHTML = FinishMessage;
return;
}
DisplayStr = DisplayFormat.replace(/%%D%%/g, calcage(secs,86400,100000));
DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24));
DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60));
DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60));
document.getElementById("cntdwn").innerHTML = DisplayStr;
if (CountActive)
setTimeout("CountBack(" + (secs-1) + ")", 990);
}
function putspan(backcolor, forecolor) {
document.write("<span id='cntdwn' style='background-color:" + backcolor +
"; color:" + forecolor + "'></span>");
}
if (typeof(BackColor)=="undefined")
BackColor = "white";
if (typeof(ForeColor)=="undefined")
ForeColor= "black";
if (typeof(TargetDate)=="undefined")
TargetDate = "12/31/2020";
if (typeof(TargetTime)=="undefined")
TargetDate = "00:00 AM";
if (typeof(DisplayFormat)=="undefined")
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
if (typeof(CountActive)=="undefined")
CountActive = true;
if (typeof(FinishMessage)=="undefined")
FinishMessage = "";
putspan(BackColor, ForeColor);
var dthen = new Date(TargetDate);
var dnow = new Date(CurrentDate);
ddiff = new Date(dthen-dnow);
gsecs = Math.floor(ddiff.valueOf()/1000);
CountBack(gsecs);
</script></center></td>
</head>
<body>
</body>
</html>