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

مشاهدة النسخة كاملة : عندي واجة كيف اجعلها متمددة



loulou ange
10-30-2013, بتوقيت غرينيتش 06:53 AM
السلام عليكم
عندي واجة كيف اجعلها متمددة
وهم اريد اضيف هذا الكود code تبع الوقت في التصميم ولكن ماعرف يعني اريد اضيفة فوق صورة او كذة
رمز Code:
<span class=&quot;date-time&quot;> <script language=&quot;javascript&quot; type=&quot;text/javascript&quot;> var currentTime = new Date() var weekday=new Array(&quot;الأحد&quot;,&quot;الإثنين&quot;,&quot;الثلاثاء&quot;,&quot;الأربعاء&quot;,&quot;الخ ميس&quot;, &quot;الجمعة&quot;,&quot;السبت&quot;) var montharray=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 day = currentTime.getDate() var month = currentTime.getMonth() var year = currentTime.getFullYear() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() var suffix = &quot;صباحاً&quot;; if (hours >= 12) { suffix = &quot;مساءً&quot;; //suffix = &quot;مساءاً&quot;; hours = hours - 12; } if (hours == 0) { hours = 12; } if (minutes < 10) minutes = &quot;0&quot; + minutes document.write(hours + &quot;:&quot; + minutes + &quot; &quot;+ suffix + &quot; | &quot; +weekday[currentTime.getDay()]+&quot; &quot;+ day + &quot; &quot; + montharray[month] + &quot; &quot; + year) </script> </span> </td></tr></table>








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

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


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