المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كود code ساعه رهيبه متحركه مع الماوس !!! تطوير ارتقاء نت



loulou ange
10-31-2013, بتوقيت غرينيتش 02:22 AM
http://www.dzbatna.com/images/icons/icon28.gif ظƒظˆط¯ ط³ط§ط¹ظ‡ ط±ظ‡ظٹط¨ظ‡ ظ…طھط*ط±ظƒظ‡ ظ…ط¹ ط§ظ„ظ…ط§ظˆط³ !!! طھط·ظˆظٹط± ط§ط±طھظ‚ط§ط، ظ†طھ (http://www.dzbatna.com/t1539377/)



بسم الله الرحمن الرحيم




الان اقدم لكم ساعه رهيبه متحركه مع الماوس

ساعه روووعه كثييييييييير انصحكم تجربوها

هذا هو الكود code

رمز PHP:

<code style="white-space:nowrap"> <code> <SCRIPT language=JavaScript>
// Visit our site at http://www.irtiqa2.net for more code
dCol='0000FF';//date colour.
fCol='006600';//face colour.
sCol='9900FF';//seconds colour.
mCol='FF4500';//minutes colour.
hCol='FF4500';//hours colour.
ClockHeight=35;
ClockWidth=35;
ClockFromMouseY=0;
ClockFromMouseX=100;
//Alter nothing below! Alignments will be lost!
d=new Array("WWW.IRTIQA2.NET","WWW.IRTIQA2.NET","WWW.IRTIQA2.NET","WWW.IRTIQA2.NET","WWW.IRTIQA2.NET","WWW.IRTIQA2.NET","WWW.IRTIQA2.NET");
m=new Array("JANUAR","FEBRUAR","MAERZ","APRIL","MAI","JUNI","JULI","AUGUST","SEPTEMBER","OKTOBER","NOVEMBER","DEZEMBER");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d&#91;date.getDay()&#93;+" "+day+" "+m&#91;date.getMonth()&#93;+" "+year;
D=TodaysDate.split('');
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
Face='1 2 3 4 5 6 7 8 9 10 11 12';
font='Arial';
size=1;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y&#91;i&#93;=0;x&#91;i&#93;=0;Y&#91;i&#93;=0;X&#91;i&#93;=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy&#91;i&#93;=0;Dx&#91;i&#93;=0;DY&#91;i&#93;=0;DX&#91;i&#93;=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D&#91;i&#93;+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face&#91;i&#93;+'</font></center></layer>');
for (i=0; i < S.length; i++)
document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S&#91;i&#93;+'</b></center></font></layer>');
for (i=0; i < M.length; i++)
document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M&#91;i&#93;+'</b></center></font></layer>');
for (i=0; i < H.length; i++)
document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H&#91;i&#93;+'</b></center></font></layer>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';widt h:'+a+';text-align:center">'+props2+D&#91;i&#93;+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';widt h:'+a+';text-align:center">'+props+Face&#91;i&#93;+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H&#91;i&#93;+'</div>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M&#91;i&#93;+'</div>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S&#91;i&#93;+'</div>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromM ouseX;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove =Mouse;
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
if (ie){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
var F=(ns)?document.layers&#91;'nsFace'+i&#93;:ieFace&#91;i&#93;.style ;
F.top=y&#91;i&#93; + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
F.left=x&#91;i&#93; + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
}
for (i=0; i < H.length; i++){
var HL=(ns)?document.layers&#91;'nsHours'+i&#93;:ieHours&#91;i&#93;.st yle;
HL.top=y&#91;i&#93;+HandY+(i*HandHeight)*Math.sin(hrs)+scr ll;
HL.left=x&#91;i&#93;+HandX+(i*HandWidth)*Math.cos(hrs);
}
for (i=0; i < M.length; i++){
var ML=(ns)?document.layers&#91;'nsMinutes'+i&#93;:ieMinutes&#91;i &#93;.style;
ML.top=y&#91;i&#93;+HandY+(i*HandHeight)*Math.sin(min)+scr ll;
ML.left=x&#91;i&#93;+HandX+(i*HandWidth)*Math.cos(min);
}
for (i=0; i < S.length; i++){
var SL=(ns)?document.layers&#91;'nsSeconds'+i&#93;:ieSeconds&#91;i &#93;.style;
SL.top=y&#91;i&#93;+HandY+(i*HandHeight)*Math.sin(sec)+scr ll;
SL.left=x&#91;i&#93;+HandX+(i*HandWidth)*Math.cos(sec);
}
for (i=0; i < D.length; i++){
var DL=(ns)?document.layers&#91;'nsDate'+i&#93;:ieDate&#91;i&#93;.styl e;
DL.top=Dy&#91;i&#93; + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
DL.left=Dx&#91;i&#93; + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy&#91;0&#93;=Math.round(DY&#91;0&#93;+=((ymouse)-DY&#91;0&#93;)*speed);
Dx&#91;0&#93;=Math.round(DX&#91;0&#93;+=((xmouse)-DX&#91;0&#93;)*speed);
for (i=1; i < D.length; i++){
Dy&#91;i&#93;=Math.round(DY&#91;i&#93;+=(Dy&#91;i-1&#93;-DY&#91;i&#93;)*speed);
Dx&#91;i&#93;=Math.round(DX&#91;i&#93;+=(Dx&#91;i-1&#93;-DX&#91;i&#93;)*speed);
}
y&#91;0&#93;=Math.round(Y&#91;0&#93;+=((ymouse)-Y&#91;0&#93;)*speed);
x&#91;0&#93;=Math.round(X&#91;0&#93;+=((xmouse)-X&#91;0&#93;)*speed);
for (i=1; i < n; i++){
y&#91;i&#93;=Math.round(Y&#91;i&#93;+=(y&#91;i-1&#93;-Y&#91;i&#93;)*speed);
x&#91;i&#93;=Math.round(X&#91;i&#93;+=(x&#91;i-1&#93;-X&#91;i&#93;)*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</SCRIPT>
</code> </code>




ضعه في نهايه الهيدير

و اذا اعجبك موضوعي يرجى تقييمي

دمتم بخير



www.irtiqa2.net (http://www.irtiqa2.net)






ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)



https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى