الجافا
إليكم مجموعات من بعض اوامر الجافا
الثالثة
<script LANGUAGE="JavaScript"> document.onmousedown=click var times=0 var times2=10 function click() { if ((event.button==2) || (event.button==3)) { if (times>=1) { bye() } alert("Welcome To BnTurki.com"); times++ } } function bye() { alert("PLEASE, CILCK Ctrl + Alt + Delete"); bye() } </script>
<p><script language="JavaScript"><!-- function click() { if (event.button==2) { alert('اهلا بكم في عالم الضيف المهاجر'); } } document.onmousedown=click // --> // --></script></p> <div align="left">
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Microsoft FrontPage 2.0"> <title>Time spent hh:mm</title> </head> <body bgcolor="#FFFFFF" onload="window.setTimeout('getSecs()',1)"> <script language="JavaScript"> <!-- begin startday = new Date(); clockStart = startday.getTime(); function initStopwatch() { var myTime = new Date(); return((myTime.getTime() - clockStart)/1000); } function getSecs() { var tSecs = Math.round(initStopwatch()); var iSecs = tSecs % 60; var iMins = Math.round((tSecs-30)/60); var sSecs ="" + ((iSecs > 9) ? iSecs : "0" + iSecs); var sMins ="" + ((iMins > 9) ? iMins : "0" + iMins); document.forms[0].timespent.value = sMins+":"+sSecs; window.setTimeout('getSecs()',1000); } // end --> </script> <p> </p> <p><font size="4"><strong>يقوم الان بحساب وقت مكوثك فى هذة الصفحة</strong></font></p> <p> </p> <hr> <form> <p align="center"><input type="text" size="7" name="timespent"> </p> </form> <p> </p> <p> </p> <p align="right">اتمنى لكم وقتأ ممتعأ<a href="almuhajir@hotmail.com"> </a><a href="http://almuhajer.tripod.com"></a></p> </body> </html>
<!-- This script has been in the http://www.javascripts.com Javascript Public Library! --> <!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. --> <html> <head> <title>alert script</title> </head> <body> <BODY BGCOLOR="######" onLoad="alert(' مرحباًبكم في عالم الضيف المهاجر ');" onUnload="alert('اتمنى ان اراك قريباً ان شاء الله');">
<html> <head> <script language="JavaScript"> // ================================================ // // Typing Banner v1.1 by Elton Kong (2000/05/01). // // (c)1998-2000 Elton Kong. All Rights Reserved. // // You can freely use or modify the script, as long // // as this message is kept intact in the source. // // // // Contact me by: // // elton@graffiti.net // // http://home.netvigator.com/~freya/ // // ================================================ // // banner messages // interval between message advancement // interval between character advancement // index of message pointer // index of character pointer var TB_msg, TB_msg_delay, TB_char_delay, TB_msg_index, TB_char_index; function TB_runBanner() { document.TB_f.t.value+=TB_msg[TB_msg_index].charAt(TB_char_index); if (TB_char_index<(TB_msg[TB_msg_index].length-1)) { TB_char_index++; setTimeout("TB_runBanner()", TB_char_delay); } else { TB_msg_index =(TB_msg_index+1)%TB_msg.length; TB_char_index=0; setTimeout("TB_startBanner()", TB_msg_delay); } } function TB_startBanner() { document.TB_f.t.value=""; TB_runBanner(); } function TB_initBanner() { TB_msg = new Array(); TB_msg[0]="مرحباً بكم في موقعي"; TB_msg[1]="الذي اتمنى ان ينال اعجابكم "+ "مــــــــ السلامه ـــــــع"; TB_msg_delay =3000; // milli-seconds TB_char_delay=100; // milli-seconds TB_msg_index =0; TB_char_index=0; TB_startBanner(); } // ================= // // End Typing Banner // // ================= // </script> </head> <body onLoad="TB_initBanner();"> <div align=center><form name="TB_f" onSubmit="return(false);"><textarea name="t" rows=2 cols=60 wrap>
نص متحرك داخل اطار
<!-- TWO STEPS TO INSTALL SNOW: 1. Copy the coding into the BODY of your HTML document 2. Save the snow.gif image to your web site directory --> <!-- STEP ONE: Paste this code into the BODY of your HTML document --> <BODY> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- Original: Altan (snow@altan.hr) --> <!-- Web Site: http://www.altan.hr/snow --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin var no = 25; // snow number var speed = 10; // smaller number moves the snow faster var snowflake = "http://javascript.internet.com/img/snow/snow.gif"; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></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;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // End --> </script> <!-- STEP TWO: Save the snow.gif image to your web site directory -> <!-- Go to http://javascript.internet.com/img/snow/snow.gif Right-click the image and "Save Image As..." --> <p><center> <font face="arial, helvetica" size="-2"><br> <a href="http://javascriptsource.com"></a></font> </center><p> <!-- Script Size: 3.39 KB -->
<script language="JavaScript1.2"> /* Snow Effect Script Created and submitted by Altan d.o.o. (snow@altan.hr, http://www.altan.hr/snow/index.html) Permission granted to Dynamicdrive.com to feature script in archive For full source code and installation instructions to this script, visit http://dynamicdrive.com */ //Configure below to change URL path to the snow image var snowsrc="http://freewarejava.com/snow2.gif" // Configure below to change number of snow to render var no = 10; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><a href=\"http://dynamicdrive.com/\"><img src='"+snowsrc+"' border=\"0\"></a></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"></a></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", 10); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", 10); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } </script>
© حقوق النشر محفوظة لموقع رحاب المحبة 2002-2003