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

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


D3m-fny
02-Jan-2007, 02:28 AM
أكواد جافا مهمة لكـــــل موقع

كود اضافة الموقع في المفضلة..(استبدل ttm.netfirms بدومين موقعك فقط)

كود:

<p align="center"><a href="javascript:window.external.AddFavo rite('http://www.geocities.com/ttm.netfirms/',%20'%20[%20أكتب اسم موقعك هنا%20%20]%20')" target="_top"><b><font color="#FFFFFF" size="3" face="Traditional Arabic">اضفنيللمفضلة </font></b></a>




2- كود اجعل الموقع هو الصفحة الرئيسية ..(استبدل ttm.netfirms بدومين موقعك فقط)

كود:

<a href="#" onclick="this.style.behavior='url(#defau lt#homepage)';this.setHomePage('http://www.geocities.com/ttm.netfirms/');" style="BACKGROUND-COLOR: #003300; BEHAVIOR: url(#default#homepage); CURSOR: hand" target="_self"><u><b><font color="#ffffff" size="3" face="Traditional Arabic"> موقعك الإفتراضي</font></b></u></a>



3- كود لعمل زر "راسلني"..


كود:

<p align="center"><INPUT TYPE="button" VALUE="راسلـــــــني" onClick="parent.location='mailto:عنوان البريد?subject=جملة ترحيب بالمرسل'" style="font-family: Tahoma; color: #0000FF; background-color: #F0F0F0"></FORM>



4- كود لإلغاء أي رسالة الخطأ تظهرعند معاينة الموقع..

أنصح بها في كل موقع لأنها تريحك من مشاكل الجافا.. أنا جربتها بنفسي ..)انسخ التالي في <HEAD>


كود:

<script language="JavaScript"><!--function stopError() {return true;}window.onerror = stopError;// --></script>




5- كود لتثيبت صورة في خلفية الموقع مهما كان طول الموقع..

كود:

<STYLE TYPE="text/css"><!--BODY {background-image: URL(الصورة.gif);background-position: center;background-repeat: no-repeat;background-attachment: fixed;}--></STYLE>




6- كود حكمة تتغير عند دخولك الصفحة..

كود:

<script LANGUAGE="JavaScript"><!-- Beginvar a = Math.random() + ""var rand1 = a.charAt(5)quotes = new Arrayquotes[1] = "لايلدغ المؤمن من جحر مرتين"quotes[2] = "لا يرمي الناس بالحجارة من كان بيته من زجاج"quotes[3] = "اللهم علمني ما نسيت و ذكرني بما جهلت"quotes[4] = "إن الله و ملائكته يصلون على النبي يا أيها اللذين آمنوا صلوا و سلموا عليه تسليما"quotes[5] = "إنما الأعمال بالنيات "quotes[6] = "اهلا بكم في صفحتي"quotes[7] = "خير الامور أوسطها"quotes[8] = "لتكن كبيرة أو صغيرة فهي بلادي و ليكن بعيد أو قريب فهو ابن بلدي - مثل صيني"quotes[9] = "لا إله إلا الله"quotes[0] = "بلادي و إن جارت علي عزيزة"var quote = quotes[rand1]document.write(quote);// End -->




7- عبارة ترحيب جميلــــــــة جدا في شريط المعلومات.

كود:

<script language="JavaScript"><!--var currentmsg = 0var MsgTime = 1000var MsgEndTime = 4000function initArray(n) {this.length = n;for (var i =1; i <= n; i++) {this[i] = ' '}}msg = new initArray(4)msg[0]="اهلا وسهلا بكم"msg[1]="الدبدوب الصغير يرحب بكم"msg[2]="ويتمنى قضاء وقت ممتع"msg[3]="الرجاء ابداء الملاحظات على الإيميل"msg[4]="alasiiry@hotmail.com"function msgrotator() {window.status = msg[currentmsg]if (currentmsg > msg.length - 1) {currentmsg = 0setTimeout("msgrotator()", MsgEndTime)}else {currentmsg = currentmsg + 1setTimeout("msgrotator()", MsgTime)}}msgrotator();//-->http://amory.8m.com</script>




[COLOR=blue]8- كود لوضع عداد لزوار موقعك..[/COLOR]

طريقة التركيب: ضع الكود بمنطقة بالمكان الذي تريد ظهور العداد فيه .... غير ttm.netfirms.com وحط بدالها عنوان موقعك
كود:

<img src="http://cgibin.erols.com/cgi-bin/Coun...f=ttm.netfirms &ft=6&tr=N&dd=B&md=8">




[COLOR=blue]9- كود عبارة عن ساعة وتاريخ على شريط المعلومات..[/COLOR]
كود:

<html><head><title>Date and Time in Status Bar</title><script language="JavaScript"><!-- Hide this script from old browsers --var timerID = null;var timerRunning = false;// Called by both onLoad in BODY tag, and Resume button.function startclock () {// Make sure the clock is stoppedstopclock();time();}// Kills clock.function stopclock (){if(timerRunning)clearTimeout(timerID);timerRunn ing = false;}function time (){var now = new Date();var yr = now.getYear();var mName = now.getMonth() + 1;var dName = now.getDay() + 1;var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."var hours = now.getHours();hours = ((hours > 12) ? hours - 12 : hours);var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();if(dName==1) Day = "الاحد";if(dName==2) Day = "الاثنين";if(dName==3) Day = "الثلاثاء";if(dName==4) Day = "الاربعاء";if(dName==5) Day = "الخميس";if(dName==6) Day = "الجمعة";if(dName==7) Day = "السبت";if(mName==1) Month="January";if(mName==2) Month="February";if(mName==3) Month="March";if(mName==4) Month="April";if(mName==5) Month="May";if(mName==6) Month="June";if(mName==7) Month="July";if(mName==8) Month="August";if(mName==9) Month="September";if(mName==10) Month="October";if(mName==11) Month="November";if(mName==12) Month="December";// String to display current date.var DayDateTime=(" "+ Day+ " "+ Month+ " "+ dayNr+ ", "+ ""+ yr+ " "+ hours+ minutes+ seconds+ " "+ ampm);// Displays Day-Date-Time on the staus bar.window.status=DayDateTime;timerID = setTimeout("time()",1000);timerRunning = true;}// Stops clock and clears status bar.function clearStatus(){if(timerRunning)clearTimeout(timerID );timerRunning = false;window.status=" "; }// -- End Hiding Here --></script></head><BODY onLoad="startclock ()" bgcolor="#FFFFFF"></body></html>




[COLOR=blue]10- كود عبارة عن جمل تظهر من الأسفل للأعلى..[/COLOR]

كود:

<br><center><marquee direction="up" width="550" height="200" style="TAHOMA: 150%; font-size: 14pt; color: white; border-style: ridge; border-color: #0066FF" bgcolor="#000000" scrolldelay="100" scrollamount="3"><center> <br>السلام عليكم ورحمة الله وبركاته .. كيف حالكم ؟؟ هذي هي الطريقة الأولى وهي من تحت لفوق ...<br></marquee><br>




[COLOR=blue]11- كود عبارة عن جمل تظهر من العلى للأسفل..[/COLOR]

كود:

<br><center><marquee direction="down" width="550" height="200" style="TAHOMA: 150%; font-size: 14pt; color: white; border-style: ridge; border-color: #0066FF" bgcolor="#000000" scrolldelay="100" scrollamount="3"><center> <br>السلام عليكم ورحمة الله وبركاته .. كيف حالكم ؟؟ هذي هي الطريقة الثانية وهي من فوق لتحت ...<br></marquee><br>




[COLOR=blue]12- كود لإدراج محرك البحث قوقل في موقعك..[/COLOR]

كود:

<center><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; TEXT-DECORATION: none" href="<A href="http://www.google.com/"><img">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: #800000; border: 1 solid #000000"><input type="submit" value="ابحث" name="btnG" style="color: #FFFFFF; font-family: Tahoma; background-color: #333300; border: 1 solid #000000"></td></tr></tbody></table></form></center><!-- Search Google -->




[COLOR=blue]13- كود لإظهار عبارة مشعة وجميلة..[/COLOR]

كود:

<p><span id="theText" style="width:100%"> </p><p align="center"><font color="#FFF9F2" size="5"face="Monotype Koufi"><strong>جافا الفنان</strong></font><font color="#FFF9F2" size="4"face="Tahoma"><strong> </strong></font><font color="#FFF9F2"size="6"><strong> </span><script language="JavaScript"><!--//range of glowingvar from = 3;var to = 7;//speed of pulsingvar delay = 85;//color of glow, name or RGB value (example:'#')var glowColor = "#FFBC6A";//NO MORE EDITING!!!var i = to;var j = 0;//can be called here or whenever you want the text to start pulsingtextPulseDown();function textPulseUp(){if (!document.all)returnif (i < to){theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";i++;theTimeout = setTimeout('textPulseUp()',delay);return 0;}if (i = to){theTimeout = setTimeout('textPulseDown()',delay);return 0;}}function textPulseDown(){if (!document.all)returnif (i > from){theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";i--;theTimeout = setTimeout('textPulseDown()',delay);return 0;}if (i = from){theTimeout = setTimeout('textPulseUp()',delay);return 0;}}// --></script> </strong></font></p>




