<style>#Norooz1392 {
background: #00d8ff;
border: 1px solid #006e82;
border-bottom: 3px solid #00353e;
text-align: center;padding: 5px 20px;
margin-bottom: 15px;
font-size: 18px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
</style>
<div id="Norooz1392"></div>
<script language="javascript" src="http://my-bb.ir/mybbirtimenow.php"></script>
<script language="javascript">
<!--
TargetDate = "Wed, 20 Mar 2013 11:01:56 +0000";
BackColor = "";
ForeColor = "white";
CountActive = true;
ElementId = "Norooz1392";
//var dnow = new Date();
dnow = new Date(dnow);
DisplayFormat = "<a href="http://gamerfa.ir/page/upload"><img src='http://up.gamerfa.ir/up/gamerfa/haftsin.png' style='float:left;margin-left:30px;margin-top:-30px;' /> تا آغاز سال 1392 شمسی <d> روز و <h> ساعت و <m> دقیقه و <s> ثانیه زمان باقی مانده است";
FinishMessage = "<a href="http://gamerfa.ir/page/upload"><img src='http://up.gamerfa.ir/up/gamerfa/haftsin.png' style='float:left;margin-left:30px;margin-top:-30px;' /> آغاز سال 1392 هجری شمسی مبارک باد";
function calcage(secs, num1, num2) {
s = ((Math.floor(secs/num1))%num2).toString();
if (s.length < 2)
s = "0" + s;
return "<b>" + s + "</b>";
}
function CountBack(secs) {
if (secs < 0) {
document.getElementById(ElementId).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(ElementId).innerHTML = DisplayStr;
if (CountActive)
setTimeout("CountBack(" + (secs-1) + ")", 990);
}
if (typeof(CountActive)=="undefined")
CountActive = true;
if (typeof(FinishMessage)=="undefined")
FinishMessage = "";
var dthen = new Date(TargetDate);
ddiff = new Date(dthen-dnow);
gsecs = Math.floor(ddiff.valueOf()/1000);
CountBack(gsecs);
// -->
</script>