ktkot syria مدير المنتدى
ادارة المنتدى : عارضة الطاقة : عدد المساهمات : 3522 نقاط : 1337032 تاريخ التسجيل : 09/01/2009 العمر : 31 الموقع : https://katkot.yoo7.com/
| موضوع: كود ساعة وتحية الجمعة يناير 22, 2010 10:24 am | |
| <html> <head> <title>Floating Time</title> <script language="JavaScript">
// Instructions: // This script combines a bunch of different scripts together to // create the effect of a "floating clock." First off, the browser // requirements are IE 4.0+. Other browsers will work, // but the clock will be in the status bar. Don't worry, there's // a browser detector included, to keep the script completely bug-free. // I've commented out all of the different sections, to try and make // it a little easier to understand. Here's a list of the features that // this "mega-script" includes: Real time clock, message based on the time, // browser detector, floating display, and AM/PM. There's very little // that you have to do to set this up; just the font size and color.
// Start Time Function function makeclock() {
// Declare the time variables var runTime = new Date() var hours = runTime.getHours() var minutes = runTime.getMinutes() var seconds = runTime.getSeconds() var dn = "AM" var msg = null if (hours > 12) { dn = "PM" hours -= 12 } if (hours == 0) { hours = 12 }
// After all the definitions for "hours" are done, make the timely messages if (hours <= 12 && dn == "AM") { msg = "صباح الخير" } else if (hours <= 5 && dn == "PM") { msg = "مساء الخير" } else { msg = "مساء الورد" } // Continue on with regular time function if (minutes <= 9) { minutes = "0" + minutes }
if (seconds <= 9) { seconds = "0" + seconds; }
currtime = hours + ":" + minutes + ":" + seconds + " " + dn // Make sure that the browser is IE 4.0+ or compatible if (document.all) { currtime += "<br>" + msg var html document.all.clockface.innerHTML = currtime } // If the browser's not IE 4.0+, the clock displays in the status bar else { currtime += " - " + msg window.status = currtime } // Make sure that the clock keeps going var keepgoing = setTimeout("makeclock()", 1000) // Start the floater function check() } // End Time Function
// Start floater code var mover = null
if (navigator.appName.indexOf("Netscape") != -1) { var mover = "document.clockface.top = window.pageYOffset" } else { var mover = "clockface.style.pixelTop = document.body.scrollTop + 10" }
function check() { object = "clockface" eval(mover) setTimeout("check()", 0) } // End floater code
</script> </head>
<!-- Don't forget the onLoad event handler --> <body onLoad="makeclock()">
<!-- Begin Style Sheet --> <!-- (to make the clock look pretty) --> <style type="text/css"> #clockface { background-color : White; border: 2px solid black; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 10pt; font-style : normal; padding : 1; color : Black; position:absolute; visibility:show; left:10px; top:10px; z-index:0 } </style>
<!-- End Style Sheet -->
<!-- Begin Clockface HTML --> <div id="float"> <div id="clockface"> </div> </div> <!-- End Clockface HTML -->
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> </body> </html>
|
| |
|
vip vip
ادارة المنتدى : v*i*p : عارضة الطاقة : عدد المساهمات : 2466 نقاط : 524535 تاريخ التسجيل : 24/03/2009 العمر : 31 الموقع : katkot.yoo7.com
| موضوع: رد: كود ساعة وتحية الأحد يناير 24, 2010 4:45 am | |
| | |
|
vip vip
ادارة المنتدى : v*i*p : عارضة الطاقة : عدد المساهمات : 2466 نقاط : 524535 تاريخ التسجيل : 24/03/2009 العمر : 31 الموقع : katkot.yoo7.com
| موضوع: رد: كود ساعة وتحية الأحد يناير 24, 2010 4:45 am | |
| العضو 'vip' قام بالعملية التالية: رمي النرد
'رمي النرد1' : 36 | |
|
بحر سوبر عضو
عارضة الطاقة : عدد المساهمات : 182 نقاط : 496446 تاريخ التسجيل : 18/04/2009 العمر : 34
| موضوع: رد: كود ساعة وتحية الأحد يناير 24, 2010 11:52 am | |
| | |
|
مرحبا عضو نشيط
عارضة الطاقة : عدد المساهمات : 70 نقاط : 495790 تاريخ التسجيل : 18/04/2009 العمر : 34
| موضوع: رد: كود ساعة وتحية الثلاثاء يناير 26, 2010 2:43 am | |
| | |
|
vip vip
ادارة المنتدى : v*i*p : عارضة الطاقة : عدد المساهمات : 2466 نقاط : 524535 تاريخ التسجيل : 24/03/2009 العمر : 31 الموقع : katkot.yoo7.com
| موضوع: رد: كود ساعة وتحية الثلاثاء يناير 26, 2010 2:43 am | |
| العضو 'مرحبا' قام بالعملية التالية: رمي النرد
'نرد المنتدى' : 6 | |
|