هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.



 
الرئيسيةأحدث الصورالتسجيلدخول

حفظ البيانات؟
  • الرئيسية
  • قامة الاعضاء
  • تسجيل
  • القوانين العامة
  • اتصل بنا
  • علبةالدردشة
  • للتسجيل اضغط هـنـا


    انت تتصفح منتدى التصميم والابداع

    أهلا وسهلا بك زائرنا الكريم، إذا كانت هذه زيارتك الأولى للمنتدى، فيرجى التكرم بزيارة صفحة التعليمـــات، بالضغط هنا. كما يشرفنا أن تقوم بالتسجيل بالضغط هنا إذا رغبت بالمشاركة في المنتدى، أما إذا رغبت بقراءة المواضيع والإطلاع فتفضل بزيارة القسم الذي ترغب أدناه

    المواضيع الأخيرة
    » خلفيات الفوتوشوب رائعة جدا
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف سام الزيادي الجمعة يونيو 13, 2014 12:15 pm

    » كود راديو مزيكا اف ام
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف moonman الجمعة مارس 28, 2014 2:03 pm

    » طلب رمزية ل الماسة الوردية
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف الرسام الإثنين نوفمبر 04, 2013 2:36 pm

    » طلب رمزية ل الادارة كريم
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف الرسام الإثنين نوفمبر 04, 2013 2:25 pm

    » طلب رمزية للاخ Basheer Othman
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف الرسام الإثنين نوفمبر 04, 2013 2:19 pm

    » طلب رمزية ل شفيقربابعة
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف AmEr-Dz الأحد نوفمبر 03, 2013 10:00 pm

    » طلب رمزية لل شبح المنتديات
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف AmEr-Dz الأحد نوفمبر 03, 2013 9:58 pm

    » طلب رمزية لل د. شفيق ربابعة
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف AmEr-Dz الأحد نوفمبر 03, 2013 9:57 pm

    » طلب رمزية ل M.R DESIGN
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف AmEr-Dz الأحد نوفمبر 03, 2013 9:56 pm

    » طلب رمزية لل سعيد
    اليكم مجموعة اكواد للساعات والتاريخ Emptyمن طرف AmEr-Dz الأحد نوفمبر 03, 2013 9:54 pm



     

     اليكم مجموعة اكواد للساعات والتاريخ

    اذهب الى الأسفل 
    كاتب الموضوعرسالة
    الرسام
    Admin
    الرسام


    عدد المساهمات : 262
    تاريخ التسجيل : 11/10/2013

    اليكم مجموعة اكواد للساعات والتاريخ Empty
    مُساهمةموضوع: اليكم مجموعة اكواد للساعات والتاريخ   اليكم مجموعة اكواد للساعات والتاريخ Emptyالإثنين أكتوبر 14, 2013 8:31 pm

    ساعة ذات خلفية سوداء
    طريقة التركيب

    الكود:
    <style>
    <!--
    .styling{
    background-color:black;
    color:lime;
    font: bold 15px MS Sans Serif;
    padding: 3px;
    }
    -->
    </style>
      
      
    2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
    <div align="center" dir="ltr">
    <span id="digitalclock" class="styling"></span>
    <script>
    /*****************************************
    * LCD Clock script- by Javascriptkit
    * Translated By www.sakrjava.netfirms.com/
    * Visit our site at http://www.star28.com/ for more code
    * This notice must stay intact for use
    ***********************************************/
    <!--

    var alternate=0
    var standardbrowser=!document.all&&!document.getElementById

    if (standardbrowser)
    document.write('<form name="tick"><input type="text" name="tock" size="6"></form>')

    function show(){
    if (!standardbrowser)
    var clockobj=document.getElementById? document.getElementById("digitalclock") : document.all.digitalclock
    var Digital=new Date()
    var hours=Digital.getHours()
    var minutes=Digital.getMinutes()
    var dn="AM"

    if (hours==12) dn="PM"
    if (hours>12){
    dn="PM"
    hours=hours-12
    }
    if (hours==0) hours=12
    if (hours.toString().length==1)
    hours="0"+hours
    if (minutes<=9)
    minutes="0"+minutes

    if (standardbrowser){
    if (alternate==0)
    document.tick.tock.value=hours+" : "+minutes+" "+dn
    else
    document.tick.tock.value=hours+"   "+minutes+" "+dn
    }
    else{
    if (alternate==0)
    clockobj.innerHTML=hours+"<font color='lime'> : </font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
    else
    clockobj.innerHTML=hours+"<font color='black'> : </font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
    }
    alternate=(alternate==0)? 1 : 0
    setTimeout("show()",1000)
    }
    window.onload=show

    //-->
    </script></div>
    ساعة في أعلى و يسار الصفحة
    1- أضف هذا المتغير للوسم BODY لتبدو مثل هذه

    الكود:
    <BODY onLoad="show5()">
      
    2- انسخ هذا الكود و ضعه بعد الوسم BODY

    الكود:
    <span id="liveclock" style="position:absolute;left:0;top:0;">
    </span>
     <script language="JavaScript">
     
    /* Visit our site at http://www.star28.com/ for more code
    * This notice must stay intact for use */

     <!--
     function show5(){
    if (!document.layers&&!document.all)
    return;
    var Digital=new Date();
    var hours=Digital.getHours();
    var minutes=Digital.getMinutes();
    var seconds=Digital.getSeconds();
    var dn="AM";
    if (hours>12){
    dn="PM";
    hours=hours-12;
    }
    if (hours==0)
    hours=12;
    if (minutes<=9)
    minutes="0"+minutes;
    if (seconds<=9)
    seconds="0"+seconds;
    //change font size here to your desire
    myclock="<font size='5' face='Arial' color= red><b><font size='3'>الساعة تشير إلى</font></br>"+hours+":"+minutes+":"
    +seconds+" "+dn+"</b></font>";
    if (document.layers){
    document.layers.liveclock.document.write(myclock);
    document.layers.liveclock.document.close();
    }
    else if (document.all)
    liveclock.innerHTML=myclock;
    setTimeout("show5()",1000);
    }
     
    //-->
    </script>
    ساعة ضمن مستطيل - ساعات + دقائق + ثواني
    طريقة التركيب

    1- انسخ هذا الكود و ضعه في منطقة HEAD

    الكود:
    <script language="JavaScript">

    /* Visit our site at http://www.star28.com/ for more code
    * This notice must stay intact for use */

    <!-- begin script
    var ddt1, delay;
    function debuteTemps1() {
      var hhmmss = "  ", mymin, sec;
      delay = 1000;

      adate = new Date();
      hhmmss += adate.getHours();
      mymin = adate.getMinutes();
      if (mymin < 10) hhmmss += ":0" + mymin;
      else hhmmss += ":" + mymin;
      sec = adate.getSeconds();
      if (sec < 10) hhmmss += ":0" + sec;
      else hhmmss += ":" + sec;
      hhmmss = " " + hhmmss;
      document.Temps11.heure.value = hhmmss;

      ddt1 = setTimeout("debuteTemps1(delay)",delay);
    }
    //  end script -->
    </script>
    2- أضف المتغير للوسم BODY لتبدو مثل هذه

    الكود:
    <BODY onLoad="debuteTemps1()" onUnload="clearTimeout(ddt1)">
    3- انسخ هذا الكود و ضعه بعد الوسم BODY

    الكود:
    <form name="Temps11">
    <input type="text" name="heure" size="8"><br>
    </form>
    ساعة ضمن مستطيل صغير - ( am - fm )
    طريقة التركيب

    1- انسخ هذا الكود و ضعه في منطقة HEAD

    الكود:
    <SCRIPT LANGUAGE="JavaScript">

    /* Visit our site at http://www.star28.com/ for more code
    * This notice must stay intact for use */

        var timerID = null
        var timerRunning = false

        function stopclock()
        {
            if(timerRunning)
                clearTimeout(timerID)
            timerRunning = false
        }

        function startclock()
        {
            stopclock()
            showtime()
        }

        function showtime()
        {
            var now = new Date()
            var hours = now.getHours()
            var minutes = now.getMinutes()
            var seconds = now.getSeconds()
            var timeValue = "" + ((hours > 12) ? hours - 12 : hours)
            timeValue  += ((minutes < 10) ? ":0" : ":") + minutes
            timeValue  += ((seconds < 10) ? ":0" : ":") + seconds
            timeValue  += (hours >= 12) ? "PM" : "AM"
            document.clock.face.value = timeValue
           timerID = setTimeout("showtime()",1000)
            timerRunning = true
        }
    //-->
    </SCRIPT>
      
      
    2- انسخ هذا الكود و ضعه في المكان الذي تريد أن تظهر الساعة

    الكود:
      <form name="clock" onSubmit="0">
        <INPUT TYPE="text" NAME="face" SIZE=11 READONLY VALUE ="....Initializing....">
    </form>

    <SCRIPT LANGUAGE="JavaScript">
    <!--
        startclock()
    //-->
    </SCRIPT>
    ساعة حائط ملونة

    طريقة التركيب

    1- انسخ هذا الكود و ضعه في منطقة BODY

    الكود:
      <script language="VBScript">
    Dim a
    Dim min1
    Dim hr1
    Dim sec1

    'Initializes clock and tells it how to behave, when to start animation, etc

    Sub window_onload
     a = time
     min1 = minute(time)
     hr1 = hour(time)
     if hr1 > 12 then
     hr1 = hr1 - 12
     end if
     sec1 = second(time)
     call sgSecondHand.Rotate(0,0,sec1*6 - 90)
     call sgMinuteHand.Rotate(0,0,min1*6 - 90)
     call sgHourHand.Rotate(0,0,hr1*360/12 - 90)
     call seq("Time").Play
    end Sub


    'Sequencer initilization

    Sub Seq_OnInit
     Call seq("Time").at(0.000, "SecRot", -1, 1.000, 1)
     Call seq("Time").at(60.000, "MinRot", -1, 60.000, 1)
     Call seq("Time").at(0.000, "HourRot", -1, 1800.000, 1)
    End Sub

    'rotates second hand of clock

    Sub SecRot
     Call sgSecondHand.Rotate(0,0,6)
    End Sub

    ' rotates minute hand of clock

    Sub MinRot
     Call sgMinuteHand.Rotate(0,0,6)
    End Sub

    ' rotates hour hand of clock

    Sub HourRot
     Call sgHourHand.Rotate(0,0,15)
    End Sub


    </script>

    <!-- This is the master div, sets over all height, width and positioning-->

    <div id="MASTERLAYOUT" STYLE="POSITION:ABSOLUTE;WIDTH:300; HEIGHT:300;TOP:25%;LEFT:25%">

    <!-- Div sets positioning of text on clock face, z-index tells it to go in front of background data in master div -->

    <div id="divTimeText" STYLE="POSITION:ABSOLUTE; WIDTH:200; HEIGHT:200; TOP:0; LEFT:0;z-index:2">

    <br>
    <br>
    <br>

    <p  align="center">

    <font face="Verdana,Tahoma,Arial" size="5" color="YELLOW">
    <BR>
    <BR>

    </font>

    </p>

    <!-- Object displays the numbers on the clock face -->

    <OBJECT ID="SgNumbers"
     CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
     STYLE= "POSITION:ABSOLUTE; WIDTH:215; HEIGHT:200; TOP:0; LEFT:0;Z-INDEX:5">
     <PARAM NAME="Line0001" VALUE="SetLineColor(255, 255, 255)">
     <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
     <PARAM NAME="Line0003" VALUE="SetFillStyle(1)">
     <PARAM NAME="Line0004" VALUE="SetFillColor(255,255,255)">
     <PARAM NAME="Line0005" VALUE="SetFont('ARIAL',24,650,0,0,0)">
     <PARAM NAME="Line0006" VALUE="Text('1',30,-66,0">
     <PARAM NAME="Line0007" VALUE="Text('2',60,-36,0">
     <PARAM NAME="Line0008" VALUE="Text('3',70,4,0">
     <PARAM NAME="Line0009" VALUE="Text('4',60,44,0">
     <PARAM NAME="Line0010" VALUE="Text('5',30,74,0">
     <PARAM NAME="Line0011" VALUE="Text('6',-10,89,0">
     <PARAM NAME="Line0012" VALUE="Text('7',-50,79,0">
     <PARAM NAME="Line0013" VALUE="Text('8',-85,44,0">
     <PARAM NAME="Line0014" VALUE="Text('9',-95,4,0">
     <PARAM NAME="Line0015" VALUE="Text('10',-85,-36,0">
     <PARAM NAME="Line0016" VALUE="Text('11',-60,-61,0">
     <PARAM NAME="Line0017" VALUE="Text('12',-20,-76,0">
    </OBJECT>

    </div>

    <!-- Creates the clock face , structured graphic-->

    <OBJECT ID="sgBackground"
     CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
     STYLE="POSITION:absolute; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200">
        <PARAM NAME="Line0001" VALUE="SetLineStyle(5)">
        <PARAM NAME="Line0002" VALUE="SetFillStyle(11)">
        <PARAM NAME="Line0003" VALUE="SetFillColor(255,0,0,0,0,255)">
        <PARAM NAME="Line0004" VALUE="SetGradientFill(0,0,-100,-100,0)">
        <PARAM NAME="Line0005" VALUE="Oval(-100,-100,200,200,0)">
    </OBJECT>

    <div id="divClock" STYLE="POSITION:ABSOLUTE; WIDTH:200; HEIGHT:200; TOP:0; LEFT:0;">

    <!-- Object creates second hand for clock, structured graphic -->

    <OBJECT ID="sgSecondHand"
     CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
     STYLE="POSITION:absolute; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200; Z-INDEX:5">
     <PARAM NAME="Line0001" VALUE="SetLineColor(255, 255, 255)">
     <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
     <PARAM NAME="Line0003" VALUE="SetFillColor(255,255,255)">
     <PARAM NAME="Line0004" VALUE="SetFillStyle(1)">
     <PARAM NAME="Line0005" VALUE="Rect(-5,-2,100,4,0)">
    </OBJECT>

    <!-- Object creates minute hand for clock, structured graphic-->

    <OBJECT ID="sgMinuteHand"
     CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
     STYLE="POSITION:absolute; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200; Z-INDEX:5">
     <PARAM NAME="Line0001" VALUE="SetLineColor(255, 0, 0)">
     <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
     <PARAM NAME="Line0003" VALUE="SetFillColor(255,0,0)">
     <PARAM NAME="Line0004" VALUE="SetFillStyle(1)">
     <PARAM NAME="Line0005" VALUE="Rect(-5,-3,85,6,0)">
    </OBJECT>

    <!-- Object creates hour hand for clock, structured graphic -->

    <OBJECT ID="sgHourHand"
     CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"
     STYLE="POSITION:ABSOLUTE; TOP:0; LEFT:0; WIDTH:200; HEIGHT:200; Z-INDEX:5">
     <PARAM NAME="Line0001" VALUE="SetLineColor(0, 0, 255)">
     <PARAM NAME="Line0002" VALUE="SetLineStyle(1)">
     <PARAM NAME="Line0003" VALUE="SetFillColor(0,0,255)">
     <PARAM NAME="Line0004" VALUE="SetFillStyle(1)">
     <PARAM NAME="Line0005" VALUE="Rect(-5,-3,70,6,0)">
    </OBJECT>

    </div>
    </div>

    <!-- Sequencer, controls timing and continuation of clock motion -->

    <OBJECT ID="Seq"
     CLASSID="CLSID:B0A6BAE2-AAF0-11d0-A152-00A0C908DB96">
    </OBJECT>
     
    سكربت لتواقيت دول العالم
    11:12:04 pm
    طريقة التركيب

    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
      <form name="where">
     <table border="0" width="200" cellspacing="0" cellpadding="3">
    <tr>
        <td width="100%">
    <select name="city" size="1" onchange="updateclock(this);">
    <option selected>التوقيت المحلي</option>
    <option value="3">السعودية</option>
    <option value="4">الإمارات</option>
    <option value="3">الكويت</option>
    <option value="3">لبنان</option>
    <option value="4">عمان</option>
    <option value="3">قطر</option>
    <option value="3">مصر</option>
    <option value="0">المغرب</option>
    <option value="1">تونس</option>
    <option value="3">السودان</option>
    <option value="0">لندن</option>
    <option value="1">روما</option>
    <option value="7">بانكوك</option>
    <option value="8">هونكغ كونغ</option>
    <option value="9">طوكيو</option>
    <option value="10">سيدني</option>
    <option value="12">فوجي</option>
    <option value="-10">هاواي</option>
    <option value="-8">سان فرانسيسكو</option>
    <option value="-5">نيويورك</option>
    </select>
    </td>
      </tr>
      <tr>
        <td width="100%">
    <script language="JavaScript">

    /*
    Drop Down World Clock- By JavaScript Kit (http://www.javascriptkit.com)
    Portions of code by Kurt @ http://www.btinternet.com/~kurt.grigg/javascript
    This credit notice must stay intact
    Visit our site at http://www.star28.com/ for more code
    */

    if (document.all||document.getElementById)
    document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')

    zone=0;
    isitlocal=true;
    ampm='';

    function updateclock(z){
    zone=z.options[z.selectedIndex].value;
    isitlocal=(z.options[0].selected)?true:false;
    }

    function WorldClock(){
    now=new Date();
    ofst=now.getTimezoneOffset()/60;
    secs=now.getSeconds();
    sec=-1.57+Math.PI*secs/30;
    mins=now.getMinutes();
    min=-1.57+Math.PI*mins/30;
    hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
    hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
    if (hr < 0) hr+=24;
    if (hr > 23) hr-=24;
    ampm = (hr > 11)?"PM":"AM";
    statusampm = ampm.toLowerCase();

    hr2 = hr;
    if (hr2 == 0) hr2=12;
    (hr2 < 13)?hr2:hr2 %= 12;
    if (hr2<10) hr2="0"+hr2

    var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;

    if (document.all)
    worldclock.innerHTML=finaltime
    else if (document.getElementById)
    document.getElementById("worldclock").innerHTML=finaltime
    else if (document.layers){
    document.worldclockns.document.worldclockns2.document.write(finaltime)
    document.worldclockns.document.worldclockns2.document.close()
    }


    setTimeout('WorldClock()',1000);
    }

    window.onload=WorldClock
    //-->
    </script>

    <!--Place holder for NS4 only-->
    <ilayer id="worldclockns" width=100% height=35><layer id="worldclockns2" width=100% height=35 left=0 top=0 style="font:bold 16px Arial;"></layer></ilayer>
    </td></tr></table></form>
      
    عرض الساعة و التاريخ

    10/14/113
    11:12 P.M
    طريقة التركيب

    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
    <CENTER>
    <SCRIPT LANGUAGE="JavaScript">

    /* Visit our site at http://www.star28.com/ for more code
    *********************************************************/

    <!-- Begin
    Stamp = new Date();
    document.write('<font size="2" face="Arial"><B>' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear() + '</B></font><BR>');
    var Hours;
    var Mins;
    var Time;
    Hours = Stamp.getHours();
    if (Hours >= 12) {
    Time = " P.M ";
    }
    else {
    Time = " A.M ";
    }
    if (Hours > 12) {
    Hours -= 12;
    }
    if (Hours == 0) {
    Hours = 12;
    }
    Mins = Stamp.getMinutes();
    if (Mins < 10) {
    Mins = "0" + Mins;
    }
    document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');
    // End -->
    </SCRIPT>
    </CENTER>
      
    ساعة جميلة ترافق الماوس
    طريقة التركيب

    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
      <SCRIPT LANGUAGE="JavaScript1.2">

    /*
    Analog Clock III- Kurt Grigg (kurt.grigg@virgin.net)
    For full source code, 100's more DHTML scripts, and TOS,
    visit http://www.dynamicdrive.com
    * Visit our site at http://www.star28.com/ for more code
    This notice must stay intact for use */


    colors = new Array('330099','00ff00','ff00ff');  //Clock face colors.
    sCol = 'ff00ff';  //seconds colour.
    mCol = '00ff00';  //minutes colour.
    hCol = 'red';  //hours colour.
    //Alter nothing below!
    H = '***';
    H = H.split('');
    H = H.reverse();
    M = '****';
    M = M.split('');
    M = M.reverse();
    S = '*****';
    S = S.split('');
    S = S.reverse();
    dots = 12;
    var Ypos = 0,Xpos = 0,Ybase = 0,Xbase = 0;
    var ay = 0, ax = 0, Ay = 0, Ax = 0, by = 0, bx = 0, By = 0, Bx = 0, cy
    = 0, cx = 0, Cy = 0, Cx = 0, dy = 0, dx = 0, Dy = 0, Dx = 0;
    count = 0;
    count_a = 0;
    move = 1;
    ie4=document.all
    ns = (document.layers)?1:0;

    viz = (document.layers)?'hide':'hidden';
    if (ns) {
    for (i = 0; i < dots; i++)
    document.write('<layer name=nface'+i+' top=0 left=0 bgcolor=#000099 clip="0,0,3,3"></layer>');
    for (i = 0; i < S.length; i++)
    document.write('<layer name=nx'+i+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+sCol+'><center>'+S[i]+'</center></font></layer>');
    for (i = 0; i < M.length; i++)
    document.write('<layer name=ny'+i+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+mCol+'><center>'+M[i]+'</center></font></layer>');
    for (i = 0; i < H.length; i++)
    document.write('<layer name=nz'+i+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+hCol+'><center>'+H[i]+'</center></font></layer>');
    }
    else if (ie4){
    document.write('<div id="W" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < dots; i++) {
    document.write('<div id="face" style="position:absolute;top:0px;left:0px;width:3px;height:3px;font-size:3px;background:#000099"></div>');
    }
    document.write('</div></div>');
    document.write('<div id="X" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < S.length; i++) {
    document.write('<div id="x" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+sCol+';text-align:center;padding-top:10px">'+S[i]+'</div>');
    }
    document.write('</div></div>')
    document.write('<div id="Y" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < M.length; i++) {
    document.write('<div id="y" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+mCol+';text-align:center;padding-top:10px">'+M[i]+'</div>');
    }
    document.write('</div></div>')
    document.write('<div id="Z" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < H.length; i++) {
    document.write('<div id="z" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+hCol+';text-align:center;padding-top:10px">'+H[i]+'</div>');
    }
    document.write('</div></div>');
    }
    if (ns) {
    window.captureEvents(Event.MOUSEMOVE);
    function nsMouse(evnt) {
    Ypos = evnt.pageY + 100;
    Xpos = evnt.pageX + 100;
    }
    window.onMouseMove = nsMouse;
    }
    else if (ie4){
    function ieMouse() {
    Ypos = event.y + 100;
    Xpos = event.x + 100;
    }
    document.onmousemove = ieMouse;
    }
    function clock() {
    time = new Date ();
    secs = time.getSeconds();
    sec = -1.57 + Math.PI * secs / 30;
    mins = time.getMinutes();
    min = -1.57 + Math.PI * mins / 30;
    hr = time.getHours();
    hrs = -1.575 + Math.PI * hr / 6 + Math.PI * parseInt(time.getMinutes())
    / 360;
    Ybase = 15;
    Xbase = 15;

    if (ns) {
    document.layers["nx"+0].visibility = viz;
    document.layers["ny"+0].visibility = viz;
    document.layers["nz"+0].visibility = viz;
    for (i = 0; i < S.length; i++) {
    document.layers["nx"+i].top = ay - 12 + (i * Ybase) * Math.sin(sec);
    document.layers["nx"+i].left = ax - 12 + (i * Xbase) * Math.cos(sec);
    }
    for (i = 0; i < M.length; i++) {
    document.layers["ny"+i].top = by - 12 + (i * Ybase) * Math.sin(min);
    document.layers["ny"+i].left = bx - 12 + (i * Xbase) * Math.cos(min);
    }
    for (i = 0; i < H.length; i++) {
    document.layers["nz"+i].top = cy - 12 + (i * Ybase) * Math.sin(hrs);
    document.layers["nz"+i].left = cx - 12 + (i * Xbase) * Math.cos(hrs);
    }
    for (i = 0; i < dots; ++i) {
    document.layers["nface"+i].top = dy - 2 + (70 *
    Math.sin(-0.49+dots+i/1.9));
    document.layers["nface"+i].left = dx + 4 + (70 *
    Math.cos(-0.49+dots+i/1.9));
       }
    }
    else if (ie4) {
    var scrll = document.body.scrollTop;
    W.style.pixelTop = scrll;
    X.style.pixelTop = scrll;
    Y.style.pixelTop = scrll;
    Z.style.pixelTop = scrll;
    x[0].style.visibility=viz;
    y[0].style.visibility = viz;
    z[0].style.visibility = viz;
    for (i = 0; i < S.length; i++) {
    x[i].style.pixelTop = ay - 12 + (i * Ybase) * Math.sin(sec);
    x[i].style.pixelLeft = ax - 12 + (i * Xbase) * Math.cos(sec);
    }
    for (i = 0; i < M.length; i++) {
    y[i].style.pixelTop = by - 12 + (i * Ybase) * Math.sin(min);
    y[i].style.pixelLeft = bx - 12 + (i * Xbase) * Math.cos(min);
    }
    for (i = 0; i < H.length; i++) {
    z[i].style.pixelTop = cy - 12 + (i * Ybase) * Math.sin(hrs);
    z[i].style.pixelLeft = cx - 12 + (i * Xbase) * Math.cos(hrs);
    }
    for (i = 0; i < dots; ++i) {
    face[i].style.pixelTop = dy + 6 + (70 * Math.sin(-0.49 + dots + i /
    1.9));
    face[i].style.pixelLeft = dx + 4 + (70 * Math.cos(-0.49 + dots + i /
    1.9));
          }
       }
    }
    function MouseFollow() {
    ay = Math.round(Ay += ((Ypos) - Ay) * 4 / 15);
    ax = Math.round(Ax += ((Xpos) - Ax) * 4 / 15);
    by = Math.round(By += (ay - By) * 4 / 15);
    bx = Math.round(Bx += (ax - Bx) * 4 / 15);
    cy = Math.round(Cy += (by - Cy) * 4 / 15);
    cx = Math.round(Cx += (bx - Cx) * 4 / 15);
    dy = Math.round(Dy += (cy - Dy) * 4 / 15);
    dx = Math.round(Dx += (cx - Dx) * 4 / 15);
    clock();
    setTimeout('MouseFollow()',10);
    }

    function StartAll() {
    MouseFollow();
    }
    if (document.layers || document.all) window.onload = StartAll;
    //  End -->
    </script>
    ساعة جميلة ترافق الماوس
    طريقة التركيب
    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
      <SCRIPT LANGUAGE="JavaScript1.2">

    /*
    Analog Clock III- Kurt Grigg (kurt.grigg@virgin.net)
    For full source code, 100's more DHTML scripts, and TOS,
    visit http://www.dynamicdrive.com
    * Visit our site at http://www.star28.com/ for more code
    This notice must stay intact for use */


    colors = new Array('330099','00ff00','ff00ff');  //Clock face colors.
    sCol = 'ff00ff';  //seconds colour.
    mCol = '00ff00';  //minutes colour.
    hCol = 'red';  //hours colour.
    //Alter nothing below!
    H = '***';
    H = H.split('');
    H = H.reverse();
    M = '****';
    M = M.split('');
    M = M.reverse();
    S = '*****';
    S = S.split('');
    S = S.reverse();
    dots = 12;
    var Ypos = 0,Xpos = 0,Ybase = 0,Xbase = 0;
    var ay = 0, ax = 0, Ay = 0, Ax = 0, by = 0, bx = 0, By = 0, Bx = 0, cy
    = 0, cx = 0, Cy = 0, Cx = 0, dy = 0, dx = 0, Dy = 0, Dx = 0;
    count = 0;
    count_a = 0;
    move = 1;
    ie4=document.all
    ns = (document.layers)?1:0;

    viz = (document.layers)?'hide':'hidden';
    if (ns) {
    for (i = 0; i < dots; i++)
    document.write('<layer name=nface'+i+' top=0 left=0 bgcolor=#000099 clip="0,0,3,3"></layer>');
    for (i = 0; i < S.length; i++)
    document.write('<layer name=nx'+i+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+sCol+'><center>'+S[i]+'</center></font></layer>');
    for (i = 0; i < M.length; i++)
    document.write('<layer name=ny'+i+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+mCol+'><center>'+M[i]+'</center></font></layer>');
    for (i = 0; i < H.length; i++)
    document.write('<layer name=nz'+i+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+hCol+'><center>'+H[i]+'</center></font></layer>');
    }
    else if (ie4){
    document.write('<div id="W" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < dots; i++) {
    document.write('<div id="face" style="position:absolute;top:0px;left:0px;width:3px;height:3px;font-size:3px;background:#000099"></div>');
    }
    document.write('</div></div>');
    document.write('<div id="X" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < S.length; i++) {
    document.write('<div id="x" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+sCol+';text-align:center;padding-top:10px">'+S[i]+'</div>');
    }
    document.write('</div></div>')
    document.write('<div id="Y" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < M.length; i++) {
    document.write('<div id="y" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+mCol+';text-align:center;padding-top:10px">'+M[i]+'</div>');
    }
    document.write('</div></div>')
    document.write('<div id="Z" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i = 0; i < H.length; i++) {
    document.write('<div id="z" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+hCol+';text-align:center;padding-top:10px">'+H[i]+'</div>');
    }
    document.write('</div></div>');
    }
    if (ns) {
    window.captureEvents(Event.MOUSEMOVE);
    function nsMouse(evnt) {
    Ypos = evnt.pageY + 100;
    Xpos = evnt.pageX + 100;
    }
    window.onMouseMove = nsMouse;
    }
    else if (ie4){
    function ieMouse() {
    Ypos = event.y + 100;
    Xpos = event.x + 100;
    }
    document.onmousemove = ieMouse;
    }
    function clock() {
    time = new Date ();
    secs = time.getSeconds();
    sec = -1.57 + Math.PI * secs / 30;
    mins = time.getMinutes();
    min = -1.57 + Math.PI * mins / 30;
    hr = time.getHours();
    hrs = -1.575 + Math.PI * hr / 6 + Math.PI * parseInt(time.getMinutes())
    / 360;
    Ybase = 15;
    Xbase = 15;

    if (ns) {
    document.layers["nx"+0].visibility = viz;
    document.layers["ny"+0].visibility = viz;
    document.layers["nz"+0].visibility = viz;
    for (i = 0; i < S.length; i++) {
    document.layers["nx"+i].top = ay - 12 + (i * Ybase) * Math.sin(sec);
    document.layers["nx"+i].left = ax - 12 + (i * Xbase) * Math.cos(sec);
    }
    for (i = 0; i < M.length; i++) {
    document.layers["ny"+i].top = by - 12 + (i * Ybase) * Math.sin(min);
    document.layers["ny"+i].left = bx - 12 + (i * Xbase) * Math.cos(min);
    }
    for (i = 0; i < H.length; i++) {
    document.layers["nz"+i].top = cy - 12 + (i * Ybase) * Math.sin(hrs);
    document.layers["nz"+i].left = cx - 12 + (i * Xbase) * Math.cos(hrs);
    }
    for (i = 0; i < dots; ++i) {
    document.layers["nface"+i].top = dy - 2 + (70 *
    Math.sin(-0.49+dots+i/1.9));
    document.layers["nface"+i].left = dx + 4 + (70 *
    Math.cos(-0.49+dots+i/1.9));
       }
    }
    else if (ie4) {
    var scrll = document.body.scrollTop;
    W.style.pixelTop = scrll;
    X.style.pixelTop = scrll;
    Y.style.pixelTop = scrll;
    Z.style.pixelTop = scrll;
    x[0].style.visibility=viz;
    y[0].style.visibility = viz;
    z[0].style.visibility = viz;
    for (i = 0; i < S.length; i++) {
    x[i].style.pixelTop = ay - 12 + (i * Ybase) * Math.sin(sec);
    x[i].style.pixelLeft = ax - 12 + (i * Xbase) * Math.cos(sec);
    }
    for (i = 0; i < M.length; i++) {
    y[i].style.pixelTop = by - 12 + (i * Ybase) * Math.sin(min);
    y[i].style.pixelLeft = bx - 12 + (i * Xbase) * Math.cos(min);
    }
    for (i = 0; i < H.length; i++) {
    z[i].style.pixelTop = cy - 12 + (i * Ybase) * Math.sin(hrs);
    z[i].style.pixelLeft = cx - 12 + (i * Xbase) * Math.cos(hrs);
    }
    for (i = 0; i < dots; ++i) {
    face[i].style.pixelTop = dy + 6 + (70 * Math.sin(-0.49 + dots + i /
    1.9));
    face[i].style.pixelLeft = dx + 4 + (70 * Math.cos(-0.49 + dots + i /
    1.9));
          }
       }
    }
    function MouseFollow() {
    ay = Math.round(Ay += ((Ypos) - Ay) * 4 / 15);
    ax = Math.round(Ax += ((Xpos) - Ax) * 4 / 15);
    by = Math.round(By += (ay - By) * 4 / 15);
    bx = Math.round(Bx += (ax - Bx) * 4 / 15);
    cy = Math.round(Cy += (by - Cy) * 4 / 15);
    cx = Math.round(Cx += (bx - Cx) * 4 / 15);
    dy = Math.round(Dy += (cy - Dy) * 4 / 15);
    dx = Math.round(Dx += (cx - Dx) * 4 / 15);
    clock();
    setTimeout('MouseFollow()',10);
    }

    function StartAll() {
    MouseFollow();
    }
    if (document.layers || document.all) window.onload = StartAll;
    //  End -->
    </script>
    ساعة ترافق الماوس مع التاريخ
    طريقة التركيب
    انسخ هذا الكود و ضعه في منطقة HEAD

    الكود:
      <SCRIPT language=JavaScript>
    // Visit our site at http://www.star28.com/ for more code
    dCol='0000FF';//date colour.
    fCol='006600';//face colour.
    sCol='9900FF';//seconds colour.
    mCol='FF4500';//minutes colour.
    hCol='FF4500';//hours colour.
    ClockHeight=35;
    ClockWidth=35;
    ClockFromMouseY=0;
    ClockFromMouseX=100;

    //Alter nothing below! Alignments will be lost!
    d=new Array("WWW.STAR28.COM","WWW.STAR28.COM","WWW.STAR28.COM","WWW.STAR28.COM","WWW.STAR28.COM","WWW.STAR28.COM","WWW.STAR28.COM");
    m=new Array("JANUAR","FEBRUAR","MAERZ","APRIL","MAI","JUNI","JULI","AUGUST","SEPTEMBER","OKTOBER","NOVEMBER","DEZEMBER");
    date=new Date();
    day=date.getDate();
    year=date.getYear();
    if (year < 2000) year=year+1900;
    TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
    D=TodaysDate.split('');
    H='...';
    H=H.split('');
    M='....';
    M=M.split('');
    S='.....';
    S=S.split('');
    Face='1 2 3 4 5 6 7 8 9 10 11 12';
    font='Arial';
    size=1;
    speed=0.6;
    ns=(document.layers);
    ie=(document.all);
    Face=Face.split(' ');
    n=Face.length;
    a=size*10;
    ymouse=0;
    xmouse=0;
    scrll=0;
    props="<font face="+font+" size="+size+" color="+fCol+"><B>";
    props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
    Split=360/n;
    Dsplit=360/D.length;
    HandHeight=ClockHeight/4.5
    HandWidth=ClockWidth/4.5
    HandY=-7;
    HandX=-2.5;
    scrll=0;
    step=0.06;
    currStep=0;
    y=new Array();x=new Array();Y=new Array();X=new Array();
    for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
    Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
    for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
    if (ns){
    for (i=0; i < D.length; i++)
    document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
    for (i=0; i < n; i++)
    document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
    for (i=0; i < S.length; i++)
    document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
    for (i=0; i < M.length; i++)
    document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
    for (i=0; i < H.length; i++)
    document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
    }
    if (ie){
    document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < D.length; i++)
    document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
    document.write('</div></div>');
    document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < n; i++)
    document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
    document.write('</div></div>');
    document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < H.length; i++)
    document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
    document.write('</div></div>');
    document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < M.length; i++)
    document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
    document.write('</div></div>')
    document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    for (i=0; i < S.length; i++)
    document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
    document.write('</div></div>')
    }
    (ns)?window.captureEvents(Event.MOUSEMOVE):0;
    function Mouse(evnt){
    ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
    xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
    }
    (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
    function ClockAndAssign(){
    time = new Date ();
    secs = time.getSeconds();
    sec = -1.57 + Math.PI * secs/30;
    mins = time.getMinutes();
    min = -1.57 + Math.PI * mins/30;
    hr = time.getHours();
    hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
    if (ie){
    Od.style.top=window.document.body.scrollTop;
    Of.style.top=window.document.body.scrollTop;
    Oh.style.top=window.document.body.scrollTop;
    Om.style.top=window.document.body.scrollTop;
    Os.style.top=window.document.body.scrollTop;
    }
    for (i=0; i < n; i++){
     var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
     F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
     F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
     }
    for (i=0; i < H.length; i++){
     var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
     HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
     HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
     }
    for (i=0; i < M.length; i++){
     var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
     ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
     ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
     }
    for (i=0; i < S.length; i++){
     var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
     SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
     SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
     }
    for (i=0; i < D.length; i++){
     var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
     DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
     DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
     }
    currStep-=step;
    }
    function Delay(){
    scrll=(ns)?window.pageYOffset:0;
    Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
    Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
    for (i=1; i < D.length; i++){
    Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
    Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
    }
    y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
    x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
    for (i=1; i < n; i++){
    y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
    x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
    }
    ClockAndAssign();
    setTimeout('Delay()',20);
    }
    if (ns||ie)window.onload=Delay;
    </SCRIPT>
    الرجوع الى أعلى الصفحة اذهب الى الأسفل
    https://tsamem.alafdal.net
    الرسام
    Admin
    الرسام


    عدد المساهمات : 262
    تاريخ التسجيل : 11/10/2013

    اليكم مجموعة اكواد للساعات والتاريخ Empty
    مُساهمةموضوع: يتبع لمجموعة اكواد الساعات والتاريخ   اليكم مجموعة اكواد للساعات والتاريخ Emptyالإثنين أكتوبر 14, 2013 8:32 pm

    الوقت الذي مضى منذ تاريخ تحدده أنت
    3361 يوم و 23 ساعة و 17 دقيقة و 16 ثانية مضى منذ تم نشر الموقع
    طريقة التركيب
    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
      <script language="JavaScript1.2">

    /* Translated By www.sakrkuraish.netfirms.com - sakrkuraish@lycos.co.uk
    *Visit our site at http://www.star28.com/ for more code
    * This notice must stay intact for use */
    function setcountup(theyear,themonth,theday){
    yr=theyear;mo=themonth;da=theday
    }

    //////////إجراء التعديلات المناسبة من هنا//////////////////

    //STEP 1: Configure the date to count up from, in the format year, month, day:
    // عدل التاريخ بحيث يكون أقل من تاريخ اليوم
    setcountup(2004,08,01)

    //STEP 2: عدل الجملة إلى ما يناسبك
    var displaymessage="تم نشر الموقع "

    //STEP 3: تعديل الحجم واللون ...الخ
    var countupwidth='100%'
    var countupheight='20px' //applicable only in NS4
    var countupbgcolor=''
    var opentags='<font face="Times New Roman"><b><small>'
    var closetags='</small></font>'

    //////////لاتغير شئ في هذه المنطقة//////////////////

    var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
    var crosscount=''

    function start_countup(){
    if (document.layers)
    document.countupnsmain.visibility="show"
    else if (document.all||document.getElementById)
    crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
    countup()
    }

    if (document.all||document.getElementById)
    document.write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')

    window.onload=start_countup


    function countup(){
    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 todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
    paststring=montharray[mo-1]+" "+da+", "+yr
    dd=Date.parse(todaystring)-Date.parse(paststring)
    dday=Math.floor(dd/(60*60*1000*24)*1)
    dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
    dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
    dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)

    if (document.layers){
    document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags)
    document.countupnsmain.document.countupnssub.document.close()
    }
    else if (document.all||document.getElementById)
    crosscount.innerHTML=opentags+dday+ " يوم و "+dhour+" ساعة و "+dmin+" دقيقة و "+dsec+" ثانية مضى منذ  "+displaymessage+closetags

    setTimeout("countup()",1000)
    }
        </script>
      
    عرض التاريخ بالأشهر و الأيام

    الإثنين, 14تشرين أول , 113


    طريقة التركيب

    1- انسخ هذا الكود و ضعه في منطقة HEAD

    الكود:
    <SCRIPT language=JavaScript>

    /* Visit our site at http://www.star28.com/ for more code
    * Translated By www.star28.com
    * This notice must stay intact for use */

    <!-- Begin
    var day="";
    var month="";
    var myweekday="";
    var year="";
    mydate = new Date();
    myday = mydate.getDay();
    mymonth = mydate.getMonth();
    myweekday= mydate.getDate();
    weekday= myweekday;
    myyear= mydate.getYear();
    year = myyear
    if(myday == 0)
    day = " الأحد, "      
    else if(myday == 1)
    day = " الإثنين, "
    else if(myday == 2)
    day = " الثلاثاء, "  
    else if(myday == 3)
    day = " الاربعاء, "  
    else if(myday == 4)
    day = " الخميس, "
    else if(myday == 5)
    day = " الجمعة, "
    else if(myday == 6)
    day = " السبت, "
    if(mymonth == 0) {
    month = "كانون ثاني "}
    else if(mymonth ==1)
    month = "شباط "
    else if(mymonth ==2)
    month = "آذار "
    else if(mymonth ==3)
    month = "نيسان "
    else if(mymonth ==4)
    month = "أيار "
    else if(mymonth ==5)
    month = "حزيران "
    else if(mymonth ==6)
    month = "تموز "
    else if(mymonth ==7)
    month = "آب "
    else if(mymonth ==8)
    month = "أيلول "
    else if(mymonth ==9)
    month = "تشرين أول "
    else if(mymonth ==10)
    month = "تشرين ثاني "
    else if(mymonth ==11)
    month = "كانون أول "
    // End -->
    </SCRIPT>
      
    2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
    <CENTER>
    <SCRIPT>
    document.write("<b><font face=Tahoma color=#006600 size=1>" + day +myweekday   );
    document.write(month + ", " + year + "</font></b>");
    </SCRIPT>
    </CENTER>
    الساعة مع تاريخ ضمن جدول
    طريقة التركيب
    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
    <CENTER>
                      <SCRIPT language=JavaScript>
      
    /* Visit our site at http://www.star28.com/ for more code
    * This notice must stay intact for use
    * Translated By www.star28.com/
    */

        var timerID = null
        var timerRunning = false
        function stopclock()
        {
            if(timerRunning)
                clearTimeout(timerID)
            timerRunning = false
        }
        function startclock()
        {
            stopclock()
            showtime()
        }
        function showtime()
        {
            var now = new Date()
            var hours = now.getHours()
            var minutes = now.getMinutes()
            var seconds = now.getSeconds()
            var timeValue = "" + ((hours > 12) ? hours - 12 : hours)
            timeValue  += ((minutes < 10) ? ":0" : ":") + minutes
            timeValue  += ((seconds < 10) ? ":0" : ":") + seconds
            timeValue  += (hours >= 12) ? "PM" : "AM"
            document.clock.face.value = timeValue
           timerID = setTimeout("showtime()",1000)
            timerRunning = true
        }
    //-->
                                  </SCRIPT>

                      <FORM name=clock onsubmit=0><INPUT readOnly size=11
                     value=....Initializing.... name=face></FORM>
                      <SCRIPT language=JavaScript>
    <!-- Begin
    monthnames = new Array(
    "كانون الثاني",
    "شباط",
    "آذار",
    "نيسان",
    "أيار",
    "حزيران",
    "تموز",
    "آب",
    "أيلول",
    "تشرين الأول",
    "تشرين الثاني",
    "كانون الأول");
    var linkcount=0;
    function addlink(month, day, href) {
    var entry = new Array(3);
    entry[0] = month;
    entry[1] = day;
    entry[2] = href;
    this[linkcount++] = entry;
    }
    Array.prototype.addlink = addlink;
    linkdays = new Array();
    monthdays = new Array(12);
    monthdays[0]=31;
    monthdays[1]=28;
    monthdays[2]=31;
    monthdays[3]=30;
    monthdays[4]=31;
    monthdays[5]=30;
    monthdays[6]=31;
    monthdays[7]=31;
    monthdays[8]=30;
    monthdays[9]=31;
    monthdays[10]=30;
    monthdays[11]=31;
    todayDate=new Date();
    thisday=todayDate.getDay();
    thismonth=todayDate.getMonth();
    thisdate=todayDate.getDate();
    thisyear=todayDate.getYear();
    thisyear = thisyear % 100;
    thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
    if (((thisyear % 4 == 0)
    && !(thisyear % 100 == 0))
    ||(thisyear % 400 == 0)) monthdays[1]++;
    startspaces=thisdate;
    while (startspaces > 7) startspaces-=7;
    startspaces = thisday - startspaces + 1;
    if (startspaces < 0) startspaces+=7;
    document.write("<table border=2 bgcolor=#FFFFCC ");
    document.write("bordercolor=BLACK><font color=000000>");
    document.write("<tr><td colspan=7><center><strong>"
    + monthnames[thismonth] + " " + thisyear
    + "</strong></center></font></td></tr>");
    document.write("<tr>");
    document.write("<td bgcolor=#FFFF66 align=center><font color=BLACK face=tahoma size=2>الاحد</font></td>");
    document.write("<td bgcolor=#FFFF66 align=center><font color=BLACK face=tahoma size=2>الاثنين</font></td>");
    document.write("<td bgcolor=#FFFF66 align=center><font color=BLACK face=tahoma size=2>الثلاثاء</font></td>");
    document.write("<td bgcolor=#FFFF66 align=center><font color=BLACK face=tahoma size=2>الاربعاء</font></td>");
    document.write("<td bgcolor=#FFFF66 align=center><font color=BLACK face=tahoma size=2>الخميس</font></td>");
    document.write("<td bgcolor=#FFFF66 align=center><font color=BLACK face=tahoma size=2>الجمعة</font></td>");
    document.write("<td bgcolor=#FFFF66 align=center><font color=BLACK face=tahoma size=2>السبت</font></td>");
    document.write("</tr>");
    document.write("<tr>");
    for (s=0;s<startspaces;s++) {
    document.write("<td> </td>");
    }
    count=1;
    while (count <= monthdays[thismonth]) {
    for (b = startspaces;b<7;b++) {
    linktrue=false;
    document.write("<td>");
    for (c=0;c<linkdays.length;c++) {
    if (linkdays[c] != null) {
    if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
    document.write("<a href=\"" + linkdays[c][2] + "\">");
    linktrue=true;
          }
       }
    }
    if (count==thisdate) {
    document.write("<font color='FF0000'><strong>");
    }
    if (count <= monthdays[thismonth]) {
    document.write(count);
    }
    else {
    document.write(" ");
    }
    if (count==thisdate) {
    document.write("</strong></font>");
    }
    if (linktrue)
    document.write("</a>");
    document.write("</td>");
    count++;
    }
    document.write("</tr>");
    document.write("<tr>");
    startspaces=0;
    }
    document.write("</table></p>");
    // End -->
                                  </SCRIPT>

                      <SCRIPT language=JavaScript>
    <!--
        startclock()
    //-->
                                  </SCRIPT>
                      </CENTER>
    الوقت الذي قضيته بالصفحة
    طريقة التركيب
    1- انسخ هذا الكود و ضعه في منطقة HEAD

    الكود:
    <SCRIPT>

    /* Visit our site at http://www.star28.com/ for more code
     This notice must stay intact for use */

     <!--  Activate Cloaking Device



     var onHours = " ";

     var onMinutes = " ";


     var onSeconds = " ";



     var offHours = 0;

     var offMinutes = 0;

     var offSeconds = 0;



     var logSeconds = 0;

     var logMinutes = 0;

     var logHours = 0;



     var OnTimeValue = " ";

     var OffTimeValue = " ";

     var PageTimeValue = " ";



     // Back to previous page.

     function WinOpen()

       {

        getLogoffTime();

        window.location="js-timet.htm"

        window.location="js-timet.htm"   // double call for Mac users??

        }



     // Loads HTML page to full window for View Source.

     function WinOpen1()

       {

        alert('View/Document Source from menu bar..., then close new window to return to this page. The animation of the radio buttons on the JavaScript index will be dead upon return. Reload the JavaScript page to get them going again. ');

        window.open("js-timer.htm","DisplayWindow","menubar=yes,scrollbars=yes");

        }



     // Captures logon time.

     function getLogonTime()

        {

        var now = new Date();

        // Used to display logon time.

        var ampm = (now.getHours() >= 12) ? " مساءً" : " صباحاً"

        var Hours = now.getHours();

              Hours = ((Hours > 12) ? Hours - 12 : Hours);

        var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();


        var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

        // String to display log-on time.


        OnTimeValue =(" "


            + Hours


            + Minutes


            + Seconds


            + " "

            + ampm);



        // Capture logon time for use in timer().

        onHours = now.getHours();

        onMinutes = now.getMinutes();

        onSeconds = now.getSeconds();  

        }



     function getLogoffTime()

        {

        var now = new Date();

        // Used to display logoff time.

        var ampm = (now.getHours() >= 12) ? " مساءً" : " صباحاً"

        var Hours = now.getHours();

              Hours = ((Hours > 12) ? Hours - 12 : Hours);


        var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();


        var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

        // String to display log-off time.


        OffTimeValue =(" "


            + Hours


            + Minutes


            + Seconds


            + " "

            + ampm);



        // Capture logoff time for use in timer().

        offHours = now.getHours();

        offMinutes = now.getMinutes();

        offSeconds = now.getSeconds();



       timer();

       }



     // Compute difference between logoff time and logon time.

    function timer()

        {

       if (offSeconds >= onSeconds)

           { logSeconds = offSeconds - onSeconds; }

        else

           {

           offMinutes -= 1;

           logSeconds = (offSeconds + 60) - onSeconds;      

           }

        if (offMinutes >= onMinutes)

           { logMinutes = offMinutes - onMinutes; }

        else

           {

           offHours -= 1;

           logMinutes = (offMinutes + 60) - onMinutes;

           }

        logHours = offHours - onHours;



        // Used to display time on page.

        logHours =  ((logHours < 10) ? "0" : ":") + logHours;

        logMinutes = ((logMinutes < 10) ? ":0" : ":") + logMinutes;


        logSeconds = ((logSeconds < 10) ? ":0" : ":") +logSeconds;

        // String to display time on page.

        PageTimeValue =(" "


            + logHours


            + logMinutes


            + logSeconds);



        displayTimes();

        }



     function displayTimes()

        {

        alert("\n,وقت دخول الصفحة    : " +OnTimeValue+"\n\nالوقت الآن  : "+OffTimeValue+"\n\nالوقت الذي قضيته بالصفحة هو : " + PageTimeValue);

        }



     // Deactivate Cloaking -->

     </SCRIPT>
      
    2- غير <BODY> لتصبح على الشكل التالي

    الكود:
      <BODY onLoad="getLogonTime()">
    3- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
      <FORM><INPUT TYPE=button value="الوقت الذي قضيتة بالصفحة" onClick=getLogoffTime()></FORM>
     
    كود إخبارك بالوقت الذي أمضيته بالصفحة عند الخروج منها
    طريقة التركيب
    1- غير <BODY> لتصبح على الشكل التالي

    الكود:
    <BODY bgproperties="fixed" onunload="bye()">
      
    2- انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
    <script language="Javascript1.2">
    <!--
    // please keep these lines on when you copy the source
    // made by: Nicolas - http://www.javascript-page.com
    /* Visit our site at http://www.star28.com/ for more code
    * This notice must stay intact for use */

    var quickkey = 110
    var url = "java.htm"

    if(navigator.appName == "Netscape") {
    document.captureEvents(Event.KEYPRESS);
    }

    function qk(keyp){
    if(navigator.appName == "Netscape") {
    if (keyp.which == quickkey) window.location = url;
    }
    if (navigator.appVersion.indexOf("MSIE") != -1){
    if (event.keyCode == quickkey) window.location = url;
    }
    }

    document.onkeypress = qk
    //-->
    </script><br>
    <script language="Javascript">

    <!-- Begin
    pageOpen = new Date();
    function bye() {
    pageClose = new Date();
    minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
    seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
    time = (seconds + (minutes * 60));
    if (time == 1) {
    time = (time + " ثانية");
    }
    else {
    time = (time + " ثانية");
       }
    alert('مكثت في هذه الصفحة ' + time + '.  أتمنى أن تكون زيارتك لهذه الصفحة في المره القادمة أطول مدة من هذه الزيارة ... وشكراً');
    }
    // End -->
    </script>
      
    تاريخ آخر تحديث للموقع
    آخر تحديث للموقع كان بتاريخ 11/10/2009
    طريقة التركيب
    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY

    الكود:
      <SCRIPT LANGUAGE="JavaScript">
    var m = "آخر تحديث للموقع كان بتاريخ " + document.lastModified;
    var p = m.length-8;
    document.writeln("<center><center><font color=red face=tahoma size=2>");
    document.write(m.substring(p, 0));
    document.writeln("</font></center>");  
    </SCRIPT>
      
    مع تمنياتي لكم بالتوفيق
    الرجوع الى أعلى الصفحة اذهب الى الأسفل
    https://tsamem.alafdal.net
     
    اليكم مجموعة اكواد للساعات والتاريخ
    الرجوع الى أعلى الصفحة 
    صفحة 1 من اصل 1
     مواضيع مماثلة
    -
    » مجموعة اكواد شريط المعلومات
    » مجموعة اكواد لمؤثرات الماوس
    » مجموعة اكواد النوافذ التلقائية
    » مجموعة اكواد للصور و الإعلانات
    » محموعة اكواد لمؤثرات الألوان

    صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
     :: قسم الاكواد :: منتدى خاص بالاكواد :: اكواد الجافا-
    انتقل الى: