شبكة ومنتديات دلوعتي
اكواد الجافا
( أصحاب المواقع )
1
تغير لون الخلفية
مثال: حدث الصفحة ليتغير لونها. الوصف: تتغير لون خلفية الصفحة في كل مرة تدخلها . طريقة التركيب: ضع الكود بمنطقة الـ <body> الكود:
<script> /*Random background color- by javascriptkit.com Visit JavaScript Kit (http://javascriptkit.com) for script Credit must stay intact for use*/ //Enter list of bgcolors: var bgcolorlist=new Array("#DFDFFF", "#FFFFBF", "#80FF80", "#EAEAFF", "#C9FFA8", "#F7F7F7", "#FFFFFF", "#DDDD00") document.bgColor=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)] </script>
2
العاب نارية لخلفية الصفحة
مثال: اضغط هنا لمشاهدة السكريبت. الوصف: خلفية رائعة عبارة عن العاب نارية. طريقة التركيب: ضع الكود في منطقة الـ <body> الكود:
3
تغير لون الخلفية عند الدخول
الوصف: تغير الوان الخلفية عند دخول الصفحة. طريقة التركيب: من خطوتين : 1- ضع الكود التالي بمنطقة الـ <head> الكود: <script language="JavaScript"> hexa = new Array(16); function degrade(sr, sg, sb, er, eg, eb, pas) { for(var i = 0; i < 10; i++) hexa[i] = i; hexa[10]="a"; hexa[11]="b"; hexa[12]="c"; hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; for(var i = 0; i <= pas; i++) { setbgColor( Math.floor(sr * ((pas-i)/pas) + er * (i/pas)), Math.floor(sg * ((pas-i)/pas) + eg * (i/pas)), Math.floor(sb * ((pas-i)/pas) + eb * (i/pas))); } } function hex(i) { if (i < 0) return "00"; else if (i > 255) return "ff"; else return "" + hexa[Math.floor(i/16)] + hexa[i%16]; } function setbgColor(r, g, b) { var hr = hex(r), hg = hex(g), hb = hex(b); document.bgColor = "#"+hr+hg+hb; } </script>
2- ضع الكود التالي بمنطقة الـ <body> الكود: <script language="JavaScript"> degrade(0,0,0,255,150,100,255); </script>
4
خلفية ماتريكس Matrix
مثال: اضغط هنا لمشاهدة المثال الوصف: خلفية للفيلم المعروف ماتريكس. طريقة التركيب: ضع الكود بمنطقة الـ <body> الكود:
<script language="JavaScript"> //للمزيد من الجافا سكريبت .. نرجو زيارة موقع إقلاع سوفت http://soft.vip600.com/ if (document.all){ Cols=10; Cl=24; Cs=100; Ts=10; Tc='#FF9933'; Tc1='#FFCC00'; MnS=5; MxS=10; I=Cs; Sp=new Array();S=new Array();Y=new Array(); C=new Array();M=new Array();B=new Array(); RC=new Array();E=new Array();Tcc=new Array(0,1); document.write("<div id='Container' style='position:absolute;top:0;left:-"+Cs+"'>"); document.write("<div style='position:relative'>"); for(i=0; i < Cols; i++){ S[i]=I+=Cs; document.write("<div id='A' style='position:absolute;top:0;font-family:Arial;font-size:" +Ts+"px;left:"+S[i]+";width:"+Ts+"px;height:0px;color:"+Tc+";visibility:hidden'></div>"); } document.write("</div></div>"); for(j=0; j < Cols; j++){ RC[j]=1+Math.round(Math.random()*Cl); Y[j]=0; Sp[j]=Math.round(MnS+Math.random()*MxS); for(i=0; i < RC[j]; i++){ B[i]=''; C[i]=Math.round(Math.random()*1)+' '; M[j]=B[0]+=C[i]; } } function Cycle(){ Container.style.top=window.document.body.scrollTop; for (i=0; i < Cols; i++){ var r = Math.floor(Math.random()*Tcc.length); E[i] = '<font color='+Tc1+'>'+Tcc[r]+'</font>'; Y[i]+=Sp[i]; if (Y[i] > window.document.body.clientHeight){ for(i2=0; i2 < Cols; i2++){ RC[i2]=1+Math.round(Math.random()*Cl); for(i3=0; i3 < RC[i2]; i3++){ B[i3]=''; C[i3]=Math.round(Math.random()*1)+' '; C[Math.floor(Math.random()*i2)]=' '+' '; M[i]=B[0]+=C[i3]; Y[i]=-Ts*M[i].length/1.5; A[i].style.visibility='visible'; } Sp[i]=Math.round(MnS+Math.random()*MxS); } } A[i].style.top=Y[i]; A[i].innerHTML=M[i]+' '+E[i]+' '; } setTimeout('Cycle()',20) } Cycle(); } // --> </script>
1 2 3 4 5 6 7 8 9 10 15 16 17 23 24 26 27 30 32 35 38 47 53 58 62 63 64 65 73 74 75 76 77 79 81 82 85 86 89 90 91 93 95 96 97 98