Ramazana Kalan Süre Kodu

27 Haz 2013
2,240
0
106
#1

Tesadüfen Buldum Ve Size Paylaşmak İstedim.
Bi teşekkür yeter :)


Kod:
Kod:
<div class="ramazan-alani">
<div style=" font-family: Arial; font-size: 20px; font-style: italic; font-weight: normal;"> Ramazan 'a Kalan Süre: </div></div><div style="text-align: left;">
    <div style="margin-left: auto; margin-right: auto; text-align: center; position: relative; ">
   <div id="count"></div>
    </div> 
</div>

<script>

/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
Modified by Robert M. Kuhnhenn, D.O. 
on 5/30/2006 to count down to a specific date AND time,
and on 1/10/2010 to include time zone offset.
*/

/*  Change the items below to create your countdown target date and announcement once the target date and time are reached.  */
var current="Winter is here!";        //—>enter what you want the script to display when the target date and time are reached, limit to 20 characters
var year=2013;        //—>Enter the count down target date YEAR
var month=07;          //—>Enter the count down target date MONTH
var day=9;           //—>Enter the count down target date DAY
var hour=00;          //—>Enter the count down target date HOUR (24 hour clock)
var minute=00;        //—>Enter the count down target date MINUTE
var tz=+2;            //—>Offset for your timezone in hours from UTC (see http://wwp.greenwichmeantime.com/index.htm to find the timezone offset for your location)

//—>    DO NOT CHANGE THE CODE BELOW!    <—
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

function countdown(yr,m,d,hr,min){
theyear=yr;themonth=m;theday=d;thehour=hr;theminute=min;
var today=new Date();
var todayy=today.getYear();
if (todayy < 1000) {
todayy+=1900; }
var todaym=today.getMonth();
var todayd=today.getDate();
var todayh=today.getHours();
var todaymin=today.getMinutes();
var todaysec=today.getSeconds();
var todaystring1=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec;
var todaystring=Date.parse(todaystring1)+(tz*1000*60*60);
var futurestring1=(montharray[m-1]+" "+d+", "+yr+" "+hr+":"+min);
var futurestring=Date.parse(futurestring1)-(today.getTimezoneOffset()*(1000*60));
var dd=futurestring-todaystring;
var dday=Math.floor(dd/(60*60*1000*24)*1);
var dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
var dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
var dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=0){
document.getElementById('count').innerHTML=current;
return;
}
else {
document.getElementById('count').innerHTML=+dday+ " gün, "+dhour+" saat, "+dmin+" dakika, ve "+dsec+" saniye";
setTimeout("countdown(theyear,themonth,theday,thehour,theminute)",1000);
}
}

countdown(year,month,day,hour,minute);

</script>
<div class="mp3">
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20">
    <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" />
    <param name="bgcolor" value="#ffffff" />
    <param name="FlashVars" value="mp3=http%3A//st.10tl.net/tema/karanlik/destek.10tl.net/ramazan.mp3&autoplay=1&showstop=1&showvolume=0" />
</object>
DEMO İÇİN TIKLAYINIZ :)

konuyu Açarken Güvenlik sorusu :)
Alıntıdır.
Not:Sitemizdede böyle olsa güzel olmazmı