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

Montada Disco

افلام | اغانى | كليبات | برامج | شبابيات | اخرى
 
الرئيسيةأحدث الصورالتسجيلدخول

 

 ساعة ذات خلفية سوداء - LCD Clock

اذهب الى الأسفل 
كاتب الموضوعرسالة
M.a.Z.i.K.a.W.y

ساعة ذات خلفية سوداء - LCD Clock  Default6
M.a.Z.i.K.a.W.y


ذكر
الميزان
عدد المساهمات : 172
نقاط : 26756
تاريخ الميلاد : 22/10/1995
تاريخ التسجيل : 15/11/2010
العمر : 28
الموقع : disco.roo7.biz
العمل/الترفيه : Internet
المزاج : Ray2

ساعة ذات خلفية سوداء - LCD Clock  Empty
مُساهمةموضوع: ساعة ذات خلفية سوداء - LCD Clock    ساعة ذات خلفية سوداء - LCD Clock  Emptyالثلاثاء ديسمبر 07, 2010 11:23 am

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

<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'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
else
clockobj.innerHTML=hours+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
}
alternate=(alternate==0)? 1 : 0
setTimeout("show()",1000)
}
window.onload=show

//-->
</script></div>


الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://disco.roo7.biz
 
ساعة ذات خلفية سوداء - LCD Clock
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
Montada Disco :: جافا :: قسم الجافا - Java-
انتقل الى: