كود ساعة اكترونية تحت يمين
كود:
<!-- This script has been in the http://www.javascripts.com Javascript Public Library! -->
<!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. -->
<HTML>
<HEAD>
<style type="text/css">
<!--
.tick2 { font-size: "x-small"}
-->
</style>
<script>
<!--
function show2(){
if (!document.all)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="AM"
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var ctime=hours+":"+minutes+":"+seconds+" "+dn
tick2.innerHTML="<style='font-size:2;color:blue;'>"+ctime+"</style>"
setTimeout("show2()",1000)
}
//-->
</script>
<TITLE>F O R M S</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#7b68ee" link="#7b68ee" vlink="#7b68ee" onLoad="show2()">
<P> <BR><CENTER>انظر الى الساعة فى الجهة اليمنى</CENTER><P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR><P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR><P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR><P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR><P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR> <P> <BR>
<script language="JavaScript">
var IW= 0;
var IH= 0;
var PX= 0;
var PY= 0;
var ZIN= 0;
var us= null;
var IMGW= 50;
var IMGH= 25;
var LSAFETY= 20;
var TSAFETY= 17;
function branding() {
oldIW= IW;
oldIH= IH;
oldPX= PX;
oldPY= PY;
if (navigator.appName == 'Netscape') {
if ((window.innerHeight != oldIH)||(window.innerWidth != oldIW)||(window.pageXOffset != oldPX)||(window.pageYOffset != oldPY))
{
if (us == null)
{
for (i=0; i<document.layers.length; i++)
{
us= document.layers[i];
if (us.id == "Valley")
break;
}
}
if (us != null)
{
us.visibility= "hide";
IH= window.innerHeight;
IW= window.innerWidth;
PX= window.pageXOffset;
PY= window.pageYOffset;
(IH > IMGH) ? us.top= (IH+PY-(IMGH+TSAFETY)) : us.top= 0;
(IW > IMGW) ? us.left= (IW+PX-(IMGW+LSAFETY)) : us.left= 0;
//alert('document.layers.length: ' + document.layers.length);
for (i=0; i<document.layers.length; i++)
{
templay= document.layers[i];
// alert('document.layers[' + i + '].id: ' + document.layers[i].id);
if (templay.zIndex > ZIN)
ZIN= (templay.zIndex + 1);
}
us.zIndex= ZIN;
us.visibility= "show";
}
}
}
else{
if (navigator.appVersion.indexOf("Mac") == -1)
{
if ((document.body.clientHeight != oldIH)||(document.body.clientWidth != oldIW)||(document.body.scrollLeft != oldPX)||(document.body.scrollTop != oldPY)) {
alldivs= document.all.tags("DIV");
if (us == null){
for (i=0; i<alldivs.length; i++)
{
us= alldivs(i);
if (us.id == "Valley")
break;
}
}
if (us != null){
us.style.display= "none";
IH= document.body.clientHeight;
IW= document.body.clientWidth;
PX= document.body.scrollLeft;
PY= document.body.scrollTop;
us.style.top= (IH+PY-(IMGH+TSAFETY)+12);
us.style.left=(IW+PX-(IMGW+LSAFETY)+15);
for (i=0; i<alldivs.length; i++){
templay= alldivs(i);
if (templay.style.zIndex > ZIN)
us.style.zindex= (templay.style.zIndex + 1);
}
us.style.display= "";
}
}
}
}
}
if ((document.all) || (document.layers)){
setInterval("branding()",100);
}
</SCRIPT>
<DIV CLASS="Watermark" ID="Watermark" STYLE="position:absolute;top:1;visibility:hide;" ALIGN="right">
<span id=tick2 class=tick2> </span>
</DIV>
</BODY>
</HTML>