[][CENTER]السلام عليكم كيف الحال اقدم لكم مكتبة الجافا للفائدة
========================================================
طريقة استخدام هذه الاكواد: قم بنسخ الكود المناسب والصقه في محرر الإتش تي إم إل في الفرونت بيج
وبعضها يعمل مع مساعد بناء الصفحات لبعض المواقع (( وهى التى ليس بها head & body ))
-------------------------------------------------------------------------------------------------------
" كود " أضفنا للقائمة المفضلة
" كود " اجعل الموقع افتراضي لمتصفحككود:<SCRIPT language=JavaScript1.2> function bookmarkit(){ window.external.addFavorite('http://ضع عنوان موقعك/','ضع اسم موقعك ') } if (document.all) document.write('<small onClick="bookmarkit()"><font=Tahoma" size=5"><a href="#" class="normal">أضف الموقع للمفضلة</a></font></small>') </SCRIPT>
" كود " اضغط هنا لتحديث الصفحةكود:<A class=normal href="http:///" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://ضع عنوان موقعك هنا');"><FONT color=#0080ff size=2><STRONG> اجعل الموقع افتراضي</STRONG></FONT></A></P>
" كود " اطبع الصفحةكود:<A href="javascript:window.location.reload()"><FONT color=#ff0000><STRONG>اضغط هنا لتحديث الصفحة</STRONG></FONT></A>
"كود" اخبر صديقككود:<SCRIPT language=JavaScript> <!-- Begin if (window.print) { document.write('<form> ' + '<input type=submit value="اطبع الصفحة" name=Print ' + 'onClick="javascript:window.print()"></form>'); } // End // --></SCRIPT>
التركيب: من خطوتين :
1- ضع الكود التالي بمنطقة الـ <head>
الكود:
2- ضع الكود التالي بمنطقة الـ <body>كود:<SCRIPT LANGUAGE="JavaScript"> <!-- Begin //Tell-a-friend script //Carl Dimmer var initialsubj="السلام عليكم، شف هالصفحة تبي تعجبك" var initialmsg="مرحبا:\n ولا يفوتك هالموقع تراه رايق: "+window.location var good; function checkEmailAddress(field) { var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi); if (goodEmail) { good = true; } else { alert('يرجى ادخل بريد الكتروني صحيح'); field.focus(); field.select(); good = false; } } u = window.location; function mailThisUrl() { good = false checkEmailAddress(document.eMailer.email); if (good) { //window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u; window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg } } // End --> </script>
=-=-==-كود:<form name="eMailer"> اخبر صديقك: <input type="text" name="email" size="26" value=" اكتب هنا البريد الالكتروني" onFocus="this.value=''" onMouseOver="window.status='Enter email address here and tell a friend about this site...'; return true" onMouseOut="window.status='';return true"> <br> <input type="button" value="ارسل هذه الصفحة" onMouseOver="window.status='Click to send an email (with this page address) to a friend! Enter email address above...'; return true" onMouseOut="window.status='';return true" onClick="mailThisUrl();"> </form>
تقويم ميلادى
=-=-=-
كود رابط ينقلك مباشرة عند مرور الماوس عليهكود:<table> <td width="55%" align="right" valign="top" colspan="3" bgcolor="#008000"> <p align="center"> <font face="Monotype Koufi" color="#FFFFFF"><!--webbot bot="HTMLMarkup" startspan --> <p align="center"><b> <script> <!-- START HIDE print1=""; print2=""; print3=""; today = new Date(); weekday = today.getDay(); if (weekday == 6) print1='السبت'; if (weekday == 0) print1='الأحد'; if (weekday == 1) print1='الاثنين'; if (weekday == 2) print1='الثلاثاء'; if (weekday == 3) print1='الاربعاء'; if (weekday == 4) print1='الخميس'; if (weekday == 5) print1='الجمعة'; month = today.getMonth(); if (month == 0) print2='يناير'; if (month == 1) print2='فبراير'; if (month == 2) print2='مارس'; if (month == 3) print2='إبريل'; if (month == 4) print2='مايو'; if (month == 5) print2='يونيو'; if (month == 6) print2='يوليو'; if (month == 7) print2='اغسطس'; if (month == 8) print2='سبتمبر'; if (month == 9) print2='اكتوبر'; if (month == 10) print2='نوفمبر'; if (month == 11) print2='ديسمبر'; date = today.getDate(); year=today.getYear(); document.write (print1,',', date, ' ',print2,', ',year); // STOP HIDE --> </script> </font></p> </td> </tr> </body> </html> <!--webbot bot="HTMLMarkup" endspan --> </font> </table>
كود ساعة على شريط المعلوماتكود:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>ضع جملة الرابطة هنا</title> </head> <body> <p align="center"> <a href="" onmouseover="parent.location='http://ضع عنوان الرابطة هنا'"><b><font face="Akhbar MT">ضع جملة الرابطة هنا</font></b></A> </body> </html>
كود لتشغيل ملف صوتي عند دخول الزائركود:<script language="JavaScript"><!-- var timerID = null; var TimerRunning = false; function stop(){ if(TimerRunning) clearTimeout(timerID); TimerRunning = false; } function display() { var thedate = new Date(); var hours = thedate.getHours(); var Min = thedate.getMinutes(); var Sec = thedate.getSeconds(); var TimeV = "" + ((hours >12) ? hours -12 :hours) TimeV += ((Min < 10) ? ":0" : ":") + Min TimeV += ((Sec < 10) ? ":0" : ":") + Sec TimeV += (hours >= 12) ? " P.M." : " A.M." window.status = TimeV; timerID = setTimeout("display()",1000); TimerRunning = true; } function start() { stop(); display(); } start(); // end hide // --></script>
مواصفات الشاشةكود:<center> <object id="RAOCXPlayer" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="50" width="250"> <param name="controls" value="ControlPanel"> <param name="nolabels" value="true"> <param name="autostart" value="true"> <param name="console" value="player1"> <embed TYPE="audio/x-pn-realaudio-plugin" NAME="player1" CONTROLS="ControlPanel" HEIGHT=25 WIDTH=250 NOLABELS=TRUE AUTOSTART=TRUE console="player1"> </object> <object id="RAOCXPlayer2" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="25" width="250"> <param name="controls" value="StatusBar"> <param name="nolabels" value="true"> <param name="autostart" value="true"> <param name="SRC" value="http://www.uaefm.com/abdullah_rwaishid/tesawar.ram"> <param name="console" value="player1"> <embed TYPE="audio/x-pn-realaudio-plugin" NAME="player2" SRC="http://عنوان الملف الصوتي" CONTROLS="StatusBar" HEIGHT=25 WIDTH=250 NOLABELS=TRUE AUTOSTART=TRUE console="player1"> </object> </center> </td> <td align=center width=150>
كود خلفية صورة ثابتة في الصفحة ويوضع الكود في الهيدكود:<td width="100%" align="center"> </td> </tr> <tr> <td width="100%" align="center"> <table border="0"> <tr> <td bgcolor="#0066FF"><form method="POST" name="t"> <table border="0"> <tr> <td valign="top" width="150" bgcolor="#0066FF" align="center"><font face="Tahoma" color="#FFFFFF">عرض شاشتك</font></td> <td><font face="Tahoma"><input type="text" size="20" name="t1" value="not supported"></font></td> </tr> <tr> <td valign="top" width="150" bgcolor="#0066FF" align="center"><font face="Tahoma" color="#FFFFFF">ارتفاع شاشتك</font></td> <td><font face="Tahoma"><input type="text" size="20" name="t2" value="not supported"></font></td> </tr> <tr> <td valign="top" width="150" bgcolor="#0066FF" align="center"><font face="Tahoma" color="#FFFFFF">الوان شاشتك</font></td> <td><font face="Tahoma"><input type="text" size="20" name="t3" value="not supported"></font></td> </tr> <tr> <td valign="top" width="150" bgcolor="#0066FF" align="center"><font face="Tahoma" color="#FFFFFF">عمق شاشتك</font></td> <td><font face="Tahoma"><input type="text" size="20" name="t4" value="not supported"></font></td> </tr> </table> </form> </td> </tr> </table> <p align="left"> <script> <!-- function show(){ if (!document.all&&!document.layers) return document.t.t1.value=screen.width document.t.t2.value=screen.height document.t.t3.value=screen.colorDepth document.t.t4.value=screen.pixelDepth } show() //--> </script>
كود:<STYLE TYPE="text/css"> <!-- BODY {background-image: URL(الصورة.gif); background-position: center; background-repeat: no-repeat; background-attachment: fixed;} --> </STYLE>



