Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

أكواد الجافا

أكواد  الجافا عبارة عن أكواد تستخدم في إضافة بعض الأشياء لمواقع الإنترنت

<p align="center"><strong><font face="Arial"><a href="http://www.hdrmut.com/cgi-bin/gb/guest.pl?301251017634079:1:0">التوقيع بسجل الزوار</a> <a
href="http://www.hdrmut.com"><img src="http://www.hdrmut.com/gb/image.gif" alt="سجل زوار مجاني"
border="0"></a> <a href="http://www.hdrmut.com/cgi-bin/gb/multi.pl?301251017634079:1:0">مشاهدة سجل الزوار</a></font></strong></p>
 

كود لعمل سجل زوار

 

<head>

<style>

<!--A:link {text-decoration: none;  color: #0000ff;}A:visited {text-decoration: none;  color: #0000FF;}A:active {text-decoration: none;  color:#FF0000; }A:hover {text-decoration: none; color:  #ff0000;font-size:16 ;}//-->

</style>

</head>

 لالغاء الخطوط التي تظهر تحت الوصلات

 

<script language="JavaScript">

 

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

 

<!-- Hide from old browsers

var Color= new Array(9);

Color[1] = "ff";

Color[2] = "ee";

Color[3] = "dd";

Color[4] = "cc";

Color[5] = "bb";

Color[6] = "aa";

Color[7] = "99";

Color[8] = "88";

Color[9] = "77";

Color[10] = "66";

Color[11] = "55";

Color[12] = "44";

Color[13] = "33";

Color[14] = "22";

Color[15] = "11";

Color[16] = "00";

/* Do not display text on a fading background. Instead, let it

fade in and out once or twice, then load a new page.        */

function fadeIn(where) {

if (where >= 1) {

document.bgColor="#" + Color[where] +"0000";  

where -= 1;

setTimeout("fadeIn("+where+")", 15);

} else {

setTimeout('fadeOut(1)', 15);

   }

}

function fadeOut(where) {

if (where <=16) {

document.bgColor="#" + Color[where] +"0000";

where += 1;

setTimeout("fadeOut("+where+")", 15)

} else {

setTimeout("fadeIn(16)", 15);

// window.location.href="http://www.netscape.com/";

   }

}

// Unhide -->

</script>

 

ثم انسخ هذا الكود في منطقة الجسم

<body onload="fadeIn(16)">

هذا الكود لعمل خلفيه مضيئه..فلاش

<script language="JavaScript">

<!--

 

function backbs(clr) {

document.bgColor = clr

}

 

//-->

</script>

<form>

<input type="button" value="ازرق فاتح" onclick="backbs('aqua')">

<input type="button" value="اصفر" onclick="backbs('yellow')">

<input type="button" value="أحمر " onclick="backbs('red')">

<input type="button" value="ابيض" onclick="backbs('white')">

<input type="button" value="رصاصي" onclick="backbs('gray')">

</form>

هذا الكود يجعل الزائر يختار لون الخلفيه لصفحتك

 

 

<FORM name="back">

<SELECT name="g" onCهذا الكود يجعل الزائر يختار لون الخلفيه لصفحتك

 

اضفط على الألوان وشاهد بنفسك

 

hange="change()">

    <OPTION VALUE="aqua">ازرق فاتح

    <OPTION VALUE="green">اخضر

    <OPTION VALUE="orange">برتقالي

    <OPTION VALUE="yellow">اصفر

    <OPTION VALUE="purple">بنفسجي

    <OPTION VALUE="gray">رصاصي

    <OPTION VALUE="pink">وردي

    <OPTION VALUE="lavender">جي فاتح

    <OPTION VALUE="khaki">ككاوي

    <OPTION VALUE="skyblue">ازرق سماوي

    <OPTION VALUE="white" SELECTED>ابيض

</SELECT>

<INPUT TYPE="button" VALUE="اختار اللون">

</FORM>

<script language="Javascript">

<!--

//http://www.geocities.com/planet9000

function change() {

document.bgColor = document.back.g.options[document.back.g.selectedIndex].value

}

 

//-->

</script>

هذا الكود ايضا لاختيار لون الخلفيه ولكن بطريقه أخرى رائعه وسهله

 

 

<!--webbot

bot="HTMLMarkup" endspan --><!--webbot bot="HTMLMarkup"

startspan --><script language="JavaScript">

<!-- The JavaScript Source!! http://Stop.at/Alnadeem -->

function vote () {

vote4alnadeem=window.open("http://arank.com/cgi-bin/rank/rankem.cgi?action=in&id=meshal4m");

 

} function cancel () {}

 

if (confirm("هل ترشحني لأفضل 100 موقع عربي")) { vote();

 

} else cancel()

// --></script><!--webbot bot="HTMLMarkup" endspan --></p>

<div align="center"><center>

هذا الكود للوحه الترشيح لموقعك والتي تظهر لك بمجرد دخول الصفحه

(ملاحظه : عليك بتبديل العنوان الموجود بوصلة الترشيح الخاصه بك

 

<script language="JavaScript1.2">              

              

//change 1 to another integer to alter the scroll speed. Greater is faster              

var speed=1              

var currentpos=0,alt=1,curpos1=0,curpos2=-1              

function initialize(){               

startit()              

}              

function scrollwindow(){              

if (document.all)              

temp=document.body.scrollTop              

else              

temp=window.pageYOffset              

if (alt==0)              

alt=1               

else              

alt=0              

if (alt==0)              

curpos1=temp              

else              

curpos2=temp              

if (curpos1!=curpos2){              

if (document.all)              

currentpos=document.body.scrollTop+speed              

else              

currentpos=window.pageYOffset+speed              

window.scroll(0,currentpos)              

}              

else{              

currentpos=30              

window.scroll(0,currentpos)              

}               

}              

function startit(){              

setInterval("scrollwindow()",30)              

}              

window.onload=initialize              

</script>

 

هذا الكود يجعل الصفحه تعرض نفسها

 

<!-- TWO STEPS TO INSTALL STARS:

 

  1.  Copy the coding into the HEAD of your HTML document

  2.  Add the last code into the BODY of your HTML document  -->

 

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

 

<HEAD>

 

<style type="text/css">

<!-- Begin CSS

#a { position: absolute; top: 10px; left: 10px; visibility: visible }

#b { position: absolute; top: 10px; left: 10px; visibility: visible }

#c { position: absolute; top: 10px; left: 10px; visibility: visible }

#d { position: absolute; top: 10px; left: 10px; visibility: visible }

#e { position: absolute; top: 10px; left: 10px; visibility: visible }

#f { position: absolute; top: 10px; left: 10px; visibility: visible }

#g { position: absolute; top: 10px; left: 10px; visibility: visible }

End CSS -->

</style>

</HEAD>

 

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

 

<BODY>

 

<layer name="a0" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,2,2"></layer>

<layer name="a1" left=10 top=10 visibility=show bgcolor="#ff8000" clip="0,0,2,2"></layer>

<layer name="a2" left=10 top=10 visibility=show bgcolor="#ffff00" clip="0,0,2,2"></layer>

<layer name="a3" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,2,2"></layer>

<layer name="a4" left=10 top=10 visibility=show bgcolor="#0000ff" clip="0,0,2,2"></layer>

<layer name="a5" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,2,2"></layer>

<layer name="a6" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,2,2"></layer>

 

<div id="starsDiv" style="position:absolute;top:0px;left:0px">

<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"></div>

<div style="position:relative;width:2px;height:2px;background:#ffff00;font-size:2px;visibility:visible"></div>

<div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"></div>

<div style="position:relative;width:2px;height:2px;background:#ff0000;font-size:2px;visibility:visible"></div>

<div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"></div>

<div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div>

<div style="position:relative;width:2px;height:2px;background:#FF00FF;font-size:2px;visibility:visible"></div>

</div>

 

<script language="JavaScript">

 

<!-- Original:  freeware.de -->

<!-- Web Site:  http://freeware.de -->

<!-- MSIE Fix by:  Kurt Grigg (kurt.grigg@virgin.net) -->

 

<!--  Begin

if (document.layers) {

window.captureEvents(Event.MOUSEMOVE);

}

var yBase = 200;

var xBase = 200;

var yAmpl = 10;

var yMax = 40;

var step = .2;

var ystep = .5;

var currStep = 0;

var tAmpl=1;

var Xpos = 1;

var Ypos = 1;

var i = 0;

var j = 0;

if (document.all) {

function MoveHandler(){

Xpos = document.body.scrollLeft + event.x;

Ypos = document.body.scrollTop + event.y;

}

document.onmousemove = MoveHandler;

}

else if (document.layers) {

function xMoveHandler(evnt) {

Xpos = evnt.pageX;

Ypos = evnt.pageY;

}

window.onMouseMove = xMoveHandler;

}

function animateLogo() {

if (document.all) {

yBase = window.document.body.offsetHeight / 4;

xBase = window.document.body.offsetWidth / 4;

}

else if (document.layers) {

yBase = window.innerHeight / 4;

xBase = window.innerWidth / 4;

}

if (document.all) {

for (i = 0 ; i < starsDiv.all.length; i++) {

starsDiv.all[i].style.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);

starsDiv.all[i].style.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);

   }

}

else if (document.layers) {

for (j = 0; j < 7; j++) { //7 is number of NS layers!

var templayer="a" + j;

document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);

document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);

   }

}

currStep += step;

setTimeout("animateLogo()", 10);

}

animateLogo();

// End -->

</script>

 

<p><center>

<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>

 

<!-- Script Size:  4.21 KB -->

هذا الكود رائع جدا لعمل تأثيرات مع الماوس..جربه الآن

 

<!-- THREE STEPS TO INSTALL MOUSE BANNER:

 

  1.  Copy the coding into the HEAD of your HTML document

  2.  Add the last code into the BODY tag your HTML document

  3.  Put the final code inside the BODY of your HTML page   -->

 

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

 

<HEAD>

 

<style>.spanstyle {

                COLOR: white; FONT-FAMILY: Verdana; FONT-SIZE: 8pt; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px; VISIBILITY: visible

}

</style>

 

<SCRIPT LANGUAGE="JavaScript">

<!-- Original:  Peter Gehrig  -->

<!-- Web Site:  http://www.24fun.ch -->

 

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

 

<!-- Begin

var x, y;

var step = 10;

var flag = 0;

 

var message = "JavaScript is so cool !! ";

message = message.split("");

var xpos = new Array();

for (i = 0; i <= message.length - 1; i++) {

xpos[i] = -50;

}

var ypos = new Array();

for (i = 0; i <= message.length - 1; i++) {

ypos[i]= -50;

}

function handlerMM(e) {

x = (document.layers) ? e.pageX : document.body.scrollLeft + event.clientX;

y = (document.layers) ? e.pageY : document.body.scrollTop + event.clientY;

flag = 1;

}

function makesnake() {

if (flag == 1 && document.all) {

for (i = message.length - 1; i >= 1; i--) {

xpos[i] = xpos[i - 1] + step;

ypos[i] = ypos[i - 1];

}

xpos[0] = x + step;

ypos[0] = y;

for (i = 0; i < message.length - 1; i++) {

var thisspan = eval("span" + (i) + ".style");

thisspan.posLeft = xpos[i];

thisspan.posTop = ypos[i];

   }

}

else if (flag==1 && document.layers) {

for (i = message.length - 1; i >= 1; i--) {

xpos[i] = xpos[i - 1] + step;

ypos[i] = ypos[i - 1];

}

xpos[0] = x + step;

ypos[0] = y;

for (i = 0; i < message.length - 1; i++) {

var thisspan = eval("document.span" + i);

thisspan.left = xpos[i];

thisspan.top = ypos[i];

   }

}

var timer = setTimeout("makesnake()", 10);

}

// End -->

</script>

</HEAD>

 

<!-- STEP TWO: Copy this code into the BODY tag od your HTML document  -->

 

<body bgcolor="#000080" text="#000000" onload="makesnake()"

style="OVERFLOW-X: hidden; OVERFLOW-Y: scroll; WIDTH: 100%">

 

<!-- STEP THREE: Put the final code inside the BODY of your HTML document  -->

 

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

for (i = 0; i <= message.length-1; i++) {

document.write("<span id='span"+i+"' class='spanstyle'>");

document.write(message[i]);

document.write("</span>");

}

if (document.layers) {

document.captureEvents(Event.MOUSEMOVE);

}

document.onmousemove = handlerMM;

// End -->

</script>

 

<p><center>

<font face="arial, helvetica" SIZE="-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>

 

<!-- Script Size:  2.08 KB -->

هذا الكود لعمل نص يتبع الماوس..ولكن اتبع الخطوات بداخل هذا الكود

 

 

