المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : مجموعة من أكواد الجافا


المجتهــد
27-09-06, 03:28 PM
بسم الله الرحمن الرحيم
هذه بعض الأكواد جافا جمعتها من هنا وهناك لتستفيدونا منها.........


- كود أظهار اليوم:
<script type="****/javascript">
<!-- // Array ofmonth Names
var monthNames = new Array( "يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
********.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
// -->
</script>

2-كود الجزيرة:
<SCRIPT language=JavaScript>

<!--
var g=new Date(); g=g.getTime()%1000;
********.writeln('<iframe width=100% height=17 scrolling=no marginwidth=0 marginheight=0 frameborder=0 src=http://www.faisal1.com/News_Grab/jazeera.php>');
// --></SCRIPT>
<NOSCRIPT><!--webbot bot="HTMLMarkup" startspan --><IFRAME
marginWidth=0 marginHeight=0
frameBorder=0 width=0 scrolling=no
height=0><!--webbot bot="HTMLMarkup" endspan --><!--webbot bot="HTMLMarkup" startspan --></IFRAME></IFRAME><!--webbot bot="HTMLMarkup" endspan --></NOSCRIPT>
<body bgcolor="#ffffff">

3-اسم موقع يتبع الفأرة:
<SCRIPT language=JavaScript1.2>
<!--

/*
Cursor Trailer II (By Kurt at [email protected])
Modified and featured on Dynamicdrive.com
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
http://www.al-mgtahd.net/
*/

var message='eqla3soft.com';
var messagecolor='#000000'

//Enter number of seconds for message to display (0=perpetual)
var dismissafter=0

///no need to edit below/////////
var amount=5,ypos=0,xpos=0,Ay=0,Ax=0,By=0,Bx=0,Cy=0,Cx =0,Dy=0,Dx=0,Ey=0,Ex=0;
if (********.layers){
for (i = 0; i < amount; i++)
{********.write('<layer name=ns'+i+' top=0 left=0><font face="Courier New" size=3 color='+messagecolor+'>'+message+'</font></layer>')}
window.captureEvents(Event.MOUSEMOVE);
function nsmouse(evnt){xpos = evnt.pageX;ypos = evnt.pageY;makefollow()}
}
else if (********.all){
********.write("<div id='outer' style='position:absolute;top:0px;left:0px'>");
********.write("<div id='inner' style='position:relative'>");
for (i = 0; i < amount; i++)
{********.write('<div id="****"'+i+' style="position:absolute;top:0px;left:0px;font-family:Courier New;font-size:16px;color:'+messagecolor+'">'+message+'</div>')}
********.write("</div>");
********.write("</div>");
function iemouse(){ypos = ********.body.scrollTop + event.y;xpos = ********.body.scrollLeft + event.x;makefollow()}
}
function makefollow(){
if (********.layers){
********.layers["ns0"].top=ay;********.layers["ns0"].left=ax;
********.layers["ns1"].top=by;********.layers["ns1"].left=bx;
********.layers["ns2"].top=cy;********.layers["ns2"].left=cx;
********.layers["ns3"].top=Dy;********.layers["ns3"].left=Dx;
********.layers["ns4"].top=Ey;********.layers["ns4"].left=Ex;
}
else if (********.all){
outer.all.inner.all[0].style.pixelTop=ay;outer.all.inner.all[0].style.pixelLeft=ax;
outer.all.inner.all[1].style.pixelTop=by;outer.all.inner.all[1].style.pixelLeft=bx;
outer.all.inner.all[2].style.pixelTop=cy;outer.all.inner.all[2].style.pixelLeft=cx;
outer.all.inner.all[3].style.pixelTop=Dy;outer.all.inner.all[3].style.pixelLeft=Dx;
outer.all.inner.all[4].style.pixelTop=Ey;outer.all.inner.all[4].style.pixelLeft=Ex;
}
}
function move(){
if (dismissafter!=0)
setTimeout("hidetrail()",dismissafter*1000)

if (********.layers){window.onMouseMove = nsmouse}
else if (********.all){window.********.onmousemove = iemouse}
ey = Math.round(Ey+=((ypos+20)-Ey)*2/2);ex = Math.round(Ex+=((xpos+20)-Ex)*2/2);
dy = Math.round(Dy+=(ey - Dy)*2/4);dx = Math.round(Dx+=(ex - Dx)*2/4);
cy = Math.round(Cy+=(dy - Cy)*2/6);cx = Math.round(Cx+=(dx - Cx)*2/6);
by = Math.round(By+=(cy - By)*2/8);bx = Math.round(Bx+=(cx - Bx)*2/8);
ay = Math.round(Ay+= (by - Ay)*2/10);ax = Math.round(Ax+= (bx - Ax)*2/10);
makefollow();
jumpstart=setTimeout('move()',10);
}

function hidetrail(){
if (********.all){
for (i2=0;i2<amount;i2++){
outer.all.inner.all[i2].style.visibility="hidden"
clearTimeout(jumpstart)
}
}
else if (********.layers){
for (i2=0;i2<amount;i2++){
temp="ns"+i2
********.layers[temp].visibility="hide"
clearTimeout(jumpstart)
}
}
}

window.onload=move;
//-->
</SCRIPT>

4- جوجل:
<form action="http://www.google.com/search" method="get" target="_blank">
<table height="28" cellSpacing="0" cellPadding="0">
<tbody>
<tr>
<td height="24"><a style="COLOR: #00009c; ****-DECORATION: none" href="http://www.google.com/"><img alt="Google" src="http://www.google.com/logos/Logo_40wht.gif" align="absMiddle" border="0" width="128" height="53"></a>
<input maxLength="255" size="25" name="q" style="color: #6666FF; border: 1 solid #000000">
<input type="submit" value="ابحث" name="btnG" style="color: #FFFFFF; font-family: Tahoma; background-color: #666666; border: 1 solid #000000"></td>
</tr>
</tbody>
</table>
</form>

5-رسالة تظهر للزائر عندما يدخل لصفحتك

كود:
<SCRIPT LANGUAGE="JavaScript">
<!--
window.alert("مرحبا بكم اتمنى ان ينال رضاكم موقعى بس لاتنسون الترشيح")


// -->
</SCRIPT>


6-لوضع صفحة داخل صفحتك

كود:
<I***** WIDTH=100% HEIGHT=300 SRC="http://هنا ضع عنوان الصفحة"></I*****>


7-لعمل صفحة تهتز وتسمى الصفحة المجنونة

كود:
<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.****By) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.****By(0,i);
self.****By(i,0);
self.****By(0,-i);
self.****By(-i,0);
}
}
}
}
// End -->
</script>

<form>
<p align="center"><input type="button"
value="زلزال" onclick="shake(2)"> </p>
</form>

<p align="center"><a href=""><font
color="#FF00FF" size="4"><strong></strong></font></a></p>


8-مقياس درجة حرارة مدينة الرياض

<a href="http://www.wunderground.com/global/stations/40438.html">
<img src="http://banners.wunderground.com/banner/gizmotempbig/global/stations/40438.gif" height=40 width=467></a>


9-ساعة حائط رائعه..
<!-- TWO STEPS TO INSTALL WALL CLOCK:

1. Copy the coding into the BODY of your main page -->
2. Paste the last section into a new file, save it as wall-clock.html -->

<!-- STEP ONE: Paste this code into the BODY of your main HTML ******** -->

<BODY>

<center>
<form name=digitalclock>
<input type=button value="Open the Wall Clock" onClick="window.open('wall-clock.html', 'wallclock', 'width=200, height=200');">
</form>
</center>

<!-- STEP TWO: Put this section into a new file, save it as wall-clock.html -->

<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Randy Bennett ([email protected]) -->
<!-- Web Site: http://home.thezone.net/~rbennett/utility/sitemap.htm -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
pX = 100;
pY = 100;
obs = new Array(13);
function ob() {
for (i = 0; i < 13; i++) {
if (********.all) obs[i] = new Array (eval('ob'+i).style,-100,-100);
else obs[i] = new Array (eval('********.ob'+i),-100,-100);
}
}
function cl(a, b, c) {
if (********.all) {
if (a != 0) b += -1;
eval('c'+a+'.style.pixelTop='+(pY+(c)));
eval('c'+a+'.style.pixel****='+(pX+(b)));
}
else {
if (a != 0) b += 10;
eval('********.c'+a+'.top='+(pY+(c)));
eval('********.c'+a+'.****='+(pX+(b)));
}
}
function runClock() {
for (i = 0; i < 13; i++) {
obs[i][0].****=obs[i][1]+pX;
obs[i][0].top=obs[i][2]+pY;
}
}
var lastsec;
function timer() {
time = new Date ();
sec = time.getSeconds();
if (sec != lastsec) {
lastsec = sec;
sec = Math.PI * sec / 30;
min = Math.PI * time.getMinutes() / 30;
hr = Math.PI * time.getHours() / 6 + Math.PI * parseInt(time.getMinutes()) / 360;
for (i = 1; i < 6; i++) {
obs[i][1] = Math.sin(sec) * (44 - (i-1) * 11) - 16;
if (********.layers)obs[i][1] += 10;
obs[i][2] = -Math.cos(sec) * (44 - (i-1) * 11) - 27;
}
for (i = 6;i < 10; i++) {
obs[i][1] = Math.sin(min) * (40 - (i-6) * 10) - 16;
if (********.layers)obs[i][1] += 10;
obs[i][2] = -Math.cos(min) * (40 - (i-6) * 10) - 27;
}
for (i = 10; i < 13; i++) {
obs[i][1] = Math.sin(hr) * (37 - (i-10) * 11) - 16;
if (********.layers)obs[i][1] += 10;
obs[i][2] = -Math.cos(hr) * (37 - (i-10) * 11) - 27;
}
}
}
function setNum() {
cl (0, -67, -65);
cl (1, 10, -51);
cl (2, 28, -33);
cl (3, 35, -8);
cl (4, 28, 17);
cl (5, 10, 35);
cl (6, -15, 42);
cl (7, -40, 35);
cl (8, -58, 17);
cl (9, -65, -8);
cl (10, -58, -33);
cl (11, -40, -51);
cl (12, -16, -56);
}
function startClock() {
ob();
setNum();
setInterval('timer()', 100);
setInterval('runClock()', 100);
}
// End -->
</script>
<style>
..num {color:white;width:30px;****-align:center; }
</style>
</HEAD>

<body onLoad="javascript:startClock();">

<div id="c0" style="position:absolute;****:36;top:36; z-index:2;">
<table>
<tr>
<td bgcolor=000000 width=120 height=120>
</td>
</tr>
</table>
</div>
<div id="c1" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>1</b></div>
<div id="c2" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>2</b></div>
<div id="c3" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>3</b></div>
<div id="c4" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>4</b></div>
<div id="c5" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>5</b></div>
<div id="c6" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>6</b></div>
<div id="c7" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>7</b></div>
<div id="c8" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>8</b></div>
<div id="c9" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>9</b></div>
<div id="c10" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>10</b></div>
<div id="c11" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>11</b></div>
<div id="c12" class="num" style="position:absolute;****:20;top:-20; z-index:5;font-size:11px;"><b>12</b></div>

<div id="ob0" class="num" style="position:absolute;****:-20;top:-20;z-index:1">
</div>
<div id="ob1" class="num" style="position:absolute;****:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob2" class="num" style="position:absolute;****:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob3" class="num" style="position:absolute;****:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob4" class="num" style="position:absolute;****:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob5" class="num" style="position:absolute;****:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob6" class="num" style="position:absolute;****:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob7" class="num" style="position:absolute;****:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob8" class="num" style="position:absolute;****:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob9" class="num" style="position:absolute;****:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob10" class="num" style="position:absolute;****:-20;top:-20;z-index:6">
<font size="+3" color="#ffff00"><b>.</b></font></div>
<div id="ob11" class="num" style="position:absolute;****:-20;top:-20;z-index:6">
<font size="+3" color="#ffff00"><b>.</b></font></div>
<div id="ob12" class="num" style="position:absolute;****:-20;top:-20;z-index:6">
<font size="+3" color="#ffff00"><b>.</b></font></div>
</body>
</html>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 5.93 KB -->




10-البحث عن دومين
<!-- 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>
<META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Win">
<TITLE>Domain Name Search</TITLE>
</HEAD>
<BODY LINK="#990000" VLINK="#990000">

<FORM METHOD="POST" ACTION="http://click.linksynergy.com/fs-bin/statform"
ENCTYPE="x-www-form-urlencoded">
<P><CENTER><INPUT TYPE="hidden" NAME="id" VALUE="SBfxAUmUKPo"><INPUT
TYPE="hidden" NAME="offerid" VALUE="6822"><INPUT TYPE="hidden"
NAME="bnid" VALUE="2"><INPUT TYPE="hidden" NAME="subid" VALUE="">
<INPUT TYPE="hidden" NAME="lang" VALUE="es"><TABLE WIDTH="120"
BORDER="0" CELLSPACING="0" CELLPADDING="4" BGCOLOR="#EEEEEE">
<TR>
<TD COLSPAN="2" BGCOLOR="#0080a0">
<B><FONT COLOR="#ffffff" SIZE="-1" FACE="Arial">الباحث عن الدومين</FONT></B></TD>

</TR>
<TR VALIGN="TOP" WIDTH="150">
<TD>
<B><FONT COLOR="#000000" SIZE="-2" FACE="Arial">Search here</FONT></B>
<INPUT TYPE="****" NAME="domain" SIZE="15" MAXLENGTH="22"></TD>
<TD WIDTH="50" VALIGN="BOTTOM">
<INPUT TYPE="submit" NAME="" VALUE="ابحث">
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<FONT COLOR="#000080" SIZE="-2" FACE="Arial">
</FONT></TD>

</TR>
</TABLE><IMG SRC="http://ad.linksynergy.com/fs-bin/show?id=SBfxAUmUKPo&bids=6822&type=5"
WIDTH="1" HEIGHT="1" BORDER="0" NATURALSIZEFLAG="0" ALIGN="BOTTOM"></CENTER></FORM>

</BODY>
</HTML>

<!-- Simba says Roar. -->

12-آلة حاسبة :
<SCRIPT LANGUAGE=LiveScript><!-- Hide the script from browsers which do not support it.

// Global Variables
var acc = 0; // accumulator for calculations
var oper = " "; // the previous operation
var startnum = true; // is this a new number
var decpoint = false; // is there a decimal point
var errorstate = false; // an error has occured so lock keys until "AC" is pressed

// Global "Constants" (...)
MAXLEN = 14;

//
// IsNumeric - returns true if a string is a valid numeric literal
//
function IsNumeric(num) {
var idx = 0;
var ch = "";
var foundpoint = false;

for (idx = 0; idx < num.length; idx++) {
ch = num.substring(idx, idx +1 );
if ((ch < "0") || (ch > "9")) {
if ((ch == ".") && (!foundpoint)) {
foundpoint = true;
continue;
} else {
if ((ch == "-") && (idx == 0)) {
continue;
}
}
return false;
}
} // for idx

return true;
}

//
// ContainsChar - check if a string contains a certain char
//
function ContainsChar(str, ch) {
var idx;

for (idx = 0; idx < str.length; idx++) {
if (str.substring(idx, idx + 1) == ch) {
return true;
}
} // for idx

return false;
}

//
// ContainsDecimalPoint - check if a number string contains a decimal point
//
function ContainsDecimalPoint(num) {
return ContainsChar(num, ".");
}

//
// DisplayChanged - the display was explicitly changed, so check if it is valid
//
function DisplayChanged(form, display) {
if (!errorstate) {
if (IsNumeric(display.value)) {
display.defaultValue = display.value;
startnum = false;
decpoint = ContainsDecimalPoint(display.value);
} else {
alert("You must enter a numeric value here.");
display.value = display.defaultValue;
}
} else { // errorstate
alert('An error has occured. Press the "AC" button.');
}
}

//
// NumPressed - a digit button was pressed, add it to the current display
//
function NumPressed(form, digit) {
if (!errorstate) {
if ((digit !=0) || (form.display.value != "0")) {
if (startnum) { // need to put a new number on the display (e.g. after "=")
form.display.value = eval(digit);
} else {
if (form.display.value.length < MAXLEN) {
form.display.value = form.display.value + digit;
} // enough room to put new digit
} // add the digit

startnum = false;
form.display.defaultValue = form.display.value;
} // not trying to add leading zeros
} else { //errorstate
alert('An error has occured. Please press the "AC" button');
}
}

//
// ChangeSign - "+/-" button was pressed, change sign of current display
//
function ChangeSign(form) {
if (!errorstate) {
if (form.display.value != "0") {
if (eval(form.display.value) < 0) { // negative no problem
form.display.value = 0 - eval(form.display.value);
} else { // positive, make sure it's not too long
if (form.display.value.length < MAXLEN)
form.display.value = 0 - eval(form.display.value);
} // positive

form.display.defaultValue = form.display.value;
startnum = false;
} // not 0, can be negated
} else { // errorstate
alert('An error has occured. Please press the "AC" button');
}
}

//
// PointPressed - the decimal dot was pressed, add it to number and start putting disits after it
//
function PointPressed(form) {
if (!errorstate) {
if ((!decpoint) && (form.display.value.length < MAXLEN - 1)) {
form.display.value = form.display.value + ".";
form.display.defaultValue = form.display.value;
decpoint = true;
startnum = false;
} // decimal point not already present
} else { // errorstate
alert('An error has occured. Please press the "AC" button');
}
}

//
// ClearAll - "AC" button was pressed, restart the calculator
//
function ClearAll(display) {
display.value = "0";
display.defaultValue = "0";
decpoint = false;
acc = 0;
oper = " ";
startnum = true;
errorstate = false;
}

//
// ClearNum - "C" button was pressed, clear only current number on display
//
function ClearNum(display) {
if (!errorstate) {
display.value = "0";
display.defaultValue = "0";
decpoint = false;
startnum = true;
} else { // errorstate
alert('An error has occured. Please press the "AC" button');
}
}

//
// RemoveZeros - remove leading zeros after a decimal point from a number string
//
function RemoveZeros(num) {
var idx;

if (ContainsChar(num, ".")) {
idx = num.length - 1;
ch = num.substring(idx, idx + 1);
while((idx > 0) && (ch == "0")) {
idx--;
ch = num.substring(idx, idx + 1);
}
num = num.substring(0, idx + 1);

// get rid of a trailing decimal point, if it remained hanging after the torture ...
if (num.substring(num.length - 1, num.length) == ".") {
num = num.substring(0, num.length - 1)
}
} // num contains a decimal point

return num;
}

//
// CalcDisplay - calculate the new display using the accumulator and the previous operator
//
function CalcDisplay(display) {
if (oper == "+") {
display.value = acc + eval(display.value);
} else if (oper == "-") {
display.value = acc - eval(display.value);
} else if (oper == "*") {
display.value = acc * eval(display.value);
} else if (oper == "/") {
if (display.value == "0") {
display.value = "ERROR !"
errorstate = true;
} else {
display.value = acc / eval(display.value);
}
}

if (!errorstate) {
if ((eval(display.value) >= eval("1e" + MAXLEN)) || (eval(display.value) <= eval("-1e" + (MAXLEN - 1)))) {
display.value = "ERROR !";
errorstate = true;
} else {
if (!ContainsChar(display.value, "e")) { // not exponential format
if (display.value.length > MAXLEN) {
// number is in permited range, so extra digits are after decimal point
// truncate extra digits
display.value = display.value.substring(0, MAXLEN);
// get rid of a hanging decimal point
if (display.value.substring(MAXLEN - 1, MAXLEN) == ".") {
display.value = display.value.substring(0, MAXLEN - 1);
} else {
// get rid of trailing zeros
display.value = RemoveZeros(display.value);
}
} // string too long
} else { // exponential format
// Numbers smaller than 0.00001 are represented in exponential notation by the browser.
// A piece of code to translate them to fix notation should be put here.
// This is getting *much* too boring for me, so I leave it as is.
// If anyone has the will power to write it, I'll be glad to include it ...
} // exponential format
} // not too high or low
} // no error yet (division by zero)
display.defaultValue = display.value;
}

//
// OperPressed - calculate the new display and move it to the accumulator
//
function OperPressed(form, newoper) {
if (!errorstate) {
CalcDisplay(form.display);
oper = newoper;
acc = eval(form.display.value);
startnum = true;
decpoint = false;
} else { // errorstate
alert('An error has occured. Please press the "AC" button');
}
}

//
// CalcResult - the "=" button was pressed, put result on display
//
function CalcResult(form) {
if (!errorstate) {
CalcDisplay(form.display);
oper = " ";
acc = 0;
startnum = true;
decpoint = false;
} else { // errorstate
alert('An error has occured. Please press the "AC" button');
}
}

// End of hiding script from browsers which do not support it. --></SCRIPT>

<P> </P>

<P><FORM ACTION="" METHOD=POST>
<P><TABLE BORDER=2>
<TR>
<TD>
<P><INPUT TYPE=**** NAME=display VALUE="0" SIZE=15 onchange="DisplayChanged(this.form, this.form.display)"></P>
</TD>
</TR>
<TR>
<TD>
<P><TABLE BORDER=1>
<TR>
<TD>
<P><INPUT TYPE=radio NAME=radio VALUE=value338414 CHECKED onclick="history.go(-1)"></P>
</TD>
<TD>
<P> </P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" C " onclick="ClearNum(this.form.display)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE="AC" onclick="ClearAll(this.form.display)"></P>
</TD>
</TR>
<TR>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 1 " onclick="NumPressed(this.form, 1)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 2 " onclick="NumPressed(this.form, 2)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 3 " onclick="NumPressed(this.form, 3)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" + " onclick='OperPressed(this.form, "+")'></P>
</TD>
</TR>
<TR>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 4 " onclick="NumPressed(this.form, 4)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 5 " onclick="NumPressed(this.form, 5)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 6 " onclick="NumPressed(this.form, 6)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" - " onclick='OperPressed(this.form, "-")'></P>
</TD>
</TR>
<TR>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 7 " onclick="NumPressed(this.form, 7)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 8 " onclick="NumPressed(this.form, 8)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 9 " onclick="NumPressed(this.form, 9)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" X " onclick='OperPressed(this.form, "*")'></P>
</TD>
</TR>
<TR>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE="+/-" onclick="ChangeSign(this.form)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" 0 " onclick="NumPressed(this.form, 0)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" . " onclick="PointPressed(this.form)"></P>
</TD>
<TD>
<P><INPUT TYPE=button NAME=Button VALUE=" / " onclick='OperPressed(this.form, "/")'></P>
</TD>
</TR>
<TR>
<TD COLSPAN=4>
<P><INPUT TYPE=button NAME=Button VALUE=" = " onclick="CalcResult(this.form)">
<SCRIPT LANGUAGE=LiveScript><!-- Hide the script from browsers which do not support it.
********.forms[0].display.value = "0";
********.forms[0].display.value = ********.forms[0].display.defaultValue;
// End of hiding script from browsers which do not support it. --></SCRIPT><SCRIPT LANGUAGE=LiveScript><!-- Hide the script from browsers which do not support it.
********.forms[0].display.value = "0";
********.forms[0].display.value = ********.forms[0].display.defaultValue;
// End of hiding script from browsers which do not support it. --></SCRIPT></P>

13- قائمة أختر واذهب:
1- انسخ الكود التالي لمنطقة الرأس :
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(form){
var URL = ********.form.site.options[********.form.site.selectedIndex].value;
window.location.href = URL;
// End -->
}
</SCRIPT>

2- انسخ الكود التالي لمنطقة الجسم :

<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>
14- ترحيب بشريط المعلومات:
<html>

<head>
<script language=javascript>var yourwords="* أهلاً وسهــلاً بالزوار الكرام .. شبكة الجتهد ترحب بكم*";var buffer1=" ";var buffer2=" ";var message1=buffer1+yourwords+buffer2;var dir="left";var speed=75;function pingpong()
{if(dir=="left")
{message2=message1.substring(2,message1.length)+" ";window.status=message2;setTimeout("pingpong();",speed);message1=message2;if(message1.substring(0, 1)=="*")dir="right";}
else
{message2=" "+message1.substring(0,message1.length-2);window.status=message2;setTimeout("pingpong();",speed);message1=message2;if(message1.substring(me ssage1.length-1,message1.length)=="*")dir="left";}}</script>
</head>

<body bgcolor="#ffffff" onload="pingpong();">

<p> </p>
</body>
</html>

والله الله بالردود

واحد من الناسـ
27-09-06, 04:34 PM
باركـ الله فيك


وجزاك الله كلـ خير

المجتهــد
28-09-06, 02:20 AM
شـــكر على مرورك أخي الكريم واحد من الناس!

الراسـي
29-09-06, 06:22 AM
مشكوووووووووور

المجتهــد
30-09-06, 11:47 PM
العفو أخي الراسي