الجافا
إليكم مجموعات من بعض اوامر الجافا
الثانية عشرة
هذا الكود يتكون من خطوتان الخطوه الاولى عليك بإضافة هذا الكود <style> <!-- #spotlight{ filter:light } --> </style> في منطقة الرأس أي بين الواصفتين <head>- </head> والخطوه الثانية إضافة بقية الكود بين الواصفتين <body> - </body> وهذا كود الخطوه الثانية <p align="center"><br> <img src="Image2.jpg" width="400" height="85" id="spotlight" speed="70"> </p> <p><script language="JavaScript1.2"> /* Moving light on image 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&&window.spotlight){ var x=new Array() var direction=new Array() var y=new Array() if (spotlight.length==null){ spotlight[0]=document.all.spotlight x[0]=0 direction[0]="right" y[0]=spotlight[0].height spotlight[0].filters.light.addPoint(100,50,100,255,255,255,90) } else for (i=0;i<spotlight.length;i++){ x[i]=0 direction[i]="right" y[i]=spotlight[i].height spotlight[i].filters.light.addPoint(100,50,100,255,255,255,90) } } function slidelight(cur){ spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1) if (x[cur]<spotlight[cur].width+200&&direction[cur]=="right") x[cur]+=10 else if (x[cur]>spotlight[cur].width+200){ direction[cur]="left" x[cur]-=10 } else if (x[cur]>-200&&x[cur]<-185){ direction[cur]="right" x[cur]+=10 } else{ x[cur]-=10 direction[cur]="left" } } if (document.all&&window.spotlight){ if (spotlight.length==null) setInterval("slidelight(0)",spotlight[0].speed) else for (t=0;t<spotlight.length;t++){ var temp='setInterval("slidelight('+t+')",'+spotlight[t].speed+')' eval(temp) } } </script> </p>
<script language="JavaScript"> <!-- Original: Mike Hall (MHall75819@aol.com) --> <!-- Web Site: http://members.aol.com/MHall75819 --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin var NS4 = (document.layers); var IE4 = (document.all); var win = this; var n = 0; function findInPage(str) { var txt, i, found; if (str == "") return false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if (n == 0) alert(str + " was not found on this page."); } if (IE4) { txt = win.document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart("character", 1); txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else alert(str + " was not found on this page."); } } return false; } // End --> </script> <form name="search" onsubmit="return findInPage(this.string.value);"> <p align="center"><font color="#800080" size="4"><strong>ابحث</strong></font> <input type="text" size="15" name="string" onchange="n = 0;"> </p> </form>
<!-- TWO STEPS TO INSTALL POPUP WINDOW: 1. Paste the first into the HEAD of your HTML document 2. Use the code to open the popup page on your site --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- The JavaScript Source!! http://damma2000.homepage.com// --> <!-- Begin function popUp() { props=window.open('سجل هنا عنوان موقعك', 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=400, height=500, left = 250, top = 100'); } // End --> </script> <!-- STEP TWO: Use the following button code for the new window --> <form> <input type=button value="أرسل لي موقعك الشخصي أو خبرني عن موقع رائع " onClick="javascript:popUp()"> </form> <!-- Script Size: 0.73 KB -->
الخطوه الاولى عليك بإضافة هذا الكود <style> <!-- .shakeimage{ position:relative } //--> </style> في الرأس أي بين الواصفتين <head>- </head> والخطوه الثانية إضافة بقية الكود بين الواصفتين <body> - </body> وهذا كود الخطوه الثانية <script language="JavaScript1.2"> /* Shake image script (onMouseover)- © Dynamic Drive (www.dynamicdrive.com) For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com */ //configure shake degree (where larger # equals greater shake) var rector=3 ///////DONE EDITTING/////////// var stopit=0 var a=1 function init(which){ stopit=0 shake=which shake.style.left=0 shake.style.top=0 } function rattleimage(){ if ((!document.all&&!document.getElementById)||stopit==1) return if (a==1){ shake.style.top=parseInt(shake.style.top)+rector } else if (a==2){ shake.style.left=parseInt(shake.style.left)+rector } else if (a==3){ shake.style.top=parseInt(shake.style.top)-rector } else{ shake.style.left=parseInt(shake.style.left)-rector } if (a<4) a++ else a=1 setTimeout("rattleimage()",50) } function stoprattle(which){ stopit=1 which.style.left=0 which.style.top=0 } </script> </p> <p><a href="mailto:info@bnturki.net"><img src="email12.gif" alt="لمراســلتي" border="0" width="60" height="60" class="shakeimage" onmouseover="init(this);rattleimage()" onmouseout="stoprattle(this)"></a> <a href="index.htm"><img src="index.gif" alt="الرئيســـية" border="0" width="60" height="60" class="shakeimage" onmouseover="init(this);rattleimage()" onmouseout="stoprattle(this)"></a> </p>
<script> <!-- /* View-source script credit: By Website Abstraction (http://almuhajer.tripod.com ) Over 200+ free JavaScripts here! */ function viewthesource(){ window.location="view-source:"+window.location } //--> </script> <p><a href="javascript:viewthesource()">اضغط هنا لمشاهدة مصدر هذه الصفحة</a> </p> <p align="center"> </p> <p align="center"><a href="http://almuhajer.tripod.com/"><font size="3" face="arial"><strong>almuhajer.tripod.com</strong></font></a><font size="3" face="arial"><strong> </strong></font></p>
ارتجاج الشاشة
<script language="JavaScript1.2"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function shake(n) { if (self.moveBy) { for (i = 10; i > 0; i--) { for (j = n; j > 0; j--) { self.moveBy(0,i); self.moveBy(i,0); self.moveBy(0,-i); self.moveBy(-i,0); } } } } // End --> </script> <form> <p align="center"><input type="button" value="اضغـــط هنـــا" onclick="shake(2)"> </p> </form> <p align="center"><a href="http://almuhajer.tripod.com/"><font color="#FF00FF" size="4"><strong>عالم الضيف المهاجر</strong></font></a></p>
<script language="JavaScript"><!-- http://almuhajer.tripod.com var message1 = "Almuhajer - Corner Java" var message2 = "almuhajir@hotmail.com" var delay = 5000 // Sets the delay between switching messages changer1(); function changer1() { ID = setTimeout("changer2()",delay); document.title = (message1); } function changer2() { ID = setTimeout("changer1()",delay); document.title = (message2); } // end hide // --></script>
<script language="JAVASCRIPT"><!-- hide //-------------------------------------------------- // Copyright Reaz Hoque, 1996, All right reserved // This code can be used for non-profit use only if // the copyright notice is kept. //--------------------------------------------------- function customize(form) { var address = document.form1.url.value; var op_tool = (document.form1.tool.checked== true) ? 1 : 0; var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0; var op_dir = (document.form1.dir.checked == true) ? 1 : 0; var op_stat = (document.form1.stat.checked == true) ? 1 : 0; var op_menu = (document.form1.menu.checked == true) ? 1 : 0; var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0; var op_resize = (document.form1.resize.checked == true) ? 1 : 0; var op_wid = document.form1.wid.value; var op_heigh = document.form1.heigh.value; var option = "toolbar=" + op_tool + ",location=" + op_loc_box + ",directories=" + op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars=" + op_scroll + ",resizeable=" + op_resize + ",width=" + op_wid + ",height=" + op_heigh; var win3 = window.open("", "what_I_want", option); var win4 = window.open(address, "what_I_want"); } function clear(form){ document.form1.wid.value=""; document.form1.heigh.value=""; } // done hiding --> </script><div align="center"><center> <table border="1" cellpadding="5"> <tr> <td><pre> </pre> <form action="javascript:" method="POST" name="form1"> <div align="center"><center><pre><input type="text" size="30" name="url" value="http://">: URL <input type="checkbox" name="tool">: Toolbar <input type="checkbox" name="loc_box">: Location <input type="checkbox" name="dir">: Directories <input type="checkbox" name="stat">: Status <input type="checkbox" name="menu">: Menubar <input type="checkbox" name="scroll">: Scrollbars <input type="checkbox" name="resize">: Resizable <input type="text" size="20" name="wid" value="500">: Width <input type="text" size="20" name="heigh" value="200">: Height <input type="button" value=" ENTER " onclick="customize(this.form)"> <input type="reset" value=" RESET " onclick="clear(this.form)"> </pre> </center></div> </form> </td> </tr> </table> </center></div> <p align="center"><a href="http://almuhajer.tripod.com/"><font color="#FF00FF" size="4"><strong>Almuhajir</strong></font></a></p>
© حقوق النشر محفوظة لموقع رحاب المحبة 2002-2003