[COLOR=blue]14- كود عبارة عن نقاط ملونة على شكل تاج تتبع الماوس..[/COLOR]<!--الصق في body -->


كود:

<script language="JavaScript"><!-- Pretty by [email]kurt.grigg@virgin.net[/email]//حدد الألوان هنا!!CoLoUrS=new Array('00ff00','ff00ff','fff000','3366ff ');var step=0.3,a_StEp=0.05,RunTime=0,currStep= 0,Xpos=0,Ypos=0,cntr=70,count_a=0;var count=0,move=1,Ay=0,Ax=0,dots=16;var x;brwsr=(document.layers)?1:0;if (brwsr){for (i=0; i < dots; i++){document.write('<LAYER NAME="a'+i+'" LEFT=0 TOP=0 BGCOLOR=#3366ff CLIP="0,0,3,3"></LAYER>');}window.captureEvents(Event.MOUSEMOVE);function nsMouse(evnt){Xpos = window.pageYOffset+evnt.pageX;Ypos = window.pageYOffset+evnt.pageY;}}else{document.writ e('<div style="position:absolute;top:0px;left:0p x"><div style="position:relative">');for (i=0; i < dots; i++){document.write('<div id="ieDivs" style="position:absolute;top:0px;left:0p x;width:3px;height:3px;background:#3366f f;font-size:3px"></div>');}document.write('</div></div>');function ieMouse(){Ypos=document.body.scrollTop+event.y;Xpo s=document.body.scrollLeft+event.x;}}function MouseFollow(){if (brwsr){window.onMouseMove = nsMouse}else {window.document.onmousemove = ieMouse}ay = Math.round(Ay += ((Ypos) - Ay) * 4/40);ax = Math.round(Ax += ((Xpos) - Ax) * 4/40);setTimeout('MouseFollow()',10);}function colourStep(){count+=move;if (count >= dots) {count=0;count_a+=move}if (count_a == CoLoUrS.length) count_a=0;if (brwsr) document.layers["a"+count].bgColor=CoLoUrS[count_a];else ieDivs[count].style.background=CoLoUrS[count_a];setTimeout('colourStep()',10)}function TwistnSpin(){if (brwsr){for (i = 0; i < dots; i++) {var templayer="a"+idocument.layers[templayer].top=ay+cntr*Math.cos((currStep+i*4)/10.2)*Math.cos(currStep/30)document.layers[templayer].left=ax+cntr*Math.sin((currStep+i*4)/10.2);}}else{for (i=0;i < dots;i++){ ieDivs[i].style.top=ay+cntr*Math.cos((currStep+i* 4)/10.2)*Math.cos(currStep/10);ieDivs[i].style.left=ax+cntr*Math.sin((currStep+i *4)/10.2);}}currStep-=step;setTimeout("TwistnSpin()",10);}function Shrink(){cntr-=0.5;GoShrink=setTimeout('Shrink()',10);if (cntr <=20){clearTimeout(GoShrink);Swell()}}function Swell(){cntr+=0.5;GoSwell=setTimeout('Swell()',10) ;if (cntr >=70){clearTimeout(GoSwell);Shrink()} }function CombineNstart(){MouseFollow();Shrink();TwistnSpin( );colo urStep();}window.onload=CombineNstart;// End Pretty --></script>



[COLOR=red]ملحوظــــــــــــــــــــــة:[/COLOR]
[COLOR=red]عندما يقال لك ضع الكود في HEAD أو BODY أقصد بذلك كتابة التالي:[/COLOR]
[COLOR=red]........................................ ..................[/COLOR]
[COLOR=red]<head>[/COLOR]
[COLOR=red]ضع الكود هنا فقط[/COLOR]
[COLOR=red]<head\>[/COLOR]
[COLOR=red]........................................ ...................[/COLOR]
[COLOR=red]<body>[/COLOR]
[COLOR=red]ضع الكود هنا فقط[/COLOR]
[COLOR=red]<body\>[/COLOR]
[COLOR=red]........................................ ..................[/COLOR]
[COLOR=red]أما اذا لم أحدد فضعه فقط في HEAD .[/COLOR]
[COLOR=red]<head>[/COLOR]
[COLOR=red]ضع الكود هنا اذا لم أحدد[/COLOR]
[COLOR=red]<head\>[/COLOR]


[COLOR=blue]والسلام عليكم ورحمة الله[/COLOR]

غيم الكلام
11-Jan-2007, 12:40 AM
مشكور...لكن ليتك تضيفها على شكل txt :)

D3m-fny
11-Jan-2007, 01:39 AM
تآمر امر اخوي
تفضل في المرفق :)

mzmz
15-Jan-2007, 07:20 PM
مشكور يا باشا