منتدى جلاكسو

غير متصل kareem

  • عضو
  • *
  • المشاركات :29
  • عضويه: 6813
  • تاريخ التسجيل : 25/12/2006 » 10:19:pm
كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« : 26/12/2006 » 02:29:am »
الكود
 كود: 
<
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,1,1"></layer><layer name="a8" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer><layer name="a9" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer><layer name="a10" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></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,2,2"></layer>****** ******="******">/***************** firework script (By Kurt Gregg, kurt.grigg@virgin.net)Modified granted to Dynamic Drive to feature script in archiveFor full source and 100's more DHTML scripts, visit https://dynamicdrive.com*/if (****************.all)with(****************){write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')write('<div style="position:relative;width:2px;height:2px;back ground:#ffffff;font-size:2px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#fff000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#ffa000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#ff00ff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#00ff00;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#0000ff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#FF0000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#ffffff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#fff000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#ffa000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#ff00ff;font-size:1px"></div>')write('<div style="position:relative;width:2px;height:2px;back ground:#ff00ff;font-size:2px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#0000ff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;back ground:#FF0000;font-size:1px"></div>')write('</div>')}var Clrs=new Array(9)Clrs[0]='ff0000';Clrs[1]='00ff00';Clrs[2]='000aff';Clrs[3]='ff00ff';Clrs[4]='ffa500';Clrs[5]='ffff00';Clrs[6]='00ff00';Clrs[7]='ffffff';Clrs[8]='fffff0';var sClrs=new Array(5)sClrs[0]='ffa500';sClrs[1]='55ff66';sClrs[2]='AC9DFC';sClrs[3]='fff000';sClrs[4]='fffff0';var yBase;var xBase;var step;var currStep = 0;var Xpos = 1;var Ypos = 1;var initialStarColor='ffa000';var Mtop=250;var Mleft=250;function Fireworks() {if (****************.all){yBase = **********************.body.offsetHeight/3;xBase = **********************.body.offsetWidth/8;}else if (****************.layers){yBase = window.innerHeight/3;xBase = window.innerWidth/8;}if (****************.all){step=5;for ( i = 0 ; i < starsDiv.all.length ; i++ ){for (ai=0; ai < Clrs.length; ai++){var c=Math.round(Math.random()*[ai]);}if (currStep < 90)starsDiv.all[i].style.background=initialStarColor;if (currStep > 90)starsDiv.all[i].style.background=Clrs[c];starsDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100)starsDiv.all[i].style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100)}}else if (****************.layers){step = 5;for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!{var templayer="a"+jfor (ai=0; ai < Clrs.length; ai++){var c=Math.round(Math.random()*[ai]);}if (currStep < 90)****************.layers[templayer].bgColor=initialStarColor;if (currStep > 90)****************.layers[templayer].bgColor=Clrs[c];****************.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100)****************.layers[templayer].left = Mleft + yBase*Math.cos((currStep+j*5)/3)*Math.sin(550+currStep/100)}}currStep+= step;//window.status=currStep;T=setTimeout("Fireworks()",5);if (currStep==220){currStep=-10;for (n=0; n < sClrs.length; n++){var k=Math.round(Math.random()*n);}initialStarColor=sClrs[k];if (****************.all){Dtop=**********************.body.clientHeight-250;Dleft=xBase*3.5;Mtop=Math.round(Math.random()*Dtop);Mleft=Math.round(Math.random()*Dleft);****************.all.starsDiv.style.top=Mtop+****************.body .scrollTop;****************.all.starsDiv.style.left=Mleft+****************.bo dy.scrollLeft;}else if (****************.layers){Dleft=window.innerWidth-100;Dtop=window.innerHeight-100;Mtop=Math.round(Math.random()*Dtop+window.pageYOff set);Mleft=Math.round(Math.random()*Dleft+window.pageXO ffset);****************.layers[templayer].top=Mtop;****************.layers[templayer].left=Mleft;}if ((Mtop < 20) || (Mleft < 20)){Mtop+=90;Mleft+=90;} }}if (****************.all||****************.layers)Fireworks();******

 
سجل
NoAvatar

غير متصل amr_d

  • عضو مهتم
  • **
  • المشاركات :158
  • عضويه: 7289
  • تاريخ التسجيل : 10/02/2007 » 10:47:pm
مشاركة: كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« رد #1 : 25/04/2007 » 01:00:pm »
جزاك الله خيرا اخي
بس يا ريت شرح للكود
سجل
NoAvatar

غير متصل dr_kareem

  • عضو
  • *
  • المشاركات :2
  • عضويه: 2039
  • تاريخ التسجيل : 23/03/2006 » 02:00:pm
مشاركة: كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« رد #2 : 16/05/2007 » 02:21:am »
أخى الكريم
مجرد ان تنسخ الكود وتضعه فى صفحتتك سيعمل فورا
والأمر لا يحتاج لشرح
بالتوفيق بإذن الله
سجل

غير متصل drsh

  • عضو مهتم
  • **
  • المشاركات :953
  • عضويه: 7114
  • تاريخ التسجيل : 24/01/2007 » 02:00:pm
مشاركة: كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« رد #3 : 16/05/2007 » 03:16:am »
مقتبس من: dr_kareem
أخى الكريم
مجرد ان تنسخ الكود وتضعه فى صفحتتك سيعمل فورا
والأمر لا يحتاج لشرح
بالتوفيق بإذن الله

الكود مشفر بليز ضعه فى ملف txt
 
تحياتى لك
سجل
مرحبا بكم معنا فى منتديات برامج التطويريه

غير متصل kareem

  • عضو
  • *
  • المشاركات :29
  • عضويه: 6813
  • تاريخ التسجيل : 25/12/2006 » 10:19:pm
مشاركة: كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« رد #4 : 26/06/2007 » 05:59:am »
شفرة: [اختيار]















****** ******="******">
/*
Document firework script (By Kurt Gregg, kurt.grigg@virgin.net (kurt.grigg@virgin.net))
Modified granted to Dynamic Drive to feature script in archive
For full source and 100's more DHTML scripts, visit https://dynamicdrive.com
*/
if (document.all)
with(document){
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
write('
')
}

var Clrs=new Array(9)
Clrs[0]='ff0000';
Clrs[1]='00ff00';
Clrs[2]='000aff';
Clrs[3]='ff00ff';
Clrs[4]='ffa500';
Clrs[5]='ffff00';
Clrs[6]='00ff00';
Clrs[7]='ffffff';
Clrs[8]='fffff0';
var sClrs=new Array(5)
sClrs[0]='ffa500';
sClrs[1]='55ff66';
sClrs[2]='AC9DFC';
sClrs[3]='fff000';
sClrs[4]='fffff0';
var yBase;
var xBase;
var step;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
var initialStarColor='ffa000';
var Mtop=250;
var Mleft=250;
function Fireworks() {
if (document.all)
{
yBase = window.document.body.offsetHeight/3;
xBase = window.document.body.offsetWidth/8;
}
else if (document.layers)
{
yBase = window.innerHeight/3;
xBase = window.innerWidth/8;
}
if (document.all)
{
step=5;
for ( i = 0 ; i < starsDiv.all.length ; i++ )
{
for (ai=0; ai < Clrs.length; ai++)
{
var c=Math.round(Math.random()*[ai]);
}
if (currStep < 90)
starsDiv.all.style.background=initialStarColor;
if (currStep > 90)
starsDiv.all.style.background=Clrs[c];
starsDiv.all.style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100)
starsDiv.all.style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100)
}
}
else if (document.layers)
{
step = 5;
for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
{
var templayer="a"+j
for (ai=0; ai < Clrs.length; ai++)
{
var c=Math.round(Math.random()*[ai]);
}
if (currStep < 90)
document.layers[templayer].bgColor=initialStarColor;
if (currStep > 90)
document.layers[templayer].bgColor=Clrs[c];
document.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100)
document.layers[templayer].left = Mleft + yBase*Math.cos((currStep+j*5)/3)*Math.sin(550+currStep/100)
}
}
currStep+= step;
//window.status=currStep;
T=setTimeout("Fireworks()",5);
if (currStep==220)
{
currStep=-10;
for (n=0; n < sClrs.length; n++)
{
var k=Math.round(Math.random()*n);
}
initialStarColor=sClrs[k];
if (document.all)
{
Dtop=window.document.body.clientHeight-250;
Dleft=xBase*3.5;
Mtop=Math.round(Math.random()*Dtop);
Mleft=Math.round(Math.random()*Dleft);
document.all.starsDiv.style.top=Mtop+document.body.scrollTop;
document.all.starsDiv.style.left=Mleft+document.body.scrollLeft;
}
else if (document.layers)
{
Dleft=window.innerWidth-100;
Dtop=window.innerHeight-100;
Mtop=Math.round(Math.random()*Dtop+window.pageYOffset);
Mleft=Math.round(Math.random()*Dleft+window.pageXOffset);
document.layers[templayer].top=Mtop;
document.layers[templayer].left=Mleft;
}
if ((Mtop < 20) || (Mleft < 20))
{
Mtop+=90;
Mleft+=90;
}
}
}
if (document.all||document.layers)
Fireworks();
******
أخى الكريم آسف للتأخير ولكنى مريض ولا استطيع فتح الكمبيوتر باستمرار
أعتذر مرة أخرى على التأخير
سجل
NoAvatar

