أبوغدير
عدد الرسائل : 40 تاريخ التسجيل : 27/07/2008
| موضوع: أكواد أو هاكات للمنتديات و المواقع الأربعاء أغسطس 06, 2008 2:37 am | |
| السلام عليكم هذه أول مشاركه لى فى هذا القسم و حبيت أقدم لكم شئ مفيد و هو أكواد أو هاكات للمنتديات و المواقع نبداً لوضع الساعه فى صفحتك كود: - الكود:
-
<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> لوضع التقويم فى صفحتك - الكود:
-
كود: <SCRIPT LANGUAGE="JavaScript">
<!-- function montharr(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11) { this[0] = m0; this[1] = m1; this[2] = m2; this[3] = m3; this[4] = m4; this[5] = m5; this[6] = m6; this[7] = m7; this[8] = m8; this[9] = m9; this[10] = m10; this[11] = m11; }
function calendar() { var monthNames = "JanFebMarAprMayJunJulAugSepOctNovDec"; var today = new Date(); var thisDay; var monthDays = new montharr(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); year = today.getYear(); if (year <= 200) year += 1900; thisDay = today.getDate();
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) monthDays[1] = 29;
nDays = monthDays[today.getMonth()];
firstDay = today; firstDay.setDate(1); // works fine for most systems testMe = firstDay.getDate(); if (testMe == 2) firstDay.setDate(0);
startDay = firstDay.getDay(); document.writeln("<CENTER>"); document.write("<TABLE BORDER='1' BGCOLOR=White>"); document.write("<TR><TH COLSPAN=7>"); document.write(monthNames.substring(today.getMonth() * 3, (today.getMonth() + 1) * 3)); document.write(". "); document.write(year); document.write("<TR><TH>Sun<TH>Mon<TH>Tue<TH>Wed<TH>Thu<TH>Fri<TH>Sat");
document.write("<TR>"); column = 0; for (i=0; i<startDay; i++) { document.write("<TD>"); column++; }
for (i=1; i<=nDays; i++) { document.write("<TD>"); if (i == thisDay) document.write("<FONT COLOR=\"#FF0000\">") document.write(i); if (i == thisDay) document.write("</FONT>") column++; if (column == 7) { document.write("<TR>"); column = 0; } } document.write("</TABLE>"); document.writeln("</CENTER>"); }
calendar(); // --> </SCRIPT> للإضافه موقعك للمفضله - الكود:
-
كود: <a HREF="javascript:window.external.AddFavorite('http://layla83.tripod.com',%20'%20[%20LAYLA83%20]%20')"><font face="tahoma" size="2"><strong>أضف للمفضلة</strong></font></a> لجعل موقعك صفحة البدايه - الكود:
-
كود: <A class=normal href="http:///" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://layla83.tripod.com');"><font face="tahoma" size=2><STRONG>اجعلني صفحة البداية</STRONG></FO T></A></P> وضع صفحة بريد هوت ميل فى صفحتك - الكود:
-
كود: <br> <IFRAME WIDTH=100% HEIGHT=200 SRC="http://www.hotmail.com/"></IFRAME><br> <br> تعليق على شريط المهام - الكود:
-
كود: <A HREF="" TARGET="_New" onMouseOver="window.status='لتحميل برامجك المفضلة';return true" onMouseOut="window.status='';return true"><font face="tahoma" size="2">صفحة البرامج</A> لإضافه بعض التأثيرات على الفاره - الكود:
-
كود: <!-- TWO STEPS TO INSTALL MOUSE ORBIT:
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>
<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,2,2"></LAYER> <LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,2,2"></LAYER> <LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,2,2"></LAYER> <LAYER NAME="a10" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,2,2"></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,3,3"></LAYER> <div id="starsDiv" style="position:absolute;top:0px;left:0px"> <div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></div> <div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"></div> <div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"></div> <div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"></div> <div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"></div> <div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"></div> <div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible"></div> <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:#fff000;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:#ff00ff;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:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible"></div> </div> </HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Kurt Grigg (kurt.grigg@virgin.net) --> <!-- Web Site: http://freespace.virgin.net/kurt.grigg -->
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin var Clrs = new Array(6); Clrs[0] = 'ff0000'; Clrs[1] = '00ff00'; Clrs[2] = '000aff'; Clrs[3] = 'ff00ff'; Clrs[4] = 'fff000'; Clrs[5] = 'fffff0'; var yBase = 200; var xBase = 200; var step; var currStep = 0; var Xpos = 1; var Ypos = 1; var Xs = 200; var Ys = 400; if (document.layers) { window.captureEvents(Event.MOUSEMOVE); } 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 Comet() { 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++ ) { step = 3; starsDiv.all[i].style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200); starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400); for (ai = 0; ai < Clrs.length; ai++) { var c=Math.round(Math.random()*[ai]); } starsDiv.all[i].style.background = Clrs[c]; } } else if (document.layers) { for ( j = 0 ; j < 14 ; j++ ) { //number of NS layers! step = 6; var templayer = "a"+j; document.layers[templayer].top = Ypos + yBase*Math.cos((currStep + j*4)/12)*Math.cos(0.7+currStep/200); document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400); for (aj=0; aj < Clrs.length; aj++) { var c=Math.round(Math.random()*[aj]); } document.layers[templayer].bgColor = Clrs[c]; } } currStep += step; setTimeout("Comet()", 5); } Comet(); // End --> </script> لتحديث صفحتك - الكود:
-
كود: <input type="Button" name="lukk" value=" تحديث الصفحة " style="font-size: x-small; font-family: Tahoma; font-weight: normal; color: BLAC; background-color: #FFFFFF;" onClick="javascript:location.reload()"> لعمل خلفيه عند الضغط على الموقع - الكود:
-
كود: <!-- TWO STEPS TO INSTALL HOVER COLORS:
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"> <!-- Web Site: http://layla83.tripod.com -->
<!-- Begin function doColor(item, color, bg) { item.style.color = color; // changes text color item.style.backgroundColor = bg; // changes background }
function undoColor(item) { item.style.color = "#000000"; // sets color back to black item.style.backgroundColor = ""; // sets background to default } // End --> </script> </HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<!-- With each link, be sure to use the doColor and --> <!-- undoColor() functions. In the doColor() part, --> <!-- link1 is the name you gave to the link initially, --> <!-- a name="link1" and 'yellow' is the hover text --> <!-- text color, and 'black' is the hover background. -->
<BODY>
<a name="link1" href="http://layla83.tripod.com/" onmouseover="doColor(link1, 'yellow','black');" onmouseout="undoColor(link1);">LAYLA83 WEB SITE</a> <p> <a name="link2" href="http://layla83.tripod.com\layla8.html/" onmouseover="doColor(link2, 'blue','red');" onmouseout="undoColor(link2);">FAVORITE LINKS</a> لوضع محرك بحث خاص بموقعك - الكود:
-
كود: <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Dion (biab@iinet.net.au) --> <!-- Web Site: http://www.iinet.net.au/~biab -->
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin var item = new Array();
/* Here is where all the magic happens. Just enter as many additional pages that that you want to search, then fill in the additional listings for each page. */
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site."); c++; item[c]=new Array("about.htm","","About Me","about,author,contact,email,who","Contact details and general information about the creator of the site and what the site is about."); c++; item[c]=new Array("links.htm","","Links page","links,more,where,similar,friends","Links to my favourite sites which I find interesting. Other friends sites which have similar interests to my own."); c++; item[c]=new Array("main.htm","main/","Main Page","content,main,focus","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory."); c++; item[c]=new Array("logo.jpg","main/images/","Link Logo","link,image,logo,graphic","The logo.jpg is just a small image which you can place on your site as a link to me. It's in a second level subdirectory.");
page="<html><head><title>Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
function search(frm) { win = window.open("","","scrollbars"); win.document.write(page); txt = frm.srchval.value.split(" "); fnd = new Array(); total=0; for (i = 0; i < item.length; i++) { fnd[i] = 0; order = new Array(0, 4, 2, 3); for (j = 0; j < order.length; j++) for (k = 0; k < txt.length; k++) if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "") fnd[i] += (j+1); } for (i = 0; i < fnd.length; i++) { n = 0; w = -1; for (j = 0;j < fnd.length; j++) if (fnd[j] > n) { n = fnd[j]; w = j; }; if (w > -1) total += show(w, win, n); fnd[w] = 0; } win.document.write("</table><br>Total found: "+total+"<br></body></html>"); win.document.close(); } function show(which,wind,num) { link = item[which][1] + item[which][0]; line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>"; line += item[which][4] + "<br>"+link+"</td></tr>"; wind.document.write(line); return 1; } // End --> </script> </HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
<form method=get action="javascript:void(0)" onsubmit="search(this); return false;"> <tr><td><input type=text name=srchval value=""><input type=submit value="Search"></td></tr> </form>
</center> لكتابة أخر تحديث لصفحتك - الكود:
-
كود: <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var days = new Array(8); days[1] = "Sun"; days[2] = "Mon"; days[3] = "Tue"; days[4] = "Wed"; days[5] = "Thu"; days[6] = "Fri"; days[7] = "Sat"; 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 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> لمنع أستخدام زر الفاره الأيمن [code][code] كود: <script language="JavaScript"><!-- function click() { if (event.button==2) { alert('عفوا لن تستطيع'); } } document.onmousedown=click [/code] | |
|