بسم الله الرحمن الرحيم : إخواني الأعزاء سأكتب في هذه الصفحة الكثير من كودات الجافا سكريت ...
وأقترح على مشرف المنتدى تثبيت هذا الموضوع لكي يضيف الأعضاء دائما فيه .......
إطار للصفحة :
<script language="JavaScript1.2"> if (document.all) document.body.style.cssText="border:25 inset red" </script>
نافذة تنفتح شيئا فشيئا :
<SCRIPT LANGUAGE="JavaScript">
<!--
var InitialWidth =10;
var InitialHeight=10;
var WidthInc =25;
var HeightInc=25;
var ScreenHeight=950;
var ScreenWidth=1000;
var CurrentHeight=500;
var CurrentWidth =600;
self.resizeTo(InitialWidth,InitialHeight);
self.moveTo( (ScreenWidth/2) - (InitialWidth/2) ,(ScreenHeight/2) - (InitialHeight/2));
var Id = setInterval("Grow()", 100);
function Grow() {
if(WidthInc == 0 && HeightInc == 0) {
clearInterval();
return;
}
if(WidthInc && CurrentWidth + WidthInc > ScreenWidth){
WidthInc = ScreenWidth - CurrentWidth;
self.moveBy(-(WidthInc/2),-(HeightInc/2));
self.resizeBy(WidthInc,HeightInc);
WidthInc=0;
return;
}
if(HeightInc && CurrentHeight + HeightInc > ScreenHeight){
HeightInc = ScreenHeight - CurrentHeight;
self.moveBy(-(WidthInc/2),-(HeightInc/2));
self.resizeBy(WidthInc,HeightInc);
HeightInc = 0;
return;
}
self.moveBy(-(WidthInc/1),-(HeightInc/1));
self.resizeBy(WidthInc,HeightInc);
CurrentWidth +=WidthInc;
CurrentHeight +=HeightInc;
}
//-->
</script> عبارة عن نافذة صغيرة مثل إعلان أو لفت نظر الزوار إلى شيء أنت تريده
<SCRIPT LANGUAGE="JavaScript">
<!--
window.open("http:// .. .. .. ..","windowname","height=350,width=350,scrollbars,resizable")
</SCRIPT>إنشاء قائمة متحركة في المستعرض تتحرك مع مع تحرك المستعرض :
إنسخ ما يلي وضعه في منطقة منطقة الرأس :
<STYLE TYPE="text/css">
<!--
.menuh {
BORDER-COLOR : #FFFF99;
cursor : hand;
Border-Left : #FFFF99;
Border-Top : #FFFF99;
Padding-Left : 1px;
Padding-Top : 1px;
Background-Color : #FFFF99;
}
.menu {
Background-Color : white;
}
.home {
cursor : hand;
}
.menulinks{
text-decoration:none;
}
//-->
</STYLE>وضع هذه في منطقة الجسم :
<SCRIPT Language="Javascript1.2"><!--/*Static menu script II (By maXimus, maximus@nsimail.com, http://absolutegb.com/maximus/ ">http://absolutegb.com/maximus/ )Modified slightly/ permission granted to Dynamic Drive to feature script in archiveFor full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com ">http://dynamicdrive.com *///configure below variable for menu width, position on pagevar menuwidth=110var offsetleft=10var offsettop=90var ns4=document.layers?1:0var ie4=document.all?1:0var ns6=document.getElementById&&!document.all?1:0function makeStatic() {if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}setTimeout("makeStatic()",0);}if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')}else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}if (ie4||ns6||ns4)document.write('<TR><TD BGCOLOR="#3399FF" BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#003399"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL>Menu</FONT></TD></TR>')var menui = new Array();var menul = new Array();//configure below for menu items. Extend list as desiredmenui[0]="1";menui[1]="2";menui[2]="3";menui[3]="4";menui[4]="5";menui[5]="6";menui[6]="7";menui[7]="8";menul[0]="http://1";menul[1]="http://2";menul[2]="http://3";menul[3]="http://4";menul[4]="http://5";menul[5]="http://6";menul[6]="http://7";menul[7]="http://8";for (i=0;i<=menui.length-1;i++)if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="white" ONCLICK="location=''+menul+''" onmouseover="className='menuh'" onMouseout="className='menu'"><CENTER><FONT>'+menui+'</FONT></TD></TR>')}else if (ns4){document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor='yellow'" onmouseout="bgColor='white'"><CENTER><A HREF="'+menul+'" class=menulinks>'+menui+'</A></CENTER></LAYER></ILAYER></TD></TR>')}if (ie4||ns6) {document.write('</TABLE></span>')}else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}function menu3(){if (ns6||ie4||ns4)makeStatic()}window.onload=menu3//--></SCRIPT>آلة حاسبة في صفحتك :
<table border="2" width="200" cellspacing="0" cellpadding="0" bgcolor="#000000"style="border-color:black" onClick="previouskey=event.srcElement.innerText"> <tr> <td width="100%" bgcolor="#FFFFFF" id="result" style="font:bold 20px Verdana;color:black;text-align='right'">0</td> </tr> <tr> <td width="100%" valign="middle" align="center"><table border="0" width="100%" cellspacing="0" cellpadding="0" style="font:bold 20px Verdana;color:white"> <tr> <td width="80%" align="center"><table border="1" width="100%" cellspacing="0" cellpadding="0" style="cursor:hand;font:bold 20px Verdana;color:white" onMouseover="if (event.srcElement.tagName=='TD')event.srcElement.style.color='yellow'" onMouseout="event.srcElement.style.color='white'" onselectStart="return false" onClick="calculate()" height="82"> <tr> <td width="25%" align="center" height="17">7</td> <td width="25%" align="center" height="17">8</td> <td width="25%" align="center" height="17">9</td> <td width="25%" align="center" height="17">/</td> </tr> <tr> <td width="25%" align="center" height="19">4</td> <td width="25%" align="center" height="19">5</td> <td width="25%" align="center" height="19">6</td> <td width="25%" align="center" height="19">*</td> </tr> <tr> <td width="25%" align="center" height="19">1</td> <td width="25%" align="center" height="19">2</td> <td width="25%" align="center" height="19">3</td> <td width="25%" align="center" height="19">-</td> </tr> <tr> <td width="25%" align="center" height="19">0</td> <td width="25%" align="center" height="19" onClick="pn();previouskey=1;event.cancelBubble=true">+/-</td> <td width="25%" align="center" height="19">.</td> <td width="25%" align="center" height="19">+</td> </tr> </table> </td> <td width="20%"><table border="1" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%" style="cursor:hand;font:bold 20px Verdana;color:white;text-align:center" onClick="result.innerText=0;results=''">C</td> </tr> </table><table border="1" width="100%" cellspacing="0" cellpadding="0" height="81"> <tr> <td width="100%" style="cursor:hand;font:bold 32px Verdana;color:white;text-align:center" onMouseover="event.srcElement.style.color='yellow'" onMouseout="event.srcElement.style.color='white'" onClick="calculateresult()">=</td> </tr> </table> </td> </tr> </table> </td> </tr></table><script language="JavaScript1.2">/*DHTML Calculator Script- © Dynamic Drive (www.dynamicdrive.com)For full source code, installation instructions,100's more DHTML scripts, and Terms OfUse, visit dynamicdrive.com*/var results=''var previouskey=''var re=/(/|*|+|-)/var re2=/(/|*|+|-){2}$/var re3=/.+(/|*|+|-).+/var re4=/d|./var re5=/^[^/*+].+d$/var re6=/./function calculate(){if (event.srcElement.tagName=="TD"){if (event.srcElement.innerText.match(re4)&&previouskey=="=")results=''if (result.innerText.match(re3)&&event.srcElement.innerText.match(re)){if (!results.match(re5)){result.innerText="Error!"return}results=eval(results)if (results.toString().length>=12&&results.toString().match(re6))results=results.toString().substring(0,12)result.innerText=results}results+=event.srcElement.innerTextif (results.match(re2))results=results.substring(0,results.length-2)+results.charAt(results.length-1)result.innerText=results}}function calculateresult(){if (!results.match(re5)){result.innerText="Error!"return}results=eval(results)if (results.toString().length>=12&&results.toString().match(re6))results=results.toString().substring(0,12)result.innerText=results}function pn(){if (result.innerText.charAt(0)!='-')result.innerText=results='-'+result.innerTextelse if (result.innerText.charAt(0)=='-')result.innerText=results=result.innerText*(-1)}</script>خلفية موسيقية لصفحتك :<script>
var musicsrc="http://arabteam.com/mofak.mid"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">')
else
document.write('<embed src="'+musicsrc+'" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
</script>ارجوا الإفادة وسأضيف العديد من السكربتات في القريب إن شاء الله ..
(gift) (f)