المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كود code السآعة والتآريخ هجري وميلآدي بشكل رآئع



said
10-31-2013, بتوقيت غرينيتش 06:03 AM
http://www.dzbatna.com/images/icons/iconrote.gif ظƒظˆط¯ ط§ظ„ط³ط¢ط¹ط© ظˆط§ظ„طھط¢ط±ظٹط® ظ‡ط¬ط±ظٹ ظˆظ…ظٹظ„ط¢ط¯ظٹ ط¨ط´ظƒظ„ ط±ط¢ط¦ط¹ (http://www.dzbatna.com/t1495023/)



آلسلآم عليكم ..

كود code آلسآعة و آلتآريخ هجري و ميلآدي بشكل رآئع ..

الكود code تم تعديله للآخ مكس عرب في هذا الموضوع تاريخ و ساعه بدون فلاش وبنفس لون استايل styleك (http://dzbatna.net/vb/showthread.php?t=1493575) بناءآ ع طلب بعض الأخوة وبالآخص الآخ ميلآدي وتم تجربة آلكود code في منتداه ..




لمشآهدة مثآل >> http://melladi.net/vb/index.php

طريقة التركيب install :
من لوحة تحكم المنتدى forum >> الآستايل styleآت والقوالب >> البحث في قوالب الاستايل style المرآد أضافة الكود code فيه>> قالب template الفوتر footer

وقم بالبحث في الفوتر عن :
رمز Code:
<div class=&quot;smallfont&quot; align=&quot;center&quot;>$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
واستبدله باالكود code التالي :
رمز Code:
<!-- بدآية كود code آلتآريخ هجري وميلآدي by baby_ksa --> <div class=&quot;smallfont&quot; align=&quot;center&quot;> <div align=&quot;center&quot;> <table cellpadding=&quot;$stylevar[cellpadding]&quot; cellspacing=&quot;$stylevar[cellspacing]&quot; border=&quot;0&quot; class=&quot;tborder&quot; width=&quot;58%&quot; id=&quot;table2&quot;> <tr> <td class=&quot;alt1&quot;> <div class=&quot;alt2Active&quot; style=&quot;padding:6px; border:1px inset; overflow:auto&quot;> <div id=&quot;postmenu_344900&quot;> <center><script language=&quot;JavaScript&quot;> var fixd; function isGregLeapYear(year) { return year%4 == 0 && year%100 != 0 || year%400 == 0; } function gregToFixed(year, month, day) { var a = Math.floor((year - 1) / 4); var b = Math.floor((year - 1) / 100); var c = Math.floor((year - 1) / 400); var d = Math.floor((367 * month - 362) / 12); if (month <= 2) e = 0; else if (month > 2 && isGregLeapYear(year)) e = -1; else e = -2; return 1 - 1 + 365 * (year - 1) + a - b + c + d + e + day; } function Hijri(year, month, day) { this.year = year; this.month = month; this.day = day; this.toFixed = hijriToFixed; this.toString = hijriToString; } function hijriToFixed() { return this.day + Math.ceil(29.5 * (this.month - 1)) + (this.year - 1) * 354 + Math.floor((3 + 11 * this.year) / 30) + 227015 - 1; } function hijriToString() { var months = new Array(&quot;محرم&quot;,&quot;صفر&quot;,&quot;ربيع أول&quot;,&quot;ربيع ثانى&quot;,&quot;جمادى أول&quot;,&quot;جمادى ثانى&quot;,&quot;رجب&quot;,&quot;شعبان&quot;,&quot;رمضان&quot;,&quot;شوال&quot;,&quot;ذو القعدة&quot;,&quot;ذو الحجة&quot;); return this.day + &quot; &quot; + months[this.month - 1]+ &quot; &quot; + this.year; } function fixedToHijri(f) { var i=new Hijri(1100, 1, 1); i.year = Math.floor((30 * (f - 227015) + 10646) / 10631); var i2=new Hijri(i.year, 1, 1); var m = Math.ceil((f - 29 - i2.toFixed()) / 29.5) + 1; i.month = Math.min(m, 12); i2.year = i.year; i2.month = i.month; i2.day = 1; i.day = f - i2.toFixed() + 1; return i; } var tod=new Date(); var weekday=new Array(&quot;الأحد&quot;,&quot;الإثنين&quot;,&quot;الثلاثاء&quot;,&quot;الأربعاء&quot;,&quot;الخ ميس&quot;,&quot;الجمعة&quot;,&quot;السبت&quot;); var monthname=new Array(&quot;يناير&quot;,&quot;فبراير&quot;,&quot;مارس&quot;,&quot;إبريل&quot;,&quot;مايو&quot;,&quot;يوني و&quot;,&quot;يوليو&quot;,&quot;أغسطس&quot;,&quot;سبتمبر&quot;,&quot;أكتوبر&quot;,&quot;نوفمبر&quot;,&quot;ديس مبر&quot;); var y = tod.getFullYear(); var m = tod.getMonth(); var d = tod.getDate(); var dow = tod.getDay(); document.write(weekday[dow] + &quot; &quot; + d + &quot; &quot; + monthname[m] + &quot; &quot; + y); m++; fixd=gregToFixed(y, m, d); var h=new Hijri(1421, 11, 28); h = fixedToHijri(fixd); document.write(&quot; ميلادى - &quot; + h.toString() + &quot; هجرى &nbsp;&nbsp;&quot;); var s=tod.getSeconds(); var m=tod.getMinutes(); var h=tod.getHours(); var am_pm; if (s<10) {s=&quot;0&quot; + s} if (m<10) {m=&quot;0&quot; + m} if (h>12) {h-=12;am_pm = &quot;مساءً.&quot;} else {am_pm=&quot;صباحاً.&quot;} if (h<10) {h=&quot;0&quot; + h} document.write(&quot; الساعة الان &quot; + h + &quot;:&quot; + m + &quot;:&quot; + s + &quot; &quot; + am_pm); </script></center> </td> </tr> </table> <!-- نهآية كود code آلتآريخ هجري وميلآدي by baby_ksa -->
ثم حفظ ..

الكود code مرفق .. ولمن يوآجه مشكلة في التركيب install ارفاق قالب template الفوتر ليتم تركيب installه ..

تم التعديل لإضافة الساعة للكود code ..

,,








التعديل الأخير كان بواسطة baby_ksa; 08 - 03 - 2014 الساعة 17:24 السبب: إضآفة كود code السآعة

ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)

الملفات المرفقة
http://www.traidnt.net/vb/images/attach/txt.gif كود الساعة و التاريخ هجري وميلآدي بشكل رآئع.txt (http://www.traidnt.net/vb/attachments/463177d1268058246-كود-الساعة-و-التاريخ-هجري-وميلآدي-بشكل-رآئع.txt) (2.8 كيلوبايت, عدد مرات المشاهدة 214 مرة)


https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى