| اكواد جافا و html| انا جربتهم روعة | | |
الإثنين 11 مايو 2015, 02:35 #1 |
|
| - الكود:
-
كود لعمل رسالة في أعلى شريط الصفحة
كود HTML: <CENTER> <script language="JavaScript"><!-- http://44.4t.com var message1 = "http://44.4t.com" var message2 = "al7aar@maktoob.com" var delay = 5000 // Sets the delay between switching messages changer1(); function changer1() { ID = setTimeout("changer2()",delay); document.title = (message1); } function changer2() { ID = setTimeout("changer1()",delay); document.title = (message2); } // end hide // --></script>
</CENTER> كود اخبار الجزيرة
<iframe width=100% height=20 scrolling=no marginwidth=0 marginheight=0 frameborder=0 src="http://www.faisal1.com/News_Grab/jazeera.php"></iframe> كود آخر على شكل افقي <SCRIPT language=JavaScript><!-- var g=new Date(); g=g.getTime()%1000; document.writeln('<iframe width=100% height=100 scrolling=no marginwidth=0 marginheight=0 frameborder=0 اخبار اقتصادية من العربية فلاش <iframe src="http://www.biz4all.biz/tickerAdmin/rssHtmlFiles/arabiaFIN.php" scrolling="no" frameborder="0" width="450" height="50"></iframe> آخر الاخبار من البي بي سي <iframe width=100% height=20 scrolling=no marginwidth=0 marginheight=0 frameborder=0 src="http://faisal1.com/News_Grab/bbc1m.php"></iframe>
أخبار المفكرة الإسلامية جديد
<p align="center"><!--webbot bot="HTMLMarkup" startspan --><p align="center"><!--webbot bot="HTMLMarkup" startspan --><P align="left" class="para"> <iframe id='myframe' src=' http://islammemo.cc/news/bar.asp?bgc...tion_var=right' frameBorder='no' width='100%' height='100%'></iframe> </P>
<!--webbot bot="HTMLMarkup" endspan --> </p> امثال عشوائية
<iframe width=60% height=35 scrolling=no marginwidth=0 marginheight=0 frameborder=0 src="http://faisal1.com/services/wq/wqh.php"></iframe> تقويم ميلادي
BODY> <CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin monthnames = new Array( "يناير", "فبراير", "مارس", "ابريل", "مايو", "يونيو", "يوليو", "اغسطس", "سبتمبر", "اكتوبر", "نوفبر", "ديسمبر"); var linkcount=0; function addlink(month, day, href) { var entry = new Array(3); entry[0] = month; entry[1] = day; entry[2] = href; this[linkcount++] = entry; } Array.prototype.addlink = addlink; linkdays = new Array(); monthdays = new Array(12); monthdays[0]=31; monthdays[1]=28; monthdays[2]=31; monthdays[3]=30; monthdays[4]=31; monthdays[5]=30; monthdays[6]=31; monthdays[7]=31; monthdays[8]=30; monthdays[9]=31; monthdays[10]=30; monthdays[11]=31; todayDate=new Date(); thisday=todayDate.getDay(); thismonth=todayDate.getMonth(); thisdate=todayDate.getDate(); thisyear=todayDate.getYear(); thisyear = thisyear % 100; thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear)); if (((thisyear % 4 == 0) && !(thisyear % 100 == 0)) ||(thisyear % 400 == 0)) monthdays[1]++; startspaces=thisdate; while (startspaces > 7) startspaces-=7; startspaces = thisday - startspaces + 1; if (startspaces < 0) startspaces+=7; document.write("<table border=2 bgcolor=white "); document.write("bordercolor=black><font color=black>"); document.write("<tr><td colspan=7><center><strong>" + monthnames[thismonth] + " " + thisyear + "</strong></center></font></td></tr>"); document.write("<tr>"); document.write("<td align=center>الاحد</td>"); document.write("<td align=center>الاثنين</td>"); document.write("<td align=center>الثلاثاء</td>"); document.write("<td align=center>الاربعاء</td>"); document.write("<td align=center>الخميس</td>"); document.write("<td align=center>الجمعة</td>"); document.write("<td align=center>السبت</td>"); document.write("</tr>"); document.write("<tr>"); for (s=0;s<startspaces;s++) { document.write("<td> </td>"); } count=1; while (count <= monthdays[thismonth]) { for (b = startspaces;b<7;b++) { linktrue=false; document.write("<td>"); for (c=0;c<linkdays.length;c++) { if (linkdays[c] != null) { if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) { document.write("<a href=\"" + linkdays[c][2] + "\">"); linktrue=true; } } } if (count==thisdate) { document.write("<font color='FF0000'><strong>"); } if (count <= monthdays[thismonth]) { document.write(count); } else { document.write(" "); } if (count==thisdate) { document.write("</strong></font>"); } if (linktrue) document.write("</a>"); document.write("</td>"); count++; } document.write("</tr>"); document.write("<tr>"); startspaces=0; } document.write("</table></p>"); // End --> </SCRIPT> </CENTER> آلة حاسبة
<script> function compute(obj) {obj.expr.value = eval(obj.expr.value)} var one = '1' var two = '2' var three = '3' var four = '4' var five = '5' var six = '6' var seven = '7' var eight = '8' var nine = '9' var zero = '0' var plus = '+' var minus = '-' var multiply = '*' var divide = '/' var decimal = '.' function enter(obj, string) {obj.expr.value += string} function clear(obj) {obj.expr.value = ''} </script>
<p align="center"><font color="#000000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong></strong></font><strong> </strong></p>
<form name="calc"> <div align="center"><center><table border="1" bgcolor="#FFEAFF"> <tr> <td colspan="4"><input type="text" size="30" name="expr" action="compute(this.form)"> </td> </tr> <tr> <td><p align="center"><input type="button" value=" 7 " onclick="enter(this.form, seven)"> </p> </td> <td><p align="center"><input type="button" value=" 8 " onclick="enter(this.form, eight)"> </p> </td> <td><p align="center"><input type="button" value=" 9 " onclick="enter(this.form, nine)"> </p> </td> <td><p align="center"><input type="button" value=" / " onclick="enter(this.form, divide)"> </p> </td> </tr> <tr> <td><p align="center"><input type="button" value=" 4 " onclick="enter(this.form, four)"> </p> </td> <td><p align="center"><input type="button" value=" 5 " onclick="enter(this.form, five)"> </p> </td> <td><p align="center"><input type="button" value=" 6 " onclick="enter(this.form, six)"> </p> </td> <td><p align="center"><input type="button" value=" * " onclick="enter(this.form, multiply)"> </p> </td> </tr> <tr> <td><p align="center"><input type="button" value=" 1 " onclick="enter(this.form, one)"> </p> </td> <td><p align="center"><input type="button" value=" 2 " onclick="enter(this.form, two)"> </p> </td> <td><p align="center"><input type="button" value=" 3 " onclick="enter(this.form, three)"> </p> </td> <td><p align="center"><input type="button" value=" - " onclick="enter(this.form, minus)"> </p> </td> </tr> <tr> <td colspan="2"><p align="center"><input type="button" value=" 0 " onclick="enter(this.form, zero)"> </p> </td> <td><p align="center"><input type="button" value=" . " onclick="enter(this.form, decimal)"> </p> </td> <td><p align="center"><input type="button" value=" + " onclick="enter(this.form, plus)"> </p> </td> </tr> <tr> <td colspan="2"><p align="center"><input type="button" value=" = " onclick="compute(this.form)"> </p> </td> <td colspan="2"><p align="center"><input type="reset" value="AC" onclick="clear(this.form)"> </p> </td> </tr> </table> </center></div> </form>
<p align="center"> </p>
<p align="center"><a <p align="center"> </p>
<p> </p> </body> </html> رابط مشع كود HTML: <p align="left"><script language="JavaScript"> <!-- Begin function initArray() { for (var i =0; i < initArray.arguments.length; i++) { this[i] = initArray.arguments[i]; } this.length = initArray.arguments.length; } var colors = new initArray( "green", "purple", "blue", "red", "black", "white", "blue", "yellow", "green", "fuschia", "blue", "purple", "green", "purple"); delay = .5; // seconds link = 0; vlink = 2; function linkDance() { link = ( link+3)%colors.length; vlink = (vlink+1)%colors.length; document.linkColor = colors[link]; document. vlinkColor = colors[vlink]; setTimeout("linkDance()",delay*1000); } linkDance(); // End --> </script></p> <p align="center"><a href="http://faisal1.com"><font size="6" face="Monotype Koufi">موقع فيصل </font></a></p> <p align="center"><font size="6" face="Monotype Koufi"></font> </p> رسالة تظهر للزائر عند الدخول
<SCRIPT LANGUAGE="JavaScript"> <!-- window.alert("مرحبا بكم اتمنى ان ينال رضاكم موقعى بس لاتنسون الترشيح")
// --> </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> منع الزر الايمن للماوس
كود HTML: <script language="JavaScript"><!-- function click() { if (event.button==2) { alert('لاداعى للزر اليمين '); } } document.onmousedown=click // --> // --></script><!-- http://kok.8k.COM--> ساعة رقمية صغيرة
كود HTML: <SCRIPT LANGUAGE="JavaScript"> var timerID = null var timerRunning = false
function stopclock() { if(timerRunning) clearTimeout(timerID) timerRunning = false }
function startclock() { stopclock() showtime() }
function showtime() { var now = new Date() var hours = now.getHours() var minutes = now.getMinutes() var seconds = now.getSeconds() var timeValue = "" + ((hours > 12) ? hours - 12 : hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 12) ? "PM" : "AM" document.clock.face.value = timeValue timerID = setTimeout("showtime()",1000) timerRunning = true } //--> </SCRIPT>
<form name="clock" onSubmit="0"> <INPUT TYPE="text" NAME="face" SIZE=11 READONLY VALUE ="....Initializing...."> </form>
<SCRIPT LANGUAGE="JavaScript"> <!-- startclock() //--> </SCRIPT> التسجيل في المفضلة
كود HTML: <a href="javascript:window.external.AddFavorite('http://سجل هنا عنوان موقعك/',%20'((( سجل هنا اسم موقعك بالعربى)))')"> سجل في مفضلتك </a> لوضع صفحة داخل صفحتك كود HTML: <IFRAME WIDTH=100% HEIGHT=300 SRC="http://هنا ضع عنوان الصفحة"></IFRAME>
كود لعمل تحية حسب الوقت <script LANGUAGE="JavaScript"> <!-- currentTime = new Date(); if (currentTime.getHours() < 12) document.write("صباح الرقة والاحساس "); else if (currentTime.getHours() < 17) document.write(" وقت الغداء .. تغديت أو بعدك "); else document.write("مساء الخير والاحساس والطيبة "); //--> </script> كود غليظكود لعمل رابط يفتح بمجرد مرور مؤشر الفأره عليه كود HTML: <a href="" onmouseover="parent.location='http://faisal1.com'">ممنوع اللمس .. لا تقترب </A>
كود خاص في تلوين شريط التمرير في صفحتك.. ويمكن التحكم بالالوان كما تريد
<STYLE>BODY { SCROLLBAR-FACE-COLOR: #808080; SCROLLBAR-HIGHLIGHT-COLOR: #eabc5a; SCROLLBAR-SHADOW-COLOR: #eabc5a; SCROLLBAR-3DLIGHT-COLOR: #FFFFFF; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #c0c0c0; SCROLLBAR-DARKSHADOW-COLOR: #eabc5a } </STYLE> كود تحديث للصفحة دائم
كود HTML: <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()">
كود اظهار درجة وضوح الشاشة للزائر
كود HTML: <SCRIPT LANGUAGE="Javascript"><!-- if (self.screen) { // for NN4 and IE4 width = screen.width height = screen.height // Testing this first prevents firing the slow Java of NN4 } else if (self.java) { // for NN3 with enabled Java var jkit = java.awt.Toolkit.getDefaultToolkit(); var scrsize = jkit.getScreenSize(); width = scrsize.width; height = scrsize.height; } else{ width = height = '?' // N2, E3, N3 w/Java off, probably Opera and WebTV
} document.write("درجة وضوح الشاشة لديك:"); document.write(width +"×"+ height) //or whatever based on the above results
//--></SCRIPT>
| |
| اكواد جافا و html| انا جربتهم روعة | |
|