مرحبا
عزيزنا الزائر .. يسرنا أن نقدم لك اكواد الجافا هذه والتي تسهل الأمر
للمبتدئين بتصميم المواقع وأكواد الجافا ضروريه ونحتاجها كثيرا في تصميم
المواقع
فقط قم بنسخ ولزق
الكود الذي تريد بصفحتك....نتمنى أن تجد ماتبحث عنه بهذه
الصفحه
(ملاحظه : يجب
عليك تغيير مابالكود ليتناسب مع موقعك)
منــــــــوعــــــات
هذا الكود رائع
جدا يجعل الصفحه تهتز لفتره وجيزه بعد دخولك اليها
_________________________
<head>
<style>
<!--A:link {text-decoration: none; color: #0000ff;}A:visited {text-decoration: none; color: #0000FF;}A:active {text-decoration: none; color:#FF0000; }A:hover {text-decoration: none; color: #ff0000;font-size:16 ;}//-->
</style>
</head>
لالغاء الخطوط التي
تظهر تحت الوصلات
_________________________
<script language="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Hide from old browsers
var Color= new Array(9);
Color[1] = "ff";
Color[2] = "ee";
Color[3] = "dd";
Color[4] = "cc";
Color[5] = "bb";
Color[6] = "aa";
Color[7] = "99";
Color[8] = "88";
Color[9] = "77";
Color[10] = "66";
Color[11] = "55";
Color[12] = "44";
Color[13] = "33";
Color[14] = "22";
Color[15] = "11";
Color[16] = "00";
/* Do not display text on a fading background. Instead, let it
fade in and out once or twice, then load a new page. */
function fadeIn(where) {
if (where >= 1) {
document.bgColor="#" + Color[where] +"0000";
where -= 1;
setTimeout("fadeIn("+where+")", 15);
} else {
setTimeout('fadeOut(1)', 15);
}
}
function fadeOut(where) {
if (where <=16) {
document.bgColor="#" + Color[where] +"0000";
where += 1;
setTimeout("fadeOut("+where+")", 15)
} else {
setTimeout("fadeIn(16)", 15);
// window.location.href="http://www.netscape.com/";
}
}
// Unhide -->
</script>
ثم انسخ هذا الكود في منطقة الجسم
<body onload="fadeIn(16)">
هذا الكود لعمل خلفيه
مضيئه..فلاش
شاهد هنا هذا التأثير
_________________________
<script language="JavaScript">
<!--
function backbs(clr) {
document.bgColor = clr
}
//-->
</script>
<form>
<input type="button" value="ازرق فاتح" onclick="backbs('aqua')">
<input type="button" value="اصفر" onclick="backbs('yellow')">
<input type="button" value="أحمر " onclick="backbs('red')">
<input type="button" value="ابيض" onclick="backbs('white')">
<input type="button" value="رصاصي" onclick="backbs('gray')">
</form>
هذا الكود يجعل الزائر يختار لون الخلفيه
لصفحتك
اضفط على الألوان وشاهد بنفسك
__________________________
<FORM name="back">
<SELECT name="g" onChange="change()">
<OPTION VALUE="aqua">ازرق فاتح
<OPTION VALUE="green">اخضر
<OPTION VALUE="orange">برتقالي
<OPTION VALUE="yellow">اصفر
<OPTION VALUE="purple">بنفسجي
<OPTION VALUE="gray">رصاصي
<OPTION VALUE="pink">وردي
<OPTION VALUE="lavender">جي فاتح
<OPTION VALUE="khaki">ككاوي
<OPTION VALUE="skyblue">ازرق سماوي
<OPTION VALUE="white" SELECTED>ابيض
</SELECT>
<INPUT TYPE="button" VALUE="اختار اللون">
</FORM>
<script language="Javascript">
<!--
//http://www.geocities.com/planet9000
function change() {
document.bgColor = document.back.g.options[document.back.g.selectedIndex].value
}
//-->
</script>
هذا الكود ايضا لاختيار لون الخلفيه ولكن بطريقه
أخرى رائعه وسهله
مثل هذا النموذج
كحلي اخضر
برتقالي اصفر بنفسجي
رصاصي وردي بنفسجي فاتح
ككاوي ازرق سماوي
ابيض
____________________________
<script language="JavaScript1.2">
//change 1 to another integer to alter the scroll speed. Greater is faster
var speed=1
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function scrollwindow(){
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+speed
else
currentpos=window.pageYOffset+speed
window.scroll(0,currentpos)
}
else{
currentpos=30
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",30)
}
window.onload=initialize
</script>
هذا الكود يجعل الصفحه تعرض نفسها
________________________
<!-- TWO STEPS TO INSTALL STARS:
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>
<style type="text/css">
<!-- Begin CSS
#a { position: absolute; top: 10px; left: 10px; visibility: visible }
#b { position: absolute; top: 10px; left: 10px; visibility: visible }
#c { position: absolute; top: 10px; left: 10px; visibility: visible }
#d { position: absolute; top: 10px; left: 10px; visibility: visible }
#e { position: absolute; top: 10px; left: 10px; visibility: visible }
#f { position: absolute; top: 10px; left: 10px; visibility: visible }
#g { position: absolute; top: 10px; left: 10px; visibility: visible }
End CSS -->
</style>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<layer name="a0" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,2,2"></layer>
<layer name="a1" left=10 top=10 visibility=show bgcolor="#ff8000" clip="0,0,2,2"></layer>
<layer name="a2" left=10 top=10 visibility=show bgcolor="#ffff00" clip="0,0,2,2"></layer>
<layer name="a3" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,2,2"></layer>
<layer name="a4" left=10 top=10 visibility=show bgcolor="#0000ff" clip="0,0,2,2"></layer>
<layer name="a5" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,2,2"></layer>
<layer name="a6" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,2,2"></layer>
<div id="starsDiv" style="position:absolute;top:0px;left:0px">
<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#ffff00;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#ff0000;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#FF00FF;font-size:2px;visibility:visible"></div>
</div>
<script language="JavaScript">
<!-- Original: freeware.de -->
<!-- Web Site: http://freeware.de -->
<!-- MSIE Fix by: Kurt Grigg (kurt.grigg@virgin.net) -->
<!-- Begin
if (document.layers) {
window.captureEvents(Event.MOUSEMOVE);
}
var yBase = 200;
var xBase = 200;
var yAmpl = 10;
var yMax = 40;
var step = .2;
var ystep = .5;
var currStep = 0;
var tAmpl=1;
var Xpos = 1;
var Ypos = 1;
var i = 0;
var j = 0;
if (document.all) {
function MoveHandler(){
Xpos = document.body.scrollLeft + event.x;
Ypos = document.body.scrollTop + event.y;
}
document.onmousemove = MoveHandler;
}
else if (document.layers) {
function xMoveHandler(evnt) {
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
window.onMouseMove = xMoveHandler;
}
function animateLogo() {
if (document.all) {
yBase = window.document.body.offsetHeight / 4;
xBase = window.document.body.offsetWidth / 4;
}
else if (document.layers) {
yBase = window.innerHeight / 4;
xBase = window.innerWidth / 4;
}
if (document.all) {
for (i = 0 ; i < starsDiv.all.length; i++) {
starsDiv.all[i].style.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);
starsDiv.all[i].style.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);
}
}
else if (document.layers) {
for (j = 0; j < 7; j++) { //7 is number of NS layers!
var templayer="a" + j;
document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
}
}
currStep += step;
setTimeout("animateLogo()", 10);
}
animateLogo();
// End -->
</script>
<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: 4.21 KB -->
هذا الكود رائع جدا لعمل تأثيرات مع
الماوس..جربه الآن
________________________
<!-- THREE STEPS TO INSTALL MOUSE BANNER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY tag your HTML document
3. Put the final code inside the BODY of your HTML page -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<style>.spanstyle {
COLOR: white; FONT-FAMILY: Verdana; FONT-SIZE: 8pt; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px; VISIBILITY: visible
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Peter Gehrig -->
<!-- Web Site: http://www.24fun.ch -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var x, y;
var step = 10;
var flag = 0;
var message = "JavaScript is so cool !! ";
message = message.split("");
var xpos = new Array();
for (i = 0; i <= message.length - 1; i++) {
xpos[i] = -50;
}
var ypos = new Array();
for (i = 0; i <= message.length - 1; i++) {
ypos[i]= -50;
}
function handlerMM(e) {
x = (document.layers) ? e.pageX : document.body.scrollLeft + event.clientX;
y = (document.layers) ? e.pageY : document.body.scrollTop + event.clientY;
flag = 1;
}
function makesnake() {
if (flag == 1 && document.all) {
for (i = message.length - 1; i >= 1; i--) {
xpos[i] = xpos[i - 1] + step;
ypos[i] = ypos[i - 1];
}
xpos[0] = x + step;
ypos[0] = y;
for (i = 0; i < message.length - 1; i++) {
var thisspan = eval("span" + (i) + ".style");
thisspan.posLeft = xpos[i];
thisspan.posTop = ypos[i];
}
}
else if (flag==1 && document.layers) {
for (i = message.length - 1; i >= 1; i--) {
xpos[i] = xpos[i - 1] + step;
ypos[i] = ypos[i - 1];
}
xpos[0] = x + step;
ypos[0] = y;
for (i = 0; i < message.length - 1; i++) {
var thisspan = eval("document.span" + i);
thisspan.left = xpos[i];
thisspan.top = ypos[i];
}
}
var timer = setTimeout("makesnake()", 10);
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY tag od your HTML document -->
<body bgcolor="#000080" text="#000000" onload="makesnake()"
style="OVERFLOW-X: hidden; OVERFLOW-Y: scroll; WIDTH: 100%">
<!-- STEP THREE: Put the final code inside the BODY of your HTML document -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
for (i = 0; i <= message.length-1; i++) {
document.write("<span id='span"+i+"' class='spanstyle'>");
document.write(message[i]);
document.write("</span>");
}
if (document.layers) {
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;
// End -->
</script>
<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: 2.08 KB -->
هذا الكود لعمل نص يتبع الماوس..ولكن اتبع
الخطوات بداخل هذا الكود
__________________________
!-- 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://www.your-web-site-address-here.com/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">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 3.39 KB -->
هذا الكود لعمل خلفية ثلوج متساقطه أو أي صوره
يمكن أن تضعها بدل الثلوج
__________________________
<!-- خطوتان لتركيب هذا الكود -->
<!-- الخطوة الأولى : انسخ الكود التالي في منطقة الرأس او head -->
<STYLE>
<!--
BODY {
background-attachment: fixed;
background-position: 50 0;
background-repeat: repeat
}
-->
</STYLE>
<!--الخطوة الثانية انسخ هذا الكود في منطقة الجسم أو body -->
<SCRIPT ID=code>
var timerID
function StopBackground() {
clearTimeout(timerID)
}
function AnimateBackground(hPos,vPos,hInc,vInc,delay) {
if (arguments[5])
document.body.style.backgroundImage = "url(\"" + arguments[5] + "\")"
if (arguments[6])
document.body.style.backgroundRepeat = arguments[6]
if (!isNaN(hPos)) {
if ((hInc!=0) && (hPos>0)) hPos=-100000
hPos+=hInc
}
if (!isNaN(vPos)) {
if ((vInc!=0) && (vPos>0)) vPos=-100000
vPos+= vInc
}
document.body.style.backgroundPosition= hPos + " " + vPos
if (isNaN(hPos)) hPos = "\"" + hPos + "\""
if (isNaN(vPos)) vPos = "\"" + vPos + "\""
timerID = setTimeout("AnimateBackground("+hPos+","+vPos+","+hInc+","+vInc+","+delay+")",delay)
}
AnimateBackground(0,"center",-5,0,50, "عنوان الصورة هنا")
function getValue(el) {
for (var i=0; i < el.length; i++) {
if (el[i].checked) return el[i].value
}
return ""
}
function Update() {
var repeat = getValue(document.all.repeatDirection)
var hDir = getValue(document.all.horizDir)
var hStep = 0
if (hDir=="absolute") {
hDir = parseInt(document.all.horizValue.value)
hStep = parseInt(document.all.horizStep.value)
}
var vDir = getValue(document.all.verDir)
var vStep = 15
if (vDir=="absolute") {
vDir = parseInt(document.all.verValue.value)
vStep = parseInt(document.all.verStep.value)
}
StopBackground()
AnimateBackground(hDir,vDir,hStep,vStep,parseInt(document.all.speed.value),document.all.img.value,repeat)
if (isNaN(hDir)) hDir = "\"" + hDir + "\""
if (isNaN(vDir)) vDir = "\"" + vDir + "\""
var scode="AnimateBackground(" + hDir + "," + vDir + "," + hStep+ "," + vStep + "," + parseInt(document.all.speed.value) + ",\"" + document.all.img.value + "\",\"" + repeat + "\")"
document.all.output.innerHTML = scode
}
</SCRIPT>
هذا الكود لعمل خلفيه متحركه
__________________________
<script
language="JavaScript">
<!--
function click() {
if (event.button==2) {
alert('لا تحاول ممنوع يعني ممنوع');
}
}
document.onmousedown=click
// -->
// -->
</script>
هذا الكود هو رساله تحذيريه تمنع الضغط الأيمن
للماوس
________________________
<!-- TWO STEPS TO INSTALL CHECK ENTRY:
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 validate(){
var invalid = " "; // Invalid character is a space
if (document.submitform.filename.value.indexOf(invalid) > -1) {
alert("Sorry, spaces are not allowed.");
return false;
}
else {
return true;
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
<form name=submitform onSubmit="return validate()">
<input type=file name=filename>
<p>
<input type=submit value="Submit">
</form>
</center>
<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: 0.95 KB -->
كود يجعلك تعرض الملفات التي لديك في
السي
ويمكن الزوار أيضا من عرض ملفاتهم....اضغط على
براوس..لاتخاف ماشفنا شي
__________________________
<SCRIPT LANGUAGE="JavaScript">
<!--
// Made by SportsFan
// Page at http://suns.home.ml.org
// Note: This was originally Rotating Banners depending on time; however,
// I edited it into a clock...
var timeNow=new Date();
var now=timeNow.getMinutes();
var hour=timeNow.getHours();
if(now<=60)
number=60;
if(now<=59)
number=59;
if(now<=58)
number=58;
if(now<=57)
number=57;
if(now<=56)
number=56;
if(now<=55)
number=55;
if(now<=54)
number=54;
if(now<=53)
number=53;
if(now<=52)
number=52;
if(now<=51)
number=51;
if(now<=50)
number=50;
if(now<=49)
number=49;
if(now<=48)
number=48;
if(now<=47)
number=47;
if(now<=46)
number=46;
if(now<=45)
number=45;
if(now<=44)
number=44;
if(now<=43)
number=43;
if(now<=42)
number=42;
if(now<=41)
number=41;
if(now<=40)
number=40;
if(now<=39)
number=39;
if(now<=38)
number=38;
if(now<=37)
number=37;
if(now<=36)
number=36;
if(now<=35)
number=35;
if(now<=34)
number=34;
if(now<=33)
number=33;
if(now<=32)
number=32;
if(now<=31)
number=31;
if(now<=30)
number=30;
if(now<=29)
number=29;
if(now<=28)
number=28;
if(now<=27)
number=27;
if(now<=26)
number=26;
if(now<=25)
number=25;
if(now<=24)
number=24;
if(now<=23)
number=23;
if(now<=22)
number=22;
if(now<=21)
number=21;
if(now<=20)
number=20;
if(now<=19)
number=19;
if(now<=18)
number=18;
if(now<=17)
number=17;
if(now<=16)
number=16;
if(now<=15)
number=15;
if(now<=14)
number=14;
if(now<=13)
number=13;
if(now<=12)
number=12;
if(now<=11)
number=11;
if(now<=10)
number=10;
if(now<=9)
number="09";
if(now<=8)
number="08";
if(now<=7)
number="07";
if(now<=6)
number="06";
if(now<=5)
number="05";
if(now<=4)
number="04";
if(now<=3)
number="03";
if(now<=2)
number="02";
if(now<=1)
number="01";
if(hour==24)
hour=12;
if(hour==23)
hour=11;
if(hour==22)
hour=10;
if(hour==21)
hour=9;
if(hour==20)
hour=8;
if(hour==19)
hour=7;
if(hour==18)
hour=6;
if(hour==17)
hour=5;
if(hour==16)
hour=4;
if(hour==15)
hour=3;
if(hour==14)
hour=2;
if(hour==13)
hour=1;
if(hour==12)
hour=12;
if(hour==11)
hour=11;
if(hour==10)
hour=10;
if(hour==9)
hour=9;
if(hour==8)
hour=8;
if(hour==7)
hour=7;
if(hour==6)
hour=6;
if(hour==5)
hour=5;
if(hour==4)
hour=4;
if(hour==3)
hour=3;
if(hour==2)
hour=2;
if(hour==1)
hour=1;
var JSHOUR=""+hour+""
var JSTIME=""+number+""
document.write("<center><table border=0 cellspacing=0 bgcolor=000000><tr><td>");
document.write("<center><font size=+2 color=ffffff>الساعة الأن "+JSHOUR+":"+JSTIME+"</font></A></td></tr></table></center>");
//-->
</SCRIPT>
هذه ساعه تبين الوقت
ـــــــــــــــــــــــــــــــــــــــــــــــــــ
<!-- 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 document -->
<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 (rbennett@thezone.net) -->
<!-- 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 (document.all) obs[i] = new Array (eval('ob'+i).style,-100,-100);
else obs[i] = new Array (eval('document.ob'+i),-100,-100);
}
}
function cl(a, b, c) {
if (document.all) {
if (a != 0) b += -1;
eval('c'+a+'.style.pixelTop='+(pY+(c)));
eval('c'+a+'.style.pixelLeft='+(pX+(b)));
}
else {
if (a != 0) b += 10;
eval('document.c'+a+'.top='+(pY+(c)));
eval('document.c'+a+'.left='+(pX+(b)));
}
}
function runClock() {
for (i = 0; i < 13; i++) {
obs[i][0].left=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 (document.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 (document.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 (document.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;text-align:center; }
</style>
</HEAD>
<body onLoad="javascript:startClock();">
<div id="c0" style="position:absolute;left: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;left:20;top:-20; z-index:5;font-size:11px;"><b>1</b></div>
<div id="c2" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>2</b></div>
<div id="c3" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>3</b></div>
<div id="c4" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>4</b></div>
<div id="c5" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>5</b></div>
<div id="c6" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>6</b></div>
<div id="c7" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>7</b></div>
<div id="c8" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>8</b></div>
<div id="c9" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>9</b></div>
<div id="c10" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>10</b></div>
<div id="c11" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>11</b></div>
<div id="c12" class="num" style="position:absolute;left:20;top:-20; z-index:5;font-size:11px;"><b>12</b></div>
<div id="ob0" class="num" style="position:absolute;left:-20;top:-20;z-index:1">
</div>
<div id="ob1" class="num" style="position:absolute;left:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob2" class="num" style="position:absolute;left:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob3" class="num" style="position:absolute;left:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob4" class="num" style="position:absolute;left:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob5" class="num" style="position:absolute;left:-20;top:-20;z-index:8">
<font size="+3" color="#0000ff"><b>.</b></font></div>
<div id="ob6" class="num" style="position:absolute;left:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob7" class="num" style="position:absolute;left:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob8" class="num" style="position:absolute;left:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob9" class="num" style="position:absolute;left:-20;top:-20;z-index:7">
<font size="+3" color="#00ffff"><b>.</b></font></div>
<div id="ob10" class="num" style="position:absolute;left:-20;top:-20;z-index:6">
<font size="+3" color="#ffff00"><b>.</b></font></div>
<div id="ob11" class="num" style="position:absolute;left:-20;top:-20;z-index:6">
<font size="+3" color="#ffff00"><b>.</b></font></div>
<div id="ob12" class="num" style="position:absolute;left:-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 -->
ساعة حائط رائعه..فقط اتبع الخطوات التي بداخل
الكود
_________________________
<input type="Button" name="lukk" value=" لتحديث الصفحه" style="font-size: x-small; font-family: Tahoma; font-weight: normal; color: BLAC; background-color: #FFFFC6;" onClick="javascript:location.reload()">
كــود يعمل على تحديث الصفحه..مثل
هذا
__________________________
<script>
<!--
/*
Auto Refresh Page with Time script
By Website Abstraction (wsabstract.com)
Over 200+ free scripts here!
*/
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:30"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
//-->
</script>
هذا الكود يعمل ريفريش اتوماتيكي
للصفحه..رائع
__________________________
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://www.geocities.com/planet9000 -->
<!-- Begin
var days = new Array(8);
days[1] = "الاحد";
days[2] = "الاثنين";
days[3] = "الثلاثاء";
days[4] = "الاربعاء";
days[5] = "الخميس";
days[6] = "الجمعة";
days[7] = "السبت";
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November1";
months[12] = "December";
var dateObj = new Date(document.lastModified)
var wday = days[dateObj.getDay() + 1]
var lmonth = months[dateObj.getMonth() + 1]
var date = dateObj.getDate()
var fyear =+ dateObj.getYear()
document.write(wday + ", " + lmonth + " " + date + ", " + fyear)
// End -->
</SCRIPT>
هذا الكود يكتب يوم وتاريخ اخر مره عملت فيها
تحديث لصفحتك
________________________
<SCRIPT language=JavaScript>function showdate()
{
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))
year="19" + year;
if (navigator.appName == "Netscape")
year=1900 + year;
document.write("<left><font size=1 face=\"tahoma,Helvetica\">" + lmonth + " ");
document.write(date + ", " + year + "</font></left>");
}</SCRIPT>
<SCRIPT language=JavaScript><!--
showdate();//--></SCRIPT>
<LEFT><FONT face=tahoma,Helvetica size=1>اخرتحديث
في</FONT></LEFT>
</body>
وهذا الكود أيضا لكتابة آخر مره قم فيها بتحديث
الصفحه..أفضل من السابق
مثل هذا
اخرتحديث في
______________________
أكواد
تهمك
<embed src="xxx.swf" width="564" height="90" type="application/x-shockwave-flash" align="center">
كود سهل لوضع ملف الفلاش
(قم بتعديل عنوان الملف والطول والعرض حسب طلبك)
_____________________________
<img border="0" src="عنوان الصوره هنا" width="العرض" height="الطول">
كود وضع الصوره (فقط
قم بوضع عنوان الصوره وطول الصوره + العرض)
___________________________
<STYLE type=text/css>BODY {
SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #000000; SCROLLBAR-SHADOW-COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #FFFFFF; SCROLLBAR-DARKSHADOW-COLOR: black
}
</STYLE>
كود شريط المتصفح
(يعطي ألوان جذابه للشريط , فقط قم بتعديل الالوان)
______________________________________________
ألعـــــــــاب
<layer name="a0" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,1,1"></layer>
<layer name="a1" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer>
<layer name="a2" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer>
<layer name="a3" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a4" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,1,1"></layer>
<layer name="a5" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a6" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,1,1"></layer>
<layer name="a7" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,1,1"></layer>
<layer name="a8" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer>
<layer name="a9" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer>
<layer name="a10" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a11" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,2,2"></layer>
<layer name="a12" left=10 top=10 visibility=show bgcolor="#0000ff" clip="0,0,2,2"></layer>
<layer name="a13" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,2,2"></layer>
<script language="JavaScript">
/*
Document firework script (By Kurt Gregg, kurt.grigg@virgin.net)
Modified granted to Dynamic Drive to feature script in archive
For full source and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
if (document.all)
with(document){
write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')
write('<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div>')
write('</div>')
}
var Clrs=new Array(9)
Clrs[0]='ff0000';
Clrs[1]='00ff00';
Clrs[2]='000aff';
Clrs[3]='ff00ff';
Clrs[4]='ffa500';
Clrs[5]='ffff00';
Clrs[6]='00ff00';
Clrs[7]='ffffff';
Clrs[8]='fffff0';
var sClrs=new Array(5)
sClrs[0]='ffa500';
sClrs[1]='55ff66';
sClrs[2]='AC9DFC';
sClrs[3]='fff000';
sClrs[4]='fffff0';
var yBase;
var xBase;
var step;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;
var initialStarColor='ffa000';
var Mtop=250;
var Mleft=250;
function Fireworks() {
if (document.all)
{
yBase = window.document.body.offsetHeight/3;
xBase = window.document.body.offsetWidth/8;
}
else if (document.layers)
{
yBase = window.innerHeight/3;
xBase = window.innerWidth/8;
}
if (document.all)
{
step=5;
for ( i = 0 ; i < starsDiv.all.length ; i++ )
{
for (ai=0; ai < Clrs.length; ai++)
{
var c=Math.round(Math.random()*[ai]);
}
if (currStep < 90)
starsDiv.all[i].style.background=initialStarColor;
if (currStep > 90)
starsDiv.all[i].style.background=Clrs[c];
starsDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100)
starsDiv.all[i].style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100)
}
}
else if (document.layers)
{
step = 5;
for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
{
var templayer="a"+j
for (ai=0; ai < Clrs.length; ai++)
{
var c=Math.round(Math.random()*[ai]);
}
if (currStep < 90)
document.layers[templayer].bgColor=initialStarColor;
if (currStep > 90)
document.layers[templayer].bgColor=Clrs[c];
document.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100)
document.layers[templayer].left = Mleft + yBase*Math.cos((currStep+j*5)/3)*Math.sin(550+currStep/100)
}
}
currStep+= step;
//window.status=currStep;
T=setTimeout("Fireworks()",5);
if (currStep==220)
{
currStep=-10;
for (n=0; n < sClrs.length; n++)
{
var k=Math.round(Math.random()*n);
}
initialStarColor=sClrs[k];
if (document.all)
{
Dtop=window.document.body.clientHeight-250;
Dleft=xBase*3.5;
Mtop=Math.round(Math.random()*Dtop);
Mleft=Math.round(Math.random()*Dleft);
document.all.starsDiv.style.top=Mtop+document.body.scrollTop;
document.all.starsDiv.style.left=Mleft+document.body.scrollLeft;
}
else if (document.layers)
{
Dleft=window.innerWidth-100;
Dtop=window.innerHeight-100;
Mtop=Math.round(Math.random()*Dtop+window.pageYOffset);
Mleft=Math.round(Math.random()*Dleft+window.pageXOffset);
document.layers[templayer].top=Mtop;
document.layers[templayer].left=Mleft;
}
if ((Mtop < 20) || (Mleft < 20))
{
Mtop+=90;
Mleft+=90;
}
}
}
if (document.all||document.layers)
Fireworks();
</script>
هذا الكود لعمل ألعاب ناريه بالصفحه
___________________________
<!-- STEP ONE:انسخ الجزء التالي لمنطقة الراس -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function calc() {
first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length;
var LoveCount=0;
for (Count=0; Count < firstlength; Count++) {
letter1=first.substring(Count,Count+1);
if (letter1=='L') LoveCount+=2;
if (letter1=='O') LoveCount+=2;
if (letter1=='V') LoveCount+=2;
if (letter1=='E') LoveCount+=2;
if (letter1=='Y') LoveCount+=3;
if (letter1=='O') LoveCount+=1;
if (letter1=='U') LoveCount+=3;
}
for (Count=0; Count < secondlength; Count++) {
letter2=second.substring(Count,Count+1);
if (letter2=='L') LoveCount+=2;
if (letter2=='O') LoveCount+=2;
if (letter2=='V') LoveCount+=2;
if (letter2=='E') LoveCount+=2;
if (letter2=='Y') LoveCount+=3;
if (letter2=='O') LoveCount+=1;
if (letter2=='U') LoveCount+=3;
}
amount=0;
if (LoveCount> 0) amount= 5-((firstlength+secondlength)/2)
if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2)
if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2)
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2)
if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2)
if (LoveCount>10) amount= 50-((firstlength+secondlength)/2)
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2)
if (LoveCount>14) amount= 70-((firstlength+secondlength)/2)
if (LoveCount>16) amount= 80-((firstlength+secondlength)/2)
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2)
if (LoveCount>20) amount=100-((firstlength+secondlength)/2)
if (LoveCount>22) amount=110-((firstlength+secondlength)/2)
if (firstlength==0 || secondlength==0) amount= "Err";
if (amount < 0) amount= 0;
if (amount >99) amount=99;
document.loveform.output.value=amount+"%";
}
// End -->
</script>
<!-- STEP TWO: انسخ الجزء التالي لجسم الصفحة في المكان الذي تريد للأستمارة ان تظهر -->
<BODY>
<form name=loveform>
<input value="عنتر" name="name1" type="text" size="20"> +
<input value="عبلة" name="name2" type="text" size="20"> =
<input value="" name="output" type="text" size="6">
<br>
<br>
<input value="احسب" name="calculate" type="button" value="calculate" onclick="calc()">
</form>
لعبة اختبار الحب..مسليه
__________________________
<!-- ONE STEP TO INSTALL EYES:
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Original: demigod@psxexchange.com -->
<!-- Web Site: http://www.psxexchange.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var brOK = false, mie = false;
if (document.layers || document.all) brOK = true;
if (document.all) mie = true;
var ex = 0, ey = 0;
var ae, le, re, x0, y0, tid, realx, realy;
function navMove(e) {
ex = e.pageX;
ey = e.pageY;
moveeye()
return routeEvent(e);
}
function mieMove() {
ex = document.body.scrollLeft + event.x;
ey = document.body.scrollTop + event.y;
moveeye();
}
function moveeye() {
dy = ey - y0 - 20;
dx1 = ex - x0 - 20;
dx2 = ex - x0 - 60;
r = Math.sqrt(dx1 * dx1 + dy * dy);
if (r < 20) r = 20;
dx1 = dx1 * 10 / r + x0 + 10;
dy1 = dy * 10 / r + y0 + 10;
r = Math.sqrt(dx2 * dx2 + dy * dy);
if (r < 20) r = 20;
dx2 = dx2 * 10 / r + x0 + 50;
ae.left = x0;
ae.top = y0;
le.left = dx1;
le.top = dy1;
re.left = dx2;
re.top = dy1;
}
function setHandlers() {
if (!mie) {
y0 = document.eyeballs.top;
x0 = document.eyeballs.left;
ae = document.eyeballs;
le = document.lefteye;
re = document.righteye;
window.captureEvents(Event.MOUSEMOVE);
window.onMouseMove = navMove;
}
else {
y0 = document.all.eyeballs.style.pixelTop;
x0 = document.all.eyeballs.style.pixelLeft;
ae = document.all.eyeballs.style;
le = document.all.lefteye.style;
re = document.all.righteye.style;
window.document.onmousemove = mieMove;
}
realx = x0 + 0.1;
realy = y0 + 0.1;
moveall();
}
function moveall() {
rx = realx + 40;
ry = realy + 40;
rx += (ex - rx) * 0.1;
ry += (ey - ry) * 0.1;
realx = rx - 40;
realy = ry - 40;
x0 = Math.round(realx);
y0 = Math.round(realy);
moveeye();
tid = setTimeout('moveall()', 100);
}
function placeeyes(x, y) {
if (brOK) {
ex = x + 40;
ey = y + 40;
s = '<DIV ID ="dummy" STYLE="position:absolute; ' +
'top:'+y+'; left:'+x+'; width:10; height:10;"> </DIV>';
s += '<DIV ID="eyeballs" STYLE="position:absolute; ' +
'top:'+y+'; left:'+x+'; width:80; height:40;"><IMG SRC=' +
'"whites.gif" border=0></DIV>';
s += '<DIV ID="lefteye" STYLE="position:absolute; ' +
'top:'+(y+10)+'; left:'+(x+10)+'; width:20; height:20;">' +
'<IMG SRC="pupil.gif" border=0></DIV>';
s += '<DIV ID="righteye" STYLE="position:absolute; ' +
'top:'+(y+10)+'; left:'+(x+50)+'; width:20; height:20;">' +
'<IMG SRC="pupil.gif" border=0></DIV>';
document.writeln(s);
}
}
function clearEyes() {
if (tid) clearTimeout(tid);
}
placeeyes(200, 100);
window.onload = setHandlers;
window.onunload = clearEyes;
// End -->
</script>
<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: 2.83 KB -->
عيوننا تراقبك...حركه مسليه جدا تتبع الماوس
ولكن عليك بحفظ صوره العيون لديك أولا
__________________________
<span lang=AR-SA><script language="JavaScript">
<!--
window.alert("السلام عليكم")
window.alert("من انت")
window.alert("وش سمك ها")
window.alert("كم عمرك؟")
window.alert("بنت")
window.alert(" ولاولد ")
window.alert("قول الحقيقه...")
window.alert(" بدون لف ")
window.alert(" ولادوران ")
window.alert("لالا الظاهر ولد")
window.alert("ولا بنت ومتخفيه")
window.alert("من وين جاي ها")
window.alert(" وش جابك عندنا ها ")
window.alert("مو قلنالك لاتدخل هنا ")
window.alert("وتولع النور بعد")
window.alert("خلاص ازعجتنا وش تبي")
window.alert("طيب مانطول عليك بس نتمنى ان الكود يعجبك ")
window.alert(" واذا تبي تشوف اللعبه الأصليه ")
window.alert(" روح لصفحة الألعاب ")
window.alert(" ماشفت شي ")
window.alert("اوكي مانعطلك")
window.alert(" باي ")
// -->
</script>
كود رائع لعمل فخ للزوار اذا دخلوا الصفحه..ممكن
تبدل الكلام أو تضيف المزيد
___________________________