بسم الله الرحمن الرحيم
كيفكووو ..انشاء الله بخيررررر ..
الان تقدر تصنع ارووع صفحة اختراق خاصة فيك ... يعني سوف اضع ارووع اكواد جافا تضيفها على صفحة الاختراق ......
وقبل الاكواد سوف اشرح قليلا عن لغة html حتى تستطيع معرفة مكان وضع الاكواد
بسم الله نبدا
ملاحطة :::::::: ادخل على الكود واقري ما الذي يجب تعديله .....
المطلوب منك هو معرفة تقسيمات اللغة ...وهي على النحو الاتي مكونه من مجموعة وسوم :
<head>
</head>
<tilte>
</title>
<body>
</body>
</html
.. رح اطبق مثال ..
المثال هو على كود الوان تتبع الماوس ...
***************************
HEAD
كود:
<style type="text/css"><!-- #a { position: absolute; top: 10px; left: 10px; visibility: visible }#b { position: absolute; top: 10px; left: 10px; visibility: visible }#c { position: absolute; top: 10px; left: 10px; visibility: visible }#d { position: absolute; top: 10px; left: 10px; visibility: visible }#e { position: absolute; top: 10px; left: 10px; visibility: visible }#f { position: absolute; top: 10px; left: 10px; visibility: visible }#g { position: absolute; top: 10px; left: 10px; visibility: visible } --></style>
BODY
كود:
<layer name="a0" left="10" top="10" visibility="show" bgcolor="#ff0000" clip="0,0,2,2"></layer><layer name="a1" left="10" top="10" visibility="show" bgcolor="#ff8000" clip="0,0,2,2"></layer><layer name="a2" left="10" top="10" visibility="show" bgcolor="#ffff00" clip="0,0,2,2"></layer><layer name="a3" left="10" top="10" visibility="show" bgcolor="#00ff00" clip="0,0,2,2"></layer><layer name="a4" left="10" top="10" visibility="show" bgcolor="#0000ff" clip="0,0,2,2"></layer><layer name="a5" left="10" top="10" visibility="show" bgcolor="#ff00ff" clip="0,0,2,2"></layer><layer name="a6" left="10" top="10" visibility="show" 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;back ground:#ffffff;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#ffff00;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#ffa000;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#ff0000;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#00ff00;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#0000ff;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#FF00FF;font-size:1px;visibility:visible"></div></div><script language="JavaScript"><!-- Begin// Original: freeware.de// Web Site:
http://freeware.de // MSIE Fix by: Kurt Grigg (
[email protected])/* Visit our site at
http://www.star28.com/ for more code* This notice must stay intact for use */function MoveHandler(){Xpos = document.body.scrollLeft + event.x;Ypos = document.body.scrollTop + event.y;}function xMoveHandler(evnt) {Xpos = evnt.pageX;Ypos = evnt.pageY;}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) {document.onmousemove = MoveHandler;}else if (document.layers) {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[i].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[i].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();// End --></script>
بنشوف انه الكود مقسم الي جزئين ...
الجزء الاول مكانه في وسم HEAD
والجزء الاخر مكانه في BODY
ارعرفنا مكان وضع الاجزاء من العنوان .
يعني رح ايكون الصفحة كامل بعد اضافة الاكود هاكذا :::::
كود:
<head> <style type="text/css"><!-- #a { position: absolute; top: 10px; left: 10px; visibility: visible }#b { position: absolute; top: 10px; left: 10px; visibility: visible }#c { position: absolute; top: 10px; left: 10px; visibility: visible }#d { position: absolute; top: 10px; left: 10px; visibility: visible }#e { position: absolute; top: 10px; left: 10px; visibility: visible }#f { position: absolute; top: 10px; left: 10px; visibility: visible }#g { position: absolute; top: 10px; left: 10px; visibility: visible } --> </style></head><TITLE></TITLE><body><layer name="a0" left="10" top="10" visibility="show" bgcolor="#ff0000" clip="0,0,2,2"></layer><layer name="a1" left="10" top="10" visibility="show" bgcolor="#ff8000" clip="0,0,2,2"></layer><layer name="a2" left="10" top="10" visibility="show" bgcolor="#ffff00" clip="0,0,2,2"></layer><layer name="a3" left="10" top="10" visibility="show" bgcolor="#00ff00" clip="0,0,2,2"></layer><layer name="a4" left="10" top="10" visibility="show" bgcolor="#0000ff" clip="0,0,2,2"></layer><layer name="a5" left="10" top="10" visibility="show" bgcolor="#ff00ff" clip="0,0,2,2"></layer><layer name="a6" left="10" top="10" visibility="show" 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;back ground:#ffffff;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#ffff00;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#ffa000;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#ff0000;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#00ff00;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#0000ff;font-size:1px;visibility:visible"></div><div style="position:relative;width:2px;height:2px;back ground:#FF00FF;font-size:1px;visibility:visible"></div></div><script language="JavaScript"><!-- Begin// Original: freeware.de// Web Site:
http://freeware.de // MSIE Fix by: Kurt Grigg (
[email protected])/* Visit our site at
http://www.star28.com/ for more code* This notice must stay intact for use */function MoveHandler(){Xpos = document.body.scrollLeft + event.x;Ypos = document.body.scrollTop + event.y;}function xMoveHandler(evnt) {Xpos = evnt.pageX;Ypos = evnt.pageY;}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) {document.onmousemove = MoveHandler;}else if (document.layers) {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[i].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[i].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();// End --></script></body></html>
************** اعتقد صار الوضع مفهووم********** اوكي نبلش *******
كود ألعاب نارية
انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY
كود:
<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><script language="JavaScript">/*Document firework script (By Kurt Gregg,
[email protected])Modified granted to Dynamic Drive to feature script in archiveFor full source and 100's more DHTML scripts, visit
http://dynamicdrive.comVisit our site at
http://www.star28.com/ for more code* This notice must stay intact for use */if (document.all)with(document){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 (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[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 (document.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)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=sC lrs[k];if (document.all){Dtop=window.document.body.clientHei ght-250;Dleft=xBase*3.5;Mtop=Math.round(Math.random()* Dtop);Mleft=Math.round(Math.random()*Dleft);docume nt.all.starsDiv.style.top=Mtop+document.body.scrol lTop;document.all.starsDiv.style.left=Mleft+docume nt.body.scrollLeft;}else if (document.layers){Dleft=window.innerWidth-100;Dtop=window.innerHeight-100;Mtop=Math.round(Math.random()*Dtop+window.page YOffset);Mleft=Math.round(Math.random()*Dleft+wind ow.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();</script>
تغيير ألوان شريط تحريك الصفحة الجانبي و السفلي
انسخ هذا الكود و ضعه في منطقة HEAD
كود:
<STYLE>BODY {scrollbar-3dlight-color: #00ff33; scrollbar-arrow-color: #00ff00; scrollbar-darkshadow-color: #00ff33; scrollbar-face-color: #000000; scrollbar-highlight-color: #00ff00; scrollbar-shadow-color: #00ff00; scrollbar-track-color: #000033}</STYLE>
*******************
كود لجعل الصفحة تمطر
انسخ هذا الكود و ضعه في منطقة BODY
كود:
<script language="JavaScript">/* This credit MUST stay intact for use *//* Visit our site at
http://www.star28.com/ for more code */<!-- Beginvar no = 50;var speed = 1;var ns4up = (document.layers) ? 1 : 0;var ie4up = (document.all) ? 1 : 0;var s, x, y, sn, cs;var a, r, cx, cy;var i, doc_width = 800, doc_height = 600;if (ns4up) {doc_width = self.innerWidth;doc_height = self.innerHeight;}elseif (ie4up) {doc_width = document.body.clientWidth;doc_height = document.body.clientHeight;}x = new Array();y = new Array();r = new Array();cx = new Array();cy = new Array();s = 8;for (i = 0; i < no; ++ i) { initRain();if (ns4up) {if (i == 0) {document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");document.write(",</font></layer>");}else {document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");document.write(",</font></layer>"); }}else if (ie4up) {if (i == 0) {document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">");document.write(",</font></div>");}else {document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">");document.write(",</font></div>"); } }}function initRain() {a = 6;r[i] = 1;sn = Math.sin(a);cs = Math.cos(a);cx[i] = Math.random() * doc_width + 1;cy[i] = Math.random() * doc_height + 1;x[i] = r[i] * sn + cx[i];y[i] = cy[i];}function makeRain() {r[i] = 1;cx[i] = Math.random() * doc_width + 1;cy[i] = 1;x[i] = r[i] * sn + cx[i];y[i] = r[i] * cs + cy[i];}function updateRain() {r[i] += s;x[i] = r[i] * sn + cx[i];y[i] = r[i] * cs + cy[i];}function raindropNS() {for (i = 0; i < no; ++ i) {updateRain();if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {makeRain();doc_width = self.innerWidth;doc_height = self.innerHeight;}document.layers["dot"+i].top = y[i];document.layers["dot"+i].left = x[i];}setTimeout("raindropNS()", speed);}function raindropIE() {for (i = 0; i < no; ++ i) {updateRain();if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {makeRain();doc_width = document.body.clientWidth;doc_height = document.body.clientHeight;}document.all["dot"+i].style.pixelTop = y[i];document.all["dot"+i].style.pixelLeft = x[i];}setTimeout("raindropIE()", speed);}if (ns4up) {raindropNS();}elseif (ie4up) {raindropIE();}// End --></script>
**************************
خلفية تشبه خلفية فيلم ماتريكس
انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY
كود:
<script language="JavaScript">// Visit our site at
http://www.star28.com/ for more codeif (document.all){Cols=10;Cl=24;Cs=100;Ts=10;Tc='#FF9 933';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+";visibili ty: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.s crollTop;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
1- انسخ هذا الكود و ضعه في منطقة HEAD
كود:
<script LANGUAGE="JavaScript"> /* Visit our site at
http://www.star28.com/ for more code*/var init_msg = "Welcome To STAR28.com" var str = "" var msg = "" var leftmsg = "" function setMessage(){ if (msg == "") { str = " " msg = init_msg leftmsg = "" } if (str.length == 1) { while (msg.substring(0, 1) == " ") { leftmsg = leftmsg + str str = msg.substring(0, 1) msg = msg.substring(1, msg.length) } leftmsg = leftmsg + str str = msg.substring(0, 1) msg = msg.substring(1, msg.length) for (var ii = 0; ii < 120; ii++) {str = " " + str} } else { str = str.substring(10, str.length) // decrease str little by little } window.status = leftmsg + str JSCTimeOutID = window.setTimeout('setMessage()',100)}</script>
2- ضع هذه الرموز ضمن الوسم BODY لتصبح هكذا
كود:
<BODY onLoad="JSCTimeOutID = window.setTimeout('setMessage()',500);">
*******************************
كلمات تظهر في شريط المعلومات السفلي 2
1- انسخ هذا الكود و ضعه في منطقة HEAD
كود:
<script LANGUAGE="JavaScript">/* Visit our site at
http://www.star28.com/ for more code* This notice must stay intact for use */<!-- Beginvar Message="مرحبا بكم في دليل العرب الشامل";var place=1;function scrollIn() {window.status=Message.substring(0, place);if (place >= Message.length) {place=1;window.setTimeout("scrollOut()",300); } else {place++;window.setTimeout("scrollIn()",50); } }function scrollOut() {window.status=Message.substring(place, Message.length);if (place >= Message.length) {place=1;window.setTimeout("scrollIn()", 100);} else {place++;window.setTimeout("scrollOut()", 50); }}// End --></script>
2- ضع هذه الرموز ضمن الوسم BODY لتصبح هكذا
كود:
<BODY onLoad="scrollIn()">
*************************
كلمات تظهر في شريط المعلومات السفلي 3
1- انسخ هذا الكود و ضعه في منطقة HEAD
كود:
<script LANGUAGE="JavaScript">/* Visit our site at
http://www.star28.com/ for more code* This notice must stay intact for use */<!-- Beginfunction scrollit(seed) {var m1 = "ضع هنا";var m2 = "---- الرسائل ----";var m3 = "التي تريد ظهورها";var m4 = "---- يمكنك التحكم في عدد الرسائل ---";var msg=m1+m2+m3+m4;var out = "كلام ثابت ";var c = 1;if (seed > 100) {seed--;cmd="scrollit("+seed+")";timerTwo=window.setTimeo ut(cmd,100);}else if (seed <= 100 && seed > 0) {for (c=0 ; c < seed ; c++) {out+=" ";}out+=msg;seed--;window.status=out;cmd="scrollit("+seed+")";timerT wo=window.setTimeout(cmd,100);}else if (seed <= 0) {if (-seed < msg.length) {out+=msg.substring(-seed,msg.length);seed--;window.status=out;cmd="scrollit("+seed+")";timerT wo=window.setTimeout(cmd,100);}else {window.status=" ";timerTwo=window.setTimeout("scrollit(100)",7 5); } }}// End --></script>
2- ضع هذه الرموز ضمن الوسم BODY لتصبح هكذا
كود:
<BODY onLoad="scrollit(100)">
*******************************************
كلمات تظهر في شريط المعلومات السفلي 4
انسخ هذا الكود و ضعه في منطقة BODY
كود:
<script LANGUAGE="JavaScript"><!--// Copyright 1996 - Tomer and Yehuda Shiran// This example will appear in our forthcoming book on JavaScript.// Feel free to "steal" this code provided that you leave this notice as is.// Additional examples from the book can be found at
http://www.geocities.com/SiliconValley/9000/// For more information contact Tomer or Yehuda Shiran <
[email protected]>// Translated By
http://soft.vip600.com//* Visit our site at
http://www.star28.com/ for more code */// set speed of banner (pause in milliseconds between addition of new character)var speed = 10 // decrease value to increase speed (must be positive)// set pause between completion of message and beginning of following messagevar pause = 2500 // increase value to increase pause// set initial valuesvar timerID = nullvar bannerRunning = false// create arrayvar ar = new Array()// اكتب هنا الجمل التي تود ان تظهر بشريط المعلوماتar[0] = "مرحباً بكم في دليل العرب الشامل"ar[1] = "نتمنى أن ينال موقعنا إعجابكم"ar[2] = "إذا كان لديكم أي ملاحظات نرجو إعلامنا"ar[3] = "و شكراً لزيارتكم"// assign index of current messagevar message = 0// empty string initializationvar state = ""// no value is currently being displayedclearState()// stop the banner if it is currently runningfunction stopBanner() { // if banner is currently running if (bannerRunning) // stop the banner clearTimeout(timerID) // timer is now stopped timerRunning = false}// start the bannerfunction startBanner() { // make sure the banner is stopped stopBanner() // start the banner from the current position showBanner()}// assign state a string of "0" characters of the length of the current messagefunction clearState() { // initialize to empty string state = "" // create string of same length containing 0 digits for (var i = 0; i < ar[message].length; ++i) { state += "0" }}// display the current messagefunction showBanner() { // if the current message is done if (getString()) { // increment message message++ // if new message is out of range wrap around to first message if (ar.length <= message) message = 0 // new message is first displayed as empty string clearState() // display next character after pause milliseconds timerID = setTimeout("showBanner()", pause) } else { // initialize to empty string var str = "" // built string to be displayed (only character selected thus far are displayed) for (var j = 0; j < state.length; ++j) { str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " " } // partial string is placed in status bar window.status = str // add another character after speed milliseconds timerID = setTimeout("showBanner()", speed) }}function getString() { // set variable to true (it will stay true unless proven otherwise) var full = true // set variable to false if a free space is found in string (a not-displayed char) for (var j = 0; j < state.length; ++j) { // if character at index j of current message has not been placed in displayed string if (state.charAt(j) == 0) full = false } // return true immediately if no space found (avoid infinitive loop later) if (full) return true // search for random until free space found (braoken up via break statement) while (1) { // a random number (between 0 and state.length - 1 == message.length - 1) var num = getRandom(ar[message].length) // if free space found break infinitive loop if (state.charAt(num) == "0") break } // replace the 0 character with 1 character at place found state = state.substring(0, num) + "1" + state.substring(num + 1, state.length) // return false because the string was not full (free space was found) return false}function getRandom(max) { // create instance of current date var now = new Date() // create a random number (good generator) var num = now.getTime() * now.getSeconds() * Math.random() // cut random number to value between 0 and max - 1, inclusive return num % max}startBanner()// --></script>