منتديات صبرة الهندسي   w w w . SABRAENG . C O M منتديات صبرة الهندسي

 



العضو المميز عزاء واجب (والدة الدكتور جمال صبره رحمها الله) المشرف المميز
قريبا اللهم ارحمها وادخلها فسيح جناتك واجعل قبرها روضة من رياض الجنة وأبدلها أهلا خيرا من أهلها ودارا خيرا من دارها وتجاوز عن سيئاتها وزد اللهم من حسناتها . اللهم يمن كتابها و يسر حسابها و لين ترابها و ثبت أقدامها و ألهمها حسن الجواب. بلقيس اليمن



العودة   منتديات صبرة الهندسي > قــســم الكمبيوتر والتكنولوجيا > منتدي تطوير المواقع والمنتديات


منتدي تطوير المواقع والمنتديات يهتم بالمواقع والمنتديات من حماية و برامج وشروحات وآخر اصدارت مجلة النيوك (php nuke) وهاكات واستايلات للمنتديات

 
 
أدوات الموضوع انواع عرض الموضوع
قديم 04-16-2007, 08:04 PM   رقم المشاركة : 1
معلومات العضو
معلومات العضو
إحصائية العضو







حالة النشاط : المستوى: []
الحياة: /
النشاط: /
الخـبـرة: %


Dr.Ahmed Sabra غير متصل

 مواضيع العضو


افتراضي جافا اسكريبت للتوقيت العالمى مع تقويم ميلادى

السلام عليكم ورحمة الله وبركاته

هذه الأكواد ليست من صنعى ولكنى نقلتها لتعم الفائدة وأتمنى ان تكون هى المطلوبة يا أخى الفلسطينى .

بالنسبة للساعة فالكود كالتالى


كود:
</html>
<table border="0" width="200" cellspacing="0" cellpadding="3">
<form name="where">
  <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%">
<****** ********="Java******">

/*
Drop Down World Clock- By Java****** Kit (http://www.java******kit.com)
Portions of code by Kurt @ http://www.btinternet.com/~kurt.grigg/java******
This credit notice must stay intact
*/

if (********.all||********.getElementById)
********.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 (********.all)
worldclock.innerHTML=finaltime
else if (********.getElementById)
********.getElementById("worldclock").innerHTML=finaltime
else if (********.layers){
********.worldclockns.********.worldclockns2.********.write(finaltime)
********.worldclockns.********.worldclockns2.********.close()
}


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

********onload=WorldClock
//-->
</******>

<!--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>

<font face="arial" size="-2">تم تحميل هذا السكريبت من </font>

<font size="2"> <a href="http://www.wxnwx.com" style="****-decoration: none">
<font color="#000080">موقع أصايل نجد </font> </a></font>
</td>
</form>
  </tr>
</table>


أما بالنسبة للتقويم فالكود كالتالى



كود:
<!-- ONE STEP TO INSTALL MONTHLY:  DAY HIGHLIGHTED:

   1.  Put the code into the BODY of your HTML ********  -->

<!-- STEP ONE: Copy this code into the HEAD your HTML ********  -->

<BODY>
<CENTER>

<****** ********="Java******">

<!--Total Java ******s 99 - Next Step Software-->

<!-- Begin
monthnames = new Array(
"January",
"Februrary",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"Decemeber");
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;
********.write("<table border=2 bgcolor=white ");
********.write("bordercolor=black><font color=black>");
********.write("<tr><td colspan=7><center><strong>" 
+ monthnames[thismonth] + " " + thisyear 
+ "</strong></center></font></td></tr>");
********.write("<tr>");
********.write("<td align=center>Su</td>");
********.write("<td align=center>M</td>");
********.write("<td align=center>Tu</td>");
********.write("<td align=center>W</td>");
********.write("<td align=center>Th</td>");
********.write("<td align=center>F</td>");
********.write("<td align=center>Sa</td>"); 
********.write("</tr>");
********.write("<tr>");
for (s=0;s<startspaces;s++) {
********.write("<td> </td>");
}
count=1;
while (count <= monthdays[thismonth]) {
for (b = startspaces;b<7;b++) {
linktrue=false;
********.write("<td>");
for (c=0;c<linkdays.length;c++) {
if (linkdays[c] != null) {
if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
********.write("<a href=\"" + linkdays[c][2] + "\">");
linktrue=true;
      }
   }
}
if (count==thisdate) {
********.write("<font color='FF0000'><strong>");
}
if (count <= monthdays[thismonth]) {
********.write(count);
}
else {
********.write(" ");
}
if (count==thisdate) {
********.write("</strong></font>");
}
if (linktrue)
********.write("</a>");
********.write("</td>");
count++;
}
********.write("</tr>");
********.write("<tr>");
startspaces=0;
}
********.write("</table></p>");
// End -->
</******>
</CENTER>

<!-- ****** Size:  2.98 KB  -->






  رد مع اقتباس

 


الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 
أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
الانتقال السريع

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
تقويم ميلادي على الاكسل الدكتور جمال منتدي الــبــرامـــج 7 03-15-2008 02:14 PM



الساعة الآن 12:04 AM.