الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

اكواد جافا مع الملك المدمر

مغلق
بدأه الملك المدمر في 25 أكتوبر 2004 · 5 رد · 798 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

بعض اكواد الجافا ارجو ان تعجبكم

انقل الكود الى النوت باد ثم الى صفحة الويب

------------------------------------------------------------------------------------------------ 
كود ورود تظهر مع الموس 
<!-- Bodyالصق في --> 

<script language="JavaScript"> 
<!-- 
var images='arrow.gif';//ضع الصورة هنا!! 
var amount=8; //عدد الصور هنا!! 
var yBase = 150; 
var xBase = 200; 
var step = .2; 
var currStep = 0; 
var Xpos = 5; 
var Ypos = 5; 
var i = 0; 
var j = 0; 
if (document.all) 
{ 
document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">') 
document.write('<div id="c" style="position:relative">'); 
for (n=0; n < amount; n++) 
document.write('<img src=" '+images+'" style="position:absolute;top:0px;left:0px">') 
document.write('</div>') 
document.write('</div>') 

function MsieMouseFollow(){ 
Xpos = document.body.scrollLeft+event.x-5; 
Ypos = document.body.scrollTop+event.y-5; 
} 
document.onmousemove = MsieMouseFollow; 
} 
else if (document.layers) 
{ 
window.captureEvents(Event.MOUSEMOVE); 
for (ns=0; ns < amount; ns++) 
document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0><IMG SRC='"+images+"'></LAYER>"); 
function NsMouseFollow(evnt){ 
Xpos = evnt.pageX-5; 
Ypos = evnt.pageY-5; 
} 
window.onMouseMove = NsMouseFollow; 
} 
function Swirl(){ 
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<ieDiv.all.c.all.length;i++) 
{ 
ieDiv.all.c.all.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); 
ieDiv.all.c.all.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 < ns; j++ ) //7 is number of NS layers! 
{ 
var temp="n"+j 
document.layers[temp].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[temp].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("Swirl()", 10); 
} 
Swirl(); 
// --> 
</script> 



------------------------------------------------------------------------------------------------- 
مربعات ملونة 
<LAYER NAME="a0" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,1,1"></LAYER> 
<LAYER NAME="a1" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,1,1"></LAYER> 
<LAYER NAME="a2" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,1,1"></LAYER> 
<LAYER NAME="a3" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,1,1"></LAYER> 
<LAYER NAME="a4" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,1,1"></LAYER> 
<LAYER NAME="a5" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF00FF" CLIP="0,0,1,1"></LAYER> 
<LAYER NAME="a6" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,1,1"></LAYER> 
<LAYER NAME="a7" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a10" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a11" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a12" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000ff" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a13" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,3,3"></LAYER> 


<script language="JavaScript"> 

/* 
Magic Wand cursor (By Kurt at kurt.grigg@virgin.net) 
Modified and permission granted to Dynamic Drive to feature script in archive 
For full source, usage terms, and 100's more DHTML scripts, visithttp://dynamicdrive.com 
*/ 

if (document.all){ 
with (document){ 
write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">') 
write('<div style=" position:relative;width:1px;height:1px;background: 
#ffffff;font-size:1px;visibility:visible"></div>') 
write('<div style=" position:relative;width:1px;height:1px;background: 
#fff000;font-size:1px;visibility:visible"></div>') 
write('<div style=" position:relative;width:1px;height:1px;background: 
#ffa000;font-size:1px;visibility:visible"></div>') 
write('<div style=" position:relative;width:1px;height:1px;background: 
#ff00ff;font-size:1px;visibility:visible"></div>') 
write('<div style=" position:relative;width:1px;height:1px;background: 
#00ff00;font-size:1px;visibility:visible"></div>') 
write('<div style=" position:relative;width:1px;height:1px;background: 
#0000ff;font-size:1px;visibility:visible"></div>') 
write('<div style=" position:relative;width:1px;height:1px;background: 
#FF0000;font-size:1px;visibility:visible"></div>') 
write('<div style=" position:relative;width:2px;height:2px;background: 
#ffffff;font-size:2px;visibility:visible"></div>') 
write('<div style=" position:relative;width:2px;height:2px;background: 
#fff000;font-size:2px;visibility:visible"></div>') 
write('<div style=" position:relative;width:2px;height:2px;background: 
#ffa000;font-size:2px;visibility:visible"></div>') 
write('<div style=" position:relative;width:2px;height:2px;background: 
#ff00ff;font-size:2px;visibility:visible"></div>') 
write('<div style=" position:relative;width:2px;height:2px;background: 
#00ff00;font-size:2px;visibility:visible"></div>') 
write('<div style=" position:relative;width:2px;height:2px;background: 
#0000ff;font-size:2px;visibility:visible"></div>') 
write('<div style=" position:relative;width:3px;height:3px;background: 
#FF0000;font-size:3px;visibility:visible"></div>') 
write('</div>') 
} 
} 


var Clrs=new Array(6) 
Clrs[0]='ff0000'; 
Clrs[1]='00ff00'; 
Clrs[2]='000aff'; 
Clrs[3]='ff00ff'; 
Clrs[4]='fff000'; 
Clrs[5]='fffff0'; 



if (document.layers) 
{window.captureEvents(Event.MOUSEMOVE);} 
var yBase = 200; 
var xBase = 200; 
var step; 
var currStep = 0; 
var Xpos = 1; 
var Ypos = 1; 

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++ ) 
{step=3; 
starsDiv.all.style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200); 
starsDiv.all.style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400); 
for (ai=0; ai < Clrs.length; ai++) 
{ 
var c=Math.round(Math.random()*[ai]); 
} 
starsDiv.all.style.background=Clrs[c]; 
} 
} 

else if (document.layers) 
{ 
for ( j = 0; j < 14; j++ ) //number of NS layers! 
{step = 4; 
var templayer="a"+j 
document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(0.7+currStep/200); 
document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400); 
for (aj=0; aj < Clrs.length; aj++) 
{ 
var c=Math.round(Math.random()*[aj]); 
} 
document.layers[templayer].bgColor=Clrs[c]; 
} 
} 
currStep+= step; 
setTimeout("animateLogo()", 10); 
} 
animateLogo(); 
// --> 
</script> 




زهور 
<!-- Bodyالصق في --> 



<script language="JavaScript"> 
<!-- Mouse Image Swirl Script by kurt.grigg@virgin.net 
var images='arrow.gif';//ضع عنون صورتك هنا!! 
var amount=7;//Number of images here. Do not alter for this script!! 
var cnter=70; 
var step; 
var currStep = 0; 
var Xpos = 0; 
var Ypos = 0; 
if (document.all) 
{ 
document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">') 
document.write('<div id="c" style="position:relative">'); 
for (n=0; n < amount; n++) 
document.write('<img src=" '+images+'" style="position:absolute;top:0px;left:0px">') 
document.write('</div>') 
document.write('</div>') 

function MsieMouseFollow(){ 
Xpos = document.body.scrollLeft+event.x-5; 
Ypos = document.body.scrollTop+event.y-5; 
} 
document.onmousemove = MsieMouseFollow; 
} 
else if (document.layers) 
{ 
window.captureEvents(Event.MOUSEMOVE); 
for (ns=0; ns < amount; ns++) 
document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0><IMG SRC='"+images+"'></LAYER>"); 
function NsMouseFollow(evnt){ 
Xpos = evnt.pageX-5; 
Ypos = evnt.pageY-5; 
} 
window.onMouseMove = NsMouseFollow; 
} 

function Swirl(){ 
if (currStep<0.0550) 
step=0.001; 
if (document.all) 
{ 
for (i=0;i<ieDiv.all.c.all.length;i++) 
{ 
ieDiv.all.c.all.style.top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150); 
ieDiv.all.c.all.style.left = Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150); 
} 
} 
else if (document.layers) 
{ 
for ( i = 0; i < ns; i++ ) 
{ 
var temp="n"+i 
document.layers[temp].top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150); 
document.layers[temp].left =Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150); 
} 
} 
currStep += step; 
setTimeout("Swirl()", 10); 
if (currStep>0.0540) 
{ 
step+=0.002; 
if (document.layers) 
{ 
for ( i = 0; i < ns; i++ ) 
{ 
var temp="n"+i 
document.layers[temp].top =Ypos+cnter*Math.cos((currStep+i*4.5)/5) 
document.layers[temp].left=Xpos+cnter*Math.sin((currStep+i*4.5)/5) 
} 
} 
else if (document.all) 
{ 
for (i=0;i<ieDiv.all.c.all.length;i++) 
{ 
ieDiv.all.c.all.style.top=Ypos+cnter*Math.cos((currStep+i*4.5)/5) 
ieDiv.all.c.all.style.left=Xpos+cnter*Math.sin((currStep+i*4.5)/5) 
} 
} 
} 
if (step > 0.5) 
{ 
step=0.5; 
cnter-=8; 
} 
if (document.layers) 
_y=-window.innerWidth; 
else if (document.all) 
_y=-document.body.clientWidth; 
if (cnter <= _y) 
{ 
currStep=0; 
step=0.001; 
cnter=70; 
} 
} 
Swirl(); 
// --> 
</script> 
------------------------------------------------------------------------------------------------- 
مروحة من النقط 
<LAYER NAME="a0" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FFFF00" CLIP="0,0,3,3"></LAYER> 
<LAYER NAME="a1" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FFFF00" CLIP="0,0,3,3"></LAYER> 
<LAYER NAME="a2" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FFFF00" CLIP="0,0,3,3"></LAYER> 
<LAYER NAME="a3" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FFFF00" CLIP="0,0,3,3"></LAYER> 
<LAYER NAME="a4" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FFFF00" CLIP="0,0,3,3"></LAYER> 
<LAYER NAME="a5" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FFFF00" CLIP="0,0,3,3"></LAYER> 
<LAYER NAME="a6" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FFFF00" CLIP="0,0,3,3"></LAYER> 

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

/* 
Dancing Stars cursor (Submitted by Kurt at kurt.grigg@virgin.net) 
Modified and permission granted to Dynamic Drive to feature script in archive 
For full source, usage terms, and 100's more DHTML scripts, visithttp://dynamicdrive.com 
*/ 

if (document.all){ 
document.write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">') 
for (xy=0;xy<7;xy++) 
document.write('<div style=" position:relative;width:3px;height:3px;background: 
#FFFF00;font-size:2px;visibility:visible"></div>') 
document.write('</div>') 
} 

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) 
{ 
var totaldivs=document.all.starsDiv.all.length 
for ( i = 0; i < totaldivs; i++ ) 
{ 
var tempdiv=document.all.starsDiv.all.style 
tempdiv.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); 
tempdiv.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++ ) 
{ 
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()", 15); 
} 
animateLogo(); 
// --> 
</script> 


------------------------------------------------------------------------------------------------- 
نجوم 
<!-- Start of Stars: High-light or select all, copy and paste in Body --> 


<LAYER NAME="a0" LEFT=10 TOP=10 BGCOLOR="#FF0000" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a1" LEFT=10 TOP=10 BGCOLOR="#FF8000" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a2" LEFT=10 TOP=10 BGCOLOR="#FFFF00" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a3" LEFT=10 TOP=10 BGCOLOR="#00FF00" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a4" LEFT=10 TOP=10 BGCOLOR="#0000FF" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a5" LEFT=10 TOP=10 BGCOLOR="#FF00FF" CLIP="0,0,2,2"></LAYER> 
<LAYER NAME="a6" LEFT=10 TOP=10 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"></div> 
<div style=" position:relative;width:2px;height:2px;background: 
#ffff00;font-size:2px"></div> 
<div style=" position:relative;width:2px;height:2px;background: 
#ffa000;font-size:2px"></div> 
<div style=" position:relative;width:2px;height:2px;background: 
#ff0000;font-size:2px"></div> 
<div style=" position:relative;width:2px;height:2px;background: 
#00ff00;font-size:2px"></div> 
<div style=" position:relative;width:2px;height:2px;background: 
#0000ff;font-size:2px"></div> 
<div style=" position:relative;width:2px;height:2px;background: 
#FF00FF;font-size:2px"></div> 
</div> 

<script language="JavaScript"> 
<!-- Mouse Stars Script 'adapted for Explorer' by kurt.grigg@virgin.net 
if (document.layers) 
{window.captureEvents(Event.MOUSEMOVE);} 
var yBase = 200; 
var xBase = 200; 
var step = .2; 
var currStep = 0; 
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.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.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(); 
// --> 
</script> 
<!-- End of stars! --> 
------------------------------------------------------------------------------------------------ 
دائرة 
<!-- Body الصق في--> 


<script language="JavaScript"> 
<!-- 
var step = 0.2; 
var currStep = 0; 
var Xpos = 1; 
var Ypos = 1; 
if (document.all){ 
document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">' 
+'<div id="c" style="position:relative">' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#ff0000;font-size:2px"></div>' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#00ff00;font-size:2px"></div>' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#ffffff;font-size:2px"></div>' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#ffa500;font-size:2px"></div>' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#ff00ff;font-size:2px"></div>' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#8888ff;font-size:2px"></div>' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#fff000;font-size:2px"></div>' 
+'<div style=" position:absolute;top:0px;left:0px;width:2px;heigh 
t:2px;background:#fff000;font-size:2px"></div>' 
+'</div>' 
+'</div>'); 

function MoveHandler(){ 
Xpos = document.body.scrollLeft+event.x; 
Ypos = document.body.scrollTop+event.y; 
} 
document.onmousemove = MoveHandler; 
} 
else if (document.layers){ 
document.write('<LAYER NAME="a0" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>' 
+'<LAYER NAME="a1" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>' 
+'<LAYER NAME="a2" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>' 
+'<LAYER NAME="a3" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>' 
+'<LAYER NAME="a4" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>' 
+'<LAYER NAME="a5" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>' 
+'<LAYER NAME="a6" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>' 
+'<LAYER NAME="a7" LEFT=10 TOP=10 CLIP="0,0,2,2"></LAYER>'); 
window.captureEvents(Event.MOUSEMOVE); 
function xMoveHandler(evnt){ 
Xpos = evnt.pageX; 
Ypos = evnt.pageY; 
} 
window.onMouseMove = xMoveHandler; 
} 
var Clrs=new Array(8) 
Clrs[0]='ff0000'; 
Clrs[1]='00ff00'; 
Clrs[2]='000aff'; 
Clrs[3]='ff00ff'; 
Clrs[4]='ff6633'; 
Clrs[5]='ffff00'; 
Clrs[6]='00ff00'; 
Clrs[7]='ffffff'; 
function Colours(){ 
if (document.all) 
{ 
for (i=0;i<ieDiv.all.c.all.length;i++) 
{ 
for ( n = 0; n < Clrs.length; n++ ) 
{ 
var kurt=Math.round(Math.random()*[n]) 
} 
ieDiv.all.c.all.style.background= Clrs[kurt]; 
} 
} 

else if (document.layers) 
{ 
for (i=0;i < 8;i++) 
{ 
for (n=0;n < Clrs.length;n++) 
{ 
var grigg=Math.round(Math.random()*[n]) 
} 
var temp="a"+i 
document.layers[temp].bgColor=Clrs[grigg]; 
} 
} 
setTimeout("Colours()",5); 
} 
Colours(); 
function animateLogo(){ 
if (document.all) 
{ 
for (i=0;i<ieDiv.all.c.all.length;i++) 
{ 
ieDiv.all.c.all.style.top = Ypos+90*Math.sin((currStep + i*3.1)/4)*Math.cos(currStep/10) 
ieDiv.all.c.all.style.left= Xpos+90*Math.cos((currStep + i*3.1)/4) 
} 
} 

else if (document.layers) 
{ 
for ( i = 0; i < 8; i++ ) //number of NS layers! 
{ 
var templayer="a"+i 
document.layers[templayer].top = Ypos+90*Math.sin((currStep + i*3.1)/4)*Math.cos(currStep/10) 
document.layers[templayer].left = Xpos+90*Math.cos((currStep + i*3.1)/4) 
} 
} 
currStep+= step; 
setTimeout("animateLogo()", 10); 
} 
animateLogo(); 
// --> 
</script> 
------------------------------------------------------------------------------------------------- 
نجوم ملونة تلاحق الفارة 
<head>انسخ هذا الكود في 
<STYLE TYPE="text/css"> 
<!-- 

BODY{ 
overflow:scroll; 
overflow-x:hidden; 
} 

.s1 
{ 
position : absolute; 
font-size : 10pt; 
color : blue; 
visibility: hidden; 
} 

.s2 
{ 
position : absolute; 
font-size : 18pt; 
color : red; 
visibility : hidden; 
} 

.s3 
{ 
position : absolute; 
font-size : 14pt; 
color : gold; 
visibility : hidden; 
} 

.s4 
{ 
position : absolute; 
font-size : 12pt; 
color : lime; 
visibility : hidden; 
} 

//--> 
</STYLE> 

======================== 
<body>انسخ هذا الكود في 
<DIV ID="div1" CLASS="s1">*</DIV> 
<DIV ID="div2" CLASS="s2">*</DIV> 
<DIV ID="div3" CLASS="s3">*</DIV> 
<DIV ID="div4" CLASS="s4">*</DIV> 

<p align="center"><font face="arial" size="-2">This free script provided by</font><br> 
<font face="arial, helvetica" size="-2"><a href="http://wsabstract.com">Website 
Abstraction</a></font></p> 

<script LANGUAGE="javascript" TYPE="text/javascript"> 

/* 
Submitted by Mike McGrathhttp://website.lineone.net/~mike_mcgrath 
Featured on Website Abstraction (http://wsabstract.com) 
For this and over 400+ free scripts, visithttp://wsabstract.com 
*/ 

var nav = (document.layers); 
var tmr = null; 
var spd = 50; 
var x = 0; 
var x_offset = 5; 
var y = 0; 
var y_offset = 15; 

if(nav) document.captureEvents(Event.MOUSEMOVE); 
document.onmousemove = get_mouse; 

function get_mouse(e) 
{ 
x = (nav) ? e.pageX : event.clientX+document.body.scrollLeft; 
y = (nav) ? e.pageY : event.clientY+document.body.scrollTop; 
x += x_offset; 
y += y_offset; 
beam(1); 
} 

function beam(n) 
{ 
if(n<5) 
{ 
if(nav) 
{ 
eval("document.div"+n+".top="+y); 
eval("document.div"+n+".left="+x); 
eval("document.div"+n+".visibility='visible'"); 
} 
else 
{ 
eval("div"+n+".style.top="+y); 
eval("div"+n+".style.left="+x); 
eval("div"+n+".style.visibility='visible'"); 
} 
n++; 
tmr=setTimeout("beam("+n+")",spd); 
} 
else 
{ 
clearTimeout(tmr); 
fade(4); 
} 
} 

function fade(n) 
{ 
if(n>0) 
{ 
if(nav)eval("document.div"+n+".visibility='hidden'"); 
else eval("div"+n+".style.visibility='hidden'"); 
n--; 
tmr=setTimeout("fade("+n+")",spd); 
} 
else clearTimeout(tmr); 
} 

// --> 
</SCRIPT> 
------------------------------------------------------------------------------------------------

وشكرا لاتنسوني من الدعاء و ردودكم

و اذا كنتم تريدون المزيد فارجو المشاركة .

التوقيع

الملك المدمر

منقول

تم تعديل هذه المشاركة بواسطة walcom في 25 أكتوبر 2004 في 15:32

#2

اعتقد انه منتدى جافا

وليس javascript

اسف سوف اقطعك من كتابة الكود، ادخل هنا لدقيقتين فقط

http://www.shbab1.com/2minutes.htm

#3

الملك المدمر <):) مشكور بس يا ريت لو كنت مصغر الخط شوي وعارضهم ضمن صيغة الكود

لا إله إلا الله العظيم الحليم,لا إله إلا الله رب العرش العظيم,لا إله إلا الله رب السموات ورب الأرض ورب العرش الكريم.

#4

قمت بنقل الموضوع إلى هنا وتحريره.

فكر بطريقة أخرى

#5

السلام عليكم

مشكور أخي المدمر بس ياريت تشرح النا طبيعة عمل الكود وكيفية التعامل معه.

قبل ما الواحد ينسخ وهو مش عارف شو بنسخ.

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

مع تحياتي يا مدمر

تم تعديل هذه المشاركة بواسطة عبدالله جابر شقليه في 25 أكتوبر 2004 في 15:48

MCP

MCTS:.Net Framework 2.0: Web Applications

MCPD:Web Developer

#6

و الله أنا أظن أن هذا المكان ليس مكانه

يا ريت يتم نقله إلى منتدى تصميم صفحات الإنترنت أو ماشابه

و شكراً

حزمة المحرك الإصدارة 0.8

أي أحد يجد أني ظلمته فليراسلني

وبإذن الله لو كان له حق سيأخذه

728x90.png

هذا الموضوع مغلق.

مواضيع مشابهة