خدمات :: أكواد جافا3 ::
2 قائمة اختر واذهب
???? : ?? ????? ?????? ?? ????? ????? : <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; // End --> } </SCRIPT> ?????? : ?? ????? ?????? ?? ????? ????? : <center> <form name="form"> <select name="site" size=1> <option value="">Go to.... <option value="http://www.yahoo.com">Yahoo <option value="http://www.metacrawler.com">Metacrawler <option value="http://www.des4arab.com">المصمم العربي <option value="http://www.webcrawler.com">Webcrawler <option value="http://www.lycos.com">Lycos <option value="http://javascript.internet.com">JavaScript Source </select> <input type=button value="Go!" onClick="javascript:formHandler()"> </form> </center>
لينك تضعط عليه يعرض لك المصدر أي تصميم الصفحة بالأتش تي أم أل
<script> <!-- /* View-source script credit: By Website Abstraction (عنوان موقعك) Over 200+ free JavaScripts here! */ function viewthesource(){ window.location="view-source:"+window.location } //--> </script> <a href="javascript:viewthesource()"> <p align="center">اعرض المصدر</p> <p align="center"></a> </p>
ممنوع الدخول
<form> <input type="submit" value="ممنوع الدخول" onClick="alert('لاحول ولا قوة إلا بالله'); return true"> </form>
منع أعلان
<!-- Start code //--> <Script Language='Javascript'> <!-- eval(unescape('%66%75%6E%63%74%69%6F%6E%20%6F%70%65%6E%20%28%29%20%7B%72%65%74%75%72%6E%20%74%72%75%65%3B%7D')); //--> </Script>
موقع وأرتباط عشوائي
<script> /*Day of the link script credit- By Website Abstraction (www.wsabstract.com) Over 200+ free scripts here! */ var daylinks=new Array() /* Enter the 31 urls below you wish to go to for each day of the month. Note that if the current month contains less than 31 days, then some of the urls will simply not be used */ daylinks[1]="http://www.sahab.net" daylinks[2]="http://www.abcnews.com" daylinks[3]="http://www.cnet.com" daylinks[4]="http://www.geocities.com" daylinks[5]="http://www.alwafi2000.com" daylinks[6]="http://www.infoseek.com" daylinks[7]="http://www.hotbot.com" daylinks[8]="http://www.tripod.com" daylinks[9]="http://www.wsabstract.com" daylinks[10]="http://www.wired.com" daylinks[11]="http://www.download.com" daylinks[12]="http://www.windows95.com" daylinks[13]="http://www.shareware.com" daylinks[14]="http://www.builder.com" daylinks[15]="http://www.htmlgoodies.com" daylinks[16]="http://www.webreference.com" daylinks[17]="http://www.webdeveloper.com" daylinks[18]="http://www.developer.com" daylinks[19]="http://www.news.com" daylinks[20]="http://www.techweb.com" daylinks[21]="http://www.zdnet.com" daylinks[22]="http://www.excite.com" daylinks[23]="http://www.nba.com" daylinks[24]="http://www.microsoft.com" daylinks[25]="http://www.netscape.com" daylinks[26]="http://www.amazon.com" daylinks[27]="http://www.xml.com" daylinks[28]="http://www.espn.com" daylinks[29]="http://www.nbc.com" daylinks[30]="http://www.cbs.com" daylinks[31]="http://www.hotwired.com" var mydate=new Date() var today=mydate.getDate() </script> <a href="today.htm" onClick="window.location=daylinks[today];return false">اضغط هنا لتذهب الىالموقع العشوائى لهذا اليوم</a>
مينيو أسود
<style> <!-- #tickertape{ position:relative; layer-background-color:black; width:400; height:12; } #subtickertape{ background-color:black; position:absolute; border: 1px solid black; width:400; height:12; } .subtickertapefont{ font:bold 12px Verdana; text-decoration:none; color:white; } .subtickertapefont a{ color:white; text-decoration:none; } --> </style> <div id="tickertape"> <div id="subtickertape" class="subtickertapefont">Initializing...</div> </div> <script language="JavaScript1.2"> /* Fading Ticker Tape Script- © Dynamic Drive (www.dynamicdrive.com) Fading background color component by Dave Methvin, Windows Magazine For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ //default speed is 4.5 seconds, Change that as desired var speed=4500 var news=new Array() news[0]="<a href='www.yahoo.com'>اظغط هنا للذهاب الى الياهو</a>" news[1]="<a href='www.microsoft.com'>زور موقع مايكروسوفت</a>" news[2]="<a href='www.hotbot.com'>اذهب الى محرك البحث هوت بوت</a>" //expand or shorten this list of messages as desired i=0 if (document.all) tickerobject=document.all.subtickertape.style else tickerobject=document.tickertape.document function regenerate(){ window.location.reload() } function regenerate2(){ if (document.layers) setTimeout("window.onresize=regenerate",450) } function update(){ BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10); if (document.layers){ document.tickertape.document.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>') document.tickertape.document.subtickertape.document.close() } else document.all.subtickertape.innerHTML=news[i] if (i<news.length-1) i++ else i=0 setTimeout("update()",speed) } function BgFade(red1, grn1, blu1, red2, grn2, blu2, steps) { sred = red1; sgrn = grn1; sblu = blu1; ered = red2; egrn = grn2; eblu = blu2; inc = steps; step = 0; RunFader(); } function RunFader() { var epct = step/inc; var spct = 1 - epct; if (document.layers) tickerobject.bgColor = Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct); else tickerobject.backgroundColor= Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct); if ( step < inc ) { setTimeout('RunFader()',50); } step++; } </script> <body onload="if (document.all||document.layers) {regenerate2();update()}">
مينيو تنفتح من الجانب الايسر للصفحه
<style> <!-- #slidemenubar, #slidemenubar2{ position:absolute; left:-155px; width:160px; top:170px; border:1.5px solid green; background-color:lightyellow; layer-background-color:lightyellow; font:bold 12px Verdana; line-height:20px; } --> </style> <script language="JavaScript1.2"> /* Sliding Menu Bar Script- © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ if (document.all) document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">') </script> <layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()"> <script language="JavaScript1.2"> var sitems=new Array() var sitemlinks=new Array() //extend or shorten this list sitems[0]="الصفحة الرئيسية" sitems[1]="الموقع الاول" sitems[2]="الموقع الثانى" sitems[3]="الموقع الثالث" sitems[4]="الموقع الرابع" sitems[5]="الموقع الخامس" sitems[6]="الموقع السادس" sitems[7]="الموقع السابع" sitems[8]="الموقع الثامن" sitems[9]="الموقع التاسع" sitems[10]="الموقع العاشر" sitems[11]="الموقع الحادى عشر" sitems[12]="الموقع الثانى عشر" //These are the links pertaining to the above text. sitemlinks[0]="هنا تضع المواقع" sitemlinks[1]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[2]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[3]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[4]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[5]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[6]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[7]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[8]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[9]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[10]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[11]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟" sitemlinks[12]="؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟" for (i=0;i<=sitems.length-1;i++) document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>') </script> </layer> <script language="JavaScript1.2"> function regenerate(){ window.location.reload() } function regenerate2(){ if (document.layers) setTimeout("window.onresize=regenerate",400) } window.onload=regenerate2 if (document.all){ document.write('</div>') themenu=document.all.slidemenubar2.style rightboundary=0 leftboundary=-150 } else{ themenu=document.layers.slidemenubar rightboundary=150 leftboundary=10 } function pull(){ if (window.drawit) clearInterval(drawit) pullit=setInterval("pullengine()",50) } function draw(){ clearInterval(pullit) drawit=setInterval("drawengine()",50) } function pullengine(){ if (document.all&&themenu.pixelLeft<rightboundary) themenu.pixelLeft+=5 else if(document.layers&&themenu.left<rightboundary) themenu.left+=5 else if (window.pullit) clearInterval(pullit) } function drawengine(){ if (document.all&&themenu.pixelLeft>leftboundary) themenu.pixelLeft-=5 else if(document.layers&&themenu.left>leftboundary) themenu.left-=5 else if (window.drawit) clearInterval(drawit) } </script>
مينيو متحرك في أعلى الصفحه
<html> <head> <title>Cross-browser Dynamic HTML Scripts - SideScrollMenu</title> <style type="text/css"> #divBg{position:absolute; z-index:10; width:200; left:0; height:100; clip:rect(0,10,10,0)} #divMenu{position:absolute; left:15; top:6; font-weight:bold} #divArrowLeft{position:absolute; width:20; height:20; left:0; top:9} #divArrowRight{position:absolute; width:20; height:20; top:9} </style> <script type="text/javascript" language="JavaScript"> /******************************************************************************** Copyright (C) 1999 Thomas Brattli This script is made by and copyrighted to Thomas Brattli at www.bratta.com Visit for more great scripts. This may be used freely as long as this msg is intact! I will also appriciate any links you could give me. ********************************************************************************/ //Default browsercheck, added to all scripts! function checkBrowser(){ this.ver=navigator.appVersion this.dom=document.getElementById?1:0 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) return this } bw=new checkBrowser() /************************************************************************** Variables to set. ***************************************************************************/ //Updated: Added left and top variables. sLeft=0 //The left placement of the menu sTop=70 //The top placement of the menu //The height of the menu sMenuheight=30 //Width of the arrows sArrowwidth=16 //Scroll speed: (in milliseconds, change this one and the next variable to change the speed) sScrollspeed=20 //Pixels to scroll per timeout. sScrollPx=10 /************************************************************************** Scrolling functions ***************************************************************************/ var tim=0 var noScroll=true function mLeft(){ if(!noScroll && oMenu.x<sArrowwidth){ oMenu.moveBy(sScrollPx,0) tim=setTimeout("mLeft()",sScrollspeed) } } function mRight(){ if(!noScroll && oMenu.x>-(oMenu.scrollWidth-(pageWidth))-sArrowwidth){ oMenu.moveBy(-sScrollPx,0) tim=setTimeout("mRight()",sScrollspeed) } } function noMove(){clearTimeout(tim); noScroll=true} /************************************************************************** Object part ***************************************************************************/ function makeObj(obj,nest,menu){ nest=(!nest) ? '':'document.'+nest+'.' this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0; this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0; this.scrollWidth=bw.ns4?this.css.document.width:this.evnt.offsetWidth this.x=(bw.ns4 || bw.ns5)? this.css.left:this.css.pixelLeft; this.y=(bw.ns4 || bw.ns5)? this.css.top:this.css.pixelTop; this.moveBy=b_moveBy; this.moveIt=b_moveIt; this.showIt=b_showIt;this.clipTo=b_clipTo; return this } function b_moveBy(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x; this.css.top=this.y} function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y} function b_clipTo(t,r,b,l){ if(bw.ns4){this.css.clip.top=t; this.css.clip.right=r; this.css.clip.bottom=b; this.css.clip.left=l }else this.css.clip="rect("+t+","+r+","+b+","+l+")"; } function b_showIt(){this.css.visibility="visible"} /************************************************************************** Object part end ***************************************************************************/ /************************************************************************** Init function. Set the placements of the objects here. ***************************************************************************/ function sideInit(){ //Width of the menu, Currently set to the width of the document. //If you want the menu to be 500px wide for instance, just //set the the pageWidth=500 in stead. pageWidth=(bw.ns4 || bw.ns5)?innerWidth:document.body.offsetWidth-20; oBg=new makeObj('divBg') oMenu=new makeObj('divMenu','divBg',1) oArrowRight=new makeObj('divArrowRight','divBg') //Placement oBg.moveIt(sLeft,sTop) //Main div, holds all the other divs. oMenu.moveIt(sArrowwidth,6) oArrowRight.moveIt(pageWidth-sArrowwidth,9) //setting the width and the visible area of the links. if(bw.dom || bw.ie4){ oBg.css.width=pageWidth; oBg.css.overflow="hidden" } oBg.clipTo(0,pageWidth,sMenuheight,0) } //executing the init function on pageload. onload=sideInit; </script> </HEAD> <BODY bgcolor="White"> <div id="divBg"> <div id="divMenu"><table><tr><td nowrap> [<a href="http://www.alwafi2000.com">موقع الوافى</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] [<a href="#">اسم موقع جديد</a>] </td></tr></table> </div> <div id="divArrowLeft"><a href="javascript://" onmouseover="noScroll=false; mLeft()" onmouseout="noMove()"><img src=" http://www.bratta.com/dhtml/scripts/images/arrowleft.gif" width=16 height=21 border=0></A></div> <div id="divArrowRight"><a href="javascript://" onmouseover="noScroll=false; mRight()" onmouseout="noMove()"><img src="http://www.bratta.com/dhtml/scripts/images/arrowright.gif" width=16 height=21 border=0></a></div> </div><br><br> </BODY> </HTML>
مينيو مرافق للزائر صعودا وهبوطاً
<span id="staticcombo" style="position:absolute;left:0;top:0;visibility:hidden"> <form name="jumpy"> <p><select name="example" size="1" onChange="gone()"> <option value="http://www.yahoo.com">موقع ياهو</option> <option value="http://www.msn.com">ميكروسوفت</option> <option value="http://www.geocities.com">جيوسيتز</option> <option value="http://www.cnn.com">سى ان ان</option> </select> <script language="javascript"> <!-- /*Always-visible combo box credit: Website Abstraction (www.wsabstract.com) Over 400+ free JavaScripts here! */ function gone() { location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value } //--> </script> <input type="button" name="test" value="اذهب" onClick="gone()"> </p> </form> </span> <script language="JavaScript1.2"> var combowidth='' var comboheight='' function initialize(){ if (document.all){ combowidth=staticcombo.offsetWidth comboheight=staticcombo.offsetHeight setInterval("staticit_ie()",50) staticcombo.style.visibility="visible" } else if (document.layers){ combowidth=document.staticcombo.document.width comboheight=document.staticcombo.document.height setInterval("staticit_ns()",50) document.staticcombo.visibility="show" } } function staticit_ie(){ staticcombo.style.pixelLeft=document.body.scrollLeft+document.body.clientWidth-combowidth-30 staticcombo.style.pixelTop=document.body.scrollTop+document.body.clientHeight-comboheight } function staticit_ns(){ document.staticcombo.left=pageXOffset+window.innerWidth-combowidth-30 document.staticcombo.top=pageYOffset+window.innerHeight-comboheight } window.onload=initialize </script>
مينيو مع الضغط على الماوس الايمن
<style> <!-- /* Context menu Script- alwafi (www.alwafi2000.com) Last updated: 00/03/28 For full source code, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ .skin0{ position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden; } .skin1{ cursor: default; font: menutext; position: absolute; width: 165px; background-color: menu; border: 1 solid buttonface; visibility:hidden; border: 2 outset buttonhighlight; } .menuitems{ padding-left:15px; padding-right:10px; } --> </style> <script language="JavaScript1.2"> //set the skin of the menu (0 or 1, with 1 rendering a default Windows menu like skin) var menuskin=1 //set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar var display_url=0 function showmenuie5(){ //Find out how close the mouse is to the corner of the window var rightedge=document.body.clientWidth-event.clientX var bottomedge=document.body.clientHeight-event.clientY //if the horizontal distance isn't enough to accomodate the width of the context menu if (rightedge<ie5menu.offsetWidth) //move the horizontal position of the menu to the left by it's width ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth else //position the horizontal position of the menu where the mouse was clicked ie5menu.style.left=document.body.scrollLeft+event.clientX //same concept with the vertical position if (bottomedge<ie5menu.offsetHeight) ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight else ie5menu.style.top=document.body.scrollTop+event.clientY ie5menu.style.visibility="visible" return false } function hidemenuie5(){ ie5menu.style.visibility="hidden" } function highlightie5(){ if (event.srcElement.className=="menuitems"){ event.srcElement.style.backgroundColor="highlight" event.srcElement.style.color="white" if (display_url==1) window.status=event.srcElement.url } } function lowlightie5(){ if (event.srcElement.className=="menuitems"){ event.srcElement.style.backgroundColor="" event.srcElement.style.color="black" window.status='' } } function jumptoie5(){ if (event.srcElement.className=="menuitems"){ if (event.srcElement.getAttribute("target")!=null) window.open(event.srcElement.url,event.srcElement.getAttribute("target")) else window.location=event.srcElement.url } } </script> <!--[if IE]> <div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()"> <div class="menuitems" url="http://alwafi2000.com">موقع الوافى</div> <div class="menuitems" url="http://www.sahab.net" target="newwin">شبكة سحاب</div> <div class="menuitems" url="http://www.yahoo.com">موقع الياهو</div> <div class="menuitems" url="http://www.altavista.com">التافيستا</div> <div class="menuitems" url="http://www.arabiyat.com">موقع عربيات</div> <div class="menuitems" url="http://www.bbc.com">موقع البى بى سى</div> <hr> <div class="menuitems" url="mailto:alwafi01@hotmail.com">راسلنى</div> </div> <![endif]--> <script language="JavaScript1.2"> if (document.all&&window.print){ if (menuskin==0) ie5menu.className="skin0" else ie5menu.className="skin1" document.oncontextmenu=showmenuie5 document.body.onclick=hidemenuie5 } </script>
مينيو منزلقه قائمه
<!-- TWO STEPS TO INSTALL PULLDOWN MENU (POPUP): 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function formHandler(form) { var windowprops = "height=500,width=500,location=no," + "scrollbars=no,menubars=no,toolbars=no,resizable=yes"; var URL = form.site.options[form.site.selectedIndex].value; popup = window.open(URL,"MenuPopup",windowprops); } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <form name=form> <select name=site SIZE=1 onChange="formHandler(this.form)"> <option value="http://www.yoursite.com">Go to.... <option value="http://www.yahoo.com">Yahoo <option value="http://www.metacrawler.com">Metacrawler <option value="http://www.altavista.digital.com">Altavista <option value="http://www.webcrawler.com">Webcrawler <option value="http://www.lycos.com">Lycos </select> </form> </center> <!-- Script Size: 1.32 KB -->
2 أجعل موقعي صفحة البدايه لمتصفحك
<a class="chlnk" style="cursor:hand" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://Stop.at/Alnadeem');"><font color="#FF0000" size="2" face="Tahoma">هنا</font></a>
كلمة مرور واسم مستخدم للدخول الى صفحتك
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function password() { var testV = 1; var pass1 = prompt('الرجاء ادخال كلمة السر',''); while (testV < 3) { if (!pass1) history.go(-1); if (pass1 == "هنا تضع كلمة السر التي تعجبك") { alert('كلمة السر صحيحة .. تفضل.'); //هنا ادخل عنوان الصفحة الموجودة في مجلد صفحتك .. والتي تريد احالة الزائر اليها اذا ادخل الكلمة الصحيحة window.open('corect.htm'); break; } testV+=1; var pass1 = prompt('دخول خاطيء .. اعد المحاولة','*****'); } if (pass1!="******" & testV ==3) history.go(-1); return " "; } // End --> </SCRIPT> <p align="center"> <input type="button" value="منطقة محمية بكلمة مرور" onClick="password()" style="font-family: Tahoma; color: #FF0000"> </FORM>
كلمة مرور واسم مستخدم للدخول الى صفحتك2
الكود الاول ينسخ ويوضع في هيد والكود الثاني في بودي يجب انشاء ثلاث صفحات لهذا الكود الاولى لصفحة الاستقبال الثانية لصفحة الاحالة للموقع الصحيح وتسميها بالارقام السرية اي مثل 1234.html الثالثة لصفحة الاحالة عند الادخال الخاطيء ويجب وضع الثلاث صفحات بجانب بعضهما البعض او ادخال عناوين انترنت اذا رغبت <SCRIPT language="JavaScript"> <!-- Key-code script by Bart Jellema //مثل 1*2*3*4=24 ادخل رقم 24 ورقم اربعة اسفل كما هو موضح احسب حاصل ضرب عددا من الارقام في بعضها وادخلها هنا var usermulcode=24 var code=0 // the entered code var mul=1 // the multiplied digits var digit=0 // number of digits entered so far var fails=0 // number of tries done function Enter_code(number) { code=code*10+number // Add the digit to the code mul=mul*number // Update mul-value document.codepad.thecode.value=code // Show code digit++ // Increase digit if (digit==4) //مثلا 4 كما اوضحت اعلاه عدد الارقام التي اخترتها { if (mul==24) //مرة اخرى حاصل ضربها // the code. In this case // the code is 1234 so the // mul = 1*2*3*4 = 24 // Change this value for // your own code { location=code+".html" } else { fails++ // Increase fails code=0 // Reset values mul=1 digit=0 if (fails<3) { if (fails==1) {document.codepad.thecode.value="أعد المحاولة"} if (fails==2) {document.codepad.thecode.value="اخر محاولة"} } else // To many tries = worp back { location="عنوان الصفحة الخاطئة.html" document.codepad.thecode.value="مع السلامة" } } } } function keycodepad(mulcode) { usermulcode=mulcode document.write("<form name=\"codepad\">"); document.write("<input type=\"button\" value=\" 1 \" onClick=\"Enter_code(1)\">"); document.write("<input type=\"button\" value=\" 2 \" onClick=\"Enter_code(2)\">"); document.write("<input type=\"button\" value=\" 3 \" onClick=\"Enter_code(3)\"><br>"); document.write("<input type=\"button\" value=\" 4 \" onClick=\"Enter_code(4)\">"); document.write("<input type=\"button\" value=\" 5 \" onClick=\"Enter_code(5)\">"); document.write("<input type=\"button\" value=\" 6 \" onClick=\"Enter_code(6)\"><br>"); document.write("<input type=\"button\" value=\" 7 \" onClick=\"Enter_code(7)\">"); document.write("<input type=\"button\" value=\" 8 \" onClick=\"Enter_code(8)\">"); document.write("<input type=\"button\" value=\" 9 \" onClick=\"Enter_code(9)\"><br>"); document.write("<input type=\"text\" name=\"thecode\" size=10 value=\"\"><br>"); document.write("</form>"); } // Key-code script by Bart Jellema --> </SCRIPT> <p align="center" style="background-color: #3457E4"><font face="Tahoma"><script> keycodepad(24) </script>
<<< السابق2
جميع الحقوق محفوظة©ة 2003 - 2006 www.alhanaa.net