!-- TWO STEPS TO INSTALL SNOW:

 

  1.  Copy the coding into the BODY of your HTML document

  2.  Save the snow.gif image to your web site directory  -->

 

<!-- STEP ONE: Paste this code into the BODY of your HTML document  -->

 

<BODY>

 

<SCRIPT LANGUAGE="JavaScript1.2">

<!-- Original:  Altan (snow@altan.hr) -->

<!-- Web Site:  http://www.altan.hr/snow -->

 

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

 

<!-- Begin

var no = 25; // snow number

var speed = 10; // smaller number moves the snow faster

var snowflake = "http://www.your-web-site-address-here.com/snow.gif";

 

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer

var ie4up = (document.all) ? 1 : 0;

var dx, xp, yp;    // coordinate and position variables

var am, stx, sty;  // amplitude and step variables

var i, doc_width = 800, doc_height = 600;

if (ns4up) {

doc_width = self.innerWidth;

doc_height = self.innerHeight;

} else if (ie4up) {

doc_width = document.body.clientWidth;

doc_height = document.body.clientHeight;

}

dx = new Array();

xp = new Array();

yp = new Array();

am = new Array();

stx = new Array();

sty = new Array();

for (i = 0; i < no; ++ i) { 

dx[i] = 0;                        // set coordinate variables

xp[i] = Math.random()*(doc_width-50);  // set position variables

yp[i] = Math.random()*doc_height;

am[i] = Math.random()*20;         // set amplitude variables

stx[i] = 0.02 + Math.random()/10; // set step variables

sty[i] = 0.7 + Math.random();     // set step variables

if (ns4up) {                      // set layers

if (i == 0) {

document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");

document.write("top=\"15\" visibility=\"show\"><img src=\"");

document.write(snowflake + "\" border=\"0\"></layer>");

} else {

document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");

document.write("top=\"15\" visibility=\"show\"><img src=\"");

document.write(snowflake + "\" border=\"0\"></layer>");

   }

} else if (ie4up) {

if (i == 0) {

document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");

document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");

document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");

document.write(snowflake + "\" border=\"0\"></div>");

} else {

document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");

document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");

document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");

document.write(snowflake + "\" border=\"0\"></div>");

      }

   }

}

function snowNS() {  // Netscape main animation function

for (i = 0; i < no; ++ i) {  // iterate for every dot

yp[i] += sty[i];

if (yp[i] > doc_height-50) {

xp[i] = Math.random()*(doc_width-am[i]-30);

yp[i] = 0;

stx[i] = 0.02 + Math.random()/10;

sty[i] = 0.7 + Math.random();

doc_width = self.innerWidth;

doc_height = self.innerHeight;

}

dx[i] += stx[i];

document.layers["dot"+i].top = yp[i];

document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);

}

setTimeout("snowNS()", speed);

}

function snowIE() {  // IE main animation function

for (i = 0; i < no; ++ i) {  // iterate for every dot

yp[i] += sty[i];

if (yp[i] > doc_height-50) {

xp[i] = Math.random()*(doc_width-am[i]-30);

yp[i] = 0;

stx[i] = 0.02 + Math.random()/10;

sty[i] = 0.7 + Math.random();

doc_width = document.body.clientWidth;

doc_height = document.body.clientHeight;

}

dx[i] += stx[i];

document.all["dot"+i].style.pixelTop = yp[i];

document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);

}

setTimeout("snowIE()", speed);

}

if (ns4up) {

snowNS();

} else if (ie4up) {

snowIE();

}

// End -->

</script>

 

<!-- STEP TWO: Save the snow.gif image to your web site directory  ->

 

<!-- Go to http://javascript.internet.com/img/snow/snow.gif

 

Right-click the image and "Save Image As..."  -->

 

<p><center>

<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>

 

<!-- Script Size:  3.39 KB -->

هذا الكود لعمل خلفية ثلوج متساقطه أو أي صوره يمكن أن تضعها بدل الثلوج

 

<!-- خطوتان لتركيب هذا الكود  -->

                                 

<!-- الخطوة الأولى : انسخ الكود التالي في منطقة الرأس او head -->

 

<STYLE>

<!--

BODY {

background-attachment: fixed;

background-position: 50 0;

background-repeat: repeat

}

 

-->

</STYLE>

<!--الخطوة الثانية انسخ هذا الكود في منطقة الجسم أو body -->

 

<SCRIPT ID=code>

var timerID

 

function StopBackground() {

  clearTimeout(timerID)

}

 

function AnimateBackground(hPos,vPos,hInc,vInc,delay) {

  if (arguments[5])

    document.body.style.backgroundImage = "url(\"" + arguments[5] + "\")"

 

  if (arguments[6])

    document.body.style.backgroundRepeat = arguments[6]

 

  if (!isNaN(hPos)) {

    if ((hInc!=0) && (hPos>0)) hPos=-100000

    hPos+=hInc

  }

  if (!isNaN(vPos)) {

    if ((vInc!=0) && (vPos>0)) vPos=-100000

    vPos+= vInc

  }

 

  document.body.style.backgroundPosition= hPos + " " + vPos

  if (isNaN(hPos))  hPos = "\"" + hPos + "\""

  if (isNaN(vPos)) vPos = "\"" + vPos + "\""

  timerID = setTimeout("AnimateBackground("+hPos+","+vPos+","+hInc+","+vInc+","+delay+")",delay)

}

 

AnimateBackground(0,"center",-5,0,50, "عنوان الصورة هنا")

 

function getValue(el) {

  for (var i=0; i < el.length; i++) {

    if (el[i].checked) return el[i].value

  }

  return ""

}

 

function Update() {

  var repeat = getValue(document.all.repeatDirection)

  var hDir = getValue(document.all.horizDir)

  var hStep = 0

  if (hDir=="absolute") {

    hDir = parseInt(document.all.horizValue.value)

    hStep = parseInt(document.all.horizStep.value)

  }

  var vDir = getValue(document.all.verDir)

  var vStep = 15

  if (vDir=="absolute") {

    vDir = parseInt(document.all.verValue.value)

    vStep = parseInt(document.all.verStep.value)

  }

  StopBackground()

 

  AnimateBackground(hDir,vDir,hStep,vStep,parseInt(document.all.speed.value),document.all.img.value,repeat)

  if (isNaN(hDir)) hDir = "\"" + hDir + "\""

  if (isNaN(vDir)) vDir = "\"" + vDir + "\""

  var scode="AnimateBackground(" + hDir + "," + vDir + "," + hStep+ "," + vStep + "," + parseInt(document.all.speed.value) + ",\"" + document.all.img.value + "\",\"" + repeat + "\")"

  document.all.output.innerHTML = scode

 

}

</SCRIPT>

هذا الكود لعمل خلفيه متحركه

 

 

<script

 

language="JavaScript">

 

<!--

 

function click() {

if (event.button==2) {

alert('لا تحاول ممنوع يعني ممنوع');

}

}

document.onmousedown=click

// -->

// -->

 

</script>

هذا الكود هو رساله تحذيريه تمنع الضغط الأيمن للماوس

 

 

<!-- TWO STEPS TO INSTALL CHECK ENTRY:

 

  1.  Copy the coding into the HEAD of your HTML document

  2.  Add the last code into the BODY of your HTML document  -->

 

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

 

<HEAD>

 

<SCRIPT LANGUAGE="JavaScript">

 

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

 

<!-- Begin

function validate(){

var invalid = " "; // Invalid character is a space

 

if (document.submitform.filename.value.indexOf(invalid) > -1) {

alert("Sorry, spaces are not allowed.");

return false;

}

else {

return true;

   }

}

//  End -->

</script>

</HEAD>

 

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

 

<BODY>

 

<center>

<form name=submitform onSubmit="return validate()">

<input type=file name=filename>

<p>

<input type=submit value="Submit">

</form>

</center>

 

<p><center>

<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>

 

<!-- Script Size:  0.95 KB -->

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

 

<SCRIPT LANGUAGE="JavaScript">

<!--

//  Made by SportsFan

//  Page at http://suns.home.ml.org

//  Note:  This was originally Rotating Banners depending on time; however,

//  I edited it into a clock...

 

 var timeNow=new Date();

 

 var now=timeNow.getMinutes();

 

 var hour=timeNow.getHours();

 

 

 if(now<=60)

 

  number=60;

 

 if(now<=59)

 

  number=59;

 

 if(now<=58)

 

  number=58;

 

 if(now<=57)

 

  number=57;

 

 if(now<=56)

 

  number=56;

 

 if(now<=55)

 

  number=55;

 

 if(now<=54)

 

  number=54;

 

 if(now<=53)

 

  number=53;

 

 if(now<=52)

 

  number=52;

 

 if(now<=51)

 

  number=51;

 

 if(now<=50)

 

  number=50;

 

 if(now<=49)

 

  number=49;

 

 if(now<=48)

 

  number=48;

 

 if(now<=47)

 

  number=47;

 

 if(now<=46)

 

  number=46;

 

 if(now<=45)

 

  number=45;

 

 if(now<=44)

 

  number=44;

 

 if(now<=43)

 

  number=43;

 

 if(now<=42)

 

  number=42;

 

 if(now<=41)

 

  number=41;

 

 if(now<=40)

 

  number=40;

 

 if(now<=39)

 

  number=39;

 

 if(now<=38)

 

  number=38;

 

 if(now<=37)

 

  number=37;

 

 if(now<=36)

 

  number=36;

 

 if(now<=35)

 

  number=35;

 

 if(now<=34)

 

  number=34;

 

 if(now<=33)

 

  number=33;

 

 if(now<=32)

 

  number=32;

 

 if(now<=31)

 

  number=31;

 

 if(now<=30)

 

  number=30;

 

 if(now<=29)

 

  number=29;

 

 if(now<=28)

 

  number=28;

 

 if(now<=27)

 

  number=27;

 

 if(now<=26)

 

  number=26;

 

 if(now<=25)

 

  number=25;

 

 if(now<=24)

 

  number=24;

 

 if(now<=23)

 

  number=23;

 

 if(now<=22)

 

  number=22;

 

 if(now<=21)

 

  number=21;

 

 if(now<=20)

 

  number=20;

 

 if(now<=19)

 

  number=19;

 

 if(now<=18)

 

  number=18;

 

 if(now<=17)

 

  number=17;

 

 if(now<=16)

 

  number=16;

 

 if(now<=15)

 

  number=15;

 

 if(now<=14)

 

  number=14;

 

 if(now<=13)

 

  number=13;

 

 if(now<=12)

 

  number=12;

 

 if(now<=11)

 

  number=11;

 

 if(now<=10)

 

  number=10;

 

 if(now<=9)

 

  number="09";

 

 if(now<=8)

 

  number="08";

 

 if(now<=7)

 

  number="07";

 

 if(now<=6)

 

  number="06";

 

 if(now<=5)

 

  number="05";

 

 if(now<=4)

 

  number="04";

 

 if(now<=3)

 

  number="03";

 

 if(now<=2)

 

  number="02";

 

 if(now<=1)

 

  number="01";

 

 

 

 if(hour==24)

 

  hour=12;

 

 if(hour==23)

 

  hour=11;

 

 if(hour==22)

 

  hour=10;

 

 if(hour==21)

 

  hour=9;

 

 if(hour==20)

 

  hour=8;

 

 if(hour==19)

 

  hour=7;

 

 if(hour==18)

 

  hour=6;

 

 if(hour==17)

 

  hour=5;

 

 if(hour==16)

 

  hour=4;

 

 if(hour==15)

 

  hour=3;

 

 if(hour==14)

 

  hour=2;

 

 if(hour==13)

 

  hour=1;

 

 if(hour==12)

 

  hour=12;

 

 if(hour==11)

 

  hour=11;

 

 if(hour==10)

 

  hour=10;

 

 if(hour==9)

 

  hour=9;

 

 if(hour==8)

 

  hour=8;

 

 if(hour==7)

 

  hour=7;

 

 if(hour==6)

 

  hour=6;

 

 if(hour==5)

 

  hour=5;

 

 if(hour==4)

 

  hour=4;

 

 if(hour==3)

 

  hour=3;

 

 if(hour==2)

 

  hour=2;

 

 if(hour==1)

               

  hour=1;

 

 

var JSHOUR=""+hour+""

 

var JSTIME=""+number+""

 

document.write("<center><table border=0 cellspacing=0 bgcolor=000000><tr><td>");

 

document.write("<center><font size=+2 color=ffffff>الساعة الأن "+JSHOUR+":"+JSTIME+"</font></A></td></tr></table></center>");

 

//-->

 

 

</SCRIPT>

هذه ساعه تبين الوقت