غير متصل الشيخ أبو محمد

  • عضويه فضيه
  • ***
  • المشاركات :1,566
  • عضويه: 30534
  • تاريخ التسجيل : 14/03/2014 » 09:10:am
رد : كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« رد #5 : 12/07/2015 » 04:42:pm »
بارك الله فيك أخي الفاضل الكريم
سجل
NoAvatar

غير متصل علم حسن

  • عضو مهتم
  • **
  • المشاركات :430
  • عضويه: 31049
  • تاريخ التسجيل : 14/11/2014 » 11:27:pm
رد : كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« رد #6 : 29/07/2015 » 09:47:am »
دُمتَمْ بِهذآ الع ـطآء أإلمستَمـرٍ
يُسع ـدني أإلـرٍد على مـوٍأإضيعكًـم
وٍأإألتلـذذ بِمـآ قرٍأإتْ وٍشآهـدتْ
تـقبلـوٍ خ ـآلص احترامي
لآرٍوٍآح ـكُم أإلجمـيله
سجل
NoAvatar

غير متصل بدر المصرى

  • عضو
  • *
  • المشاركات :26
  • عضويه: 31038
  • تاريخ التسجيل : 09/11/2014 » 09:54:pm
رد : كود لعمل ألعاب نارية بالصفحة
 (شوهد 2455 مرات)
« رد #7 : 31/07/2015 » 03:48:am »
شكرا على الموضوع
سجل