جافا ـ منوعات
طلب ترشيح
<script language="JavaScript"> <!-- The JavaScript Source!! function vote () { vote4uaezayed=window.open("<font color="red">http://arank.com/cgi-bin/rank/rankem.cgi?id=ibra2002</font>"); } function cancel () {} if (confirm("رشحني لأفضل 100 موقع عربي")) { vote(); } else cancel() // --></script>
منع النوافذ الدعائيه من الظهور
<!-- Start code //--> <Script Language='Javascript'> <!-- eval(unescape('%66%75%6E%63%74%69%6F%6E%20%6F%70%65%6E%20%28%29%20%7B%72%65%74%75%72%6E%20%74%72%75%65%3B%7D')); //--> </Script>
لفتح نافذة صغيرة
<!-- TWO STEPS TO INSTALL WINDOW POSITION: 1. Paste the first code in the HEAD of your HTML document 2. Add the last coding to the BODY of your HTML document --> <!-- STEP ONE: Paste the first code in the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function win() { msg=window.open("","msg","height=200,width=200,left=80,top=80"); msg.document.write("<html><title>Windows!</title>"); msg.document.write("<body bgcolor='white' onblur=window.close()>"); msg.document.write("<center>page content here</center>"); msg.document.write("</body></html><p>"); // If you just want to open an existing HTML page in the // new window, you can replace win()'s coding above with: // window.open("page.html","","height=200,width=200,left=80,top=80"); } // End --> </script> <!-- STEP TWO: Add the last coding to the BODY of your HTML document --> <BODY> <body bgcolor="white"> <center> <form> <input type="button" value="Open Window" onclick="win()"> </form> </center>
ظهور حروف في مربعات صغيره
<!-- ONE STEP TO INSTALL VERTICAL BOXES: 1. Add the first code to the BODY of your HTML document --> <!-- STEP ONE: Add the first code to the BODY of your HTML document --> <BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin msg ="Hello, Look @ my vertical scroller!"; align="center"; speed=250; up=true; spas=" "; for (a=0;a<=12;a++) {spas+=" "} msg=spas+msg+spas; j=eval(-1); stop=msg.length; document.write("<form name='form'><table border=0 cellspacing=0 " +"cellpadding=0 align="+align+">"); for (i=1;i<=13;i++) { document.write("<tr><td><input type=text name=\"box"+i+"\" size=1>"); document.write("</td></tr>"); } document.write("</table></form>"); function scrollIt() { j++; with (document.form) { if ((j+12) <= stop) { box1.value = msg.charAt(j); box2.value = msg.charAt(j+1); box3.value = msg.charAt(j+2); box4.value = msg.charAt(j+3); box5.value = msg.charAt(j+4); box6.value = msg.charAt(j+5); box7.value = msg.charAt(j+6); box8.value = msg.charAt(j+7); box9.value = msg.charAt(j+8); box10.value = msg.charAt(j+9); box11.value = msg.charAt(j+10); box12.value = msg.charAt(j+11); box13.value = msg.charAt(j+12); } else { j=0; } } setTimeout("scrollIt()",speed); } scrollIt(); // End --> </SCRIPT>
اضف الى المفضله
<!-- add the following between the <head> tags of your web page - customize it to your site --> <script language="JavaScript1.2"> var url="http://www.sahran.4mg.com/" var title="سهران" function favorites(){ if (document.all) window.external.AddFavorite(url,title) } </script> <!-- paste the following into the Body of your web page where you want the link to appear. visible to ie4+ users only --> <script> if (document.all) document.write('<A HREF="javascript:favorites()">اضف الموقع الى المفضلة لديك</A>') </script>
محرك بحث
<script language="JavaScript"><!-- // START HIDE var MAX_ENGINES = 35; var tp=''; var tpp=''; var find = 'hunt'; var hold=0; var hold2=0; var gog=0; var ap=''; function MakeArray(n) { for (var i = 1; i <= n; i++) { this[i] = 0; } this.maxlen = n; this.len = 0; return this; } var engs = new MakeArray(MAX_ENGINES); function find_substring(needle, haystack) { var i, needlen = needle.length, haylen = haystack.length; for (i=0; i<=haylen-needlen; i++) { if (needle == haystack.substring(i,i+needlen)) return i; } return false; } function Engine(name, opts, home, search) { var gotcha = find_substring(find, search); this.name = name; this.opts = opts; this.home = home; this.pre_gotcha = search.substring(0,gotcha); this.post_gotcha= search.substring(gotcha+find.length, search.length); } function Add(name, opts, home, search) { engs.len++; if (engs.len <= engs.maxlen) { engs[engs.len] = new Engine(name, opts, home, search) } else { alert ('Better increase MAX_ENGINES: ' + engs.Len + '>' + engs.maxlen) } } function DisplayForm() { document.writeln('<FORM Name=Gotchaform OnSubmit="HandleForm(this); return false">'); document.writeln('<strong></strong> <INPUT size=15 name="query">'); document.writeln('<strong></strong> <SELECT name="service">'); for (i=1; i <= engs.len; i++) { document.writeln("<OPTION " + engs[i].opts + "> " + engs[i].name); } document.writeln('</SELECT> <input type=submit value="Search"><br>'); document.writeln('</FORM>'); document.Gotchaform.query.focus() } function HandleForm(form){ var i, newq="", oldq=form.query.value; for (i=0; i<oldq.length; i++) { // compress [ ]+ into \+ var thischar = oldq.charAt(i); if (thischar =="+")newq += "%2B"; else if (thischar != ' ') newq += thischar; else if (lastchar != ' ') newq += '+'; lastchar = thischar; } var eng = engs[1+form.service.selectedIndex]; // Window search=window.open(newq ? eng.pre_gotcha + newq + eng.post_gotcha : eng.home,"SmartSearch","scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,resizable=yes,width='100%',hight='100%'"); } Add("Alta Vista","SELECTED","http://altavista.digital.com/","http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=d&q=hunt"); Add("Yahoo!","","http://www.yahoo.com/","http://search.yahoo.com/bin/search?p=hunt" ); Add("DejaNews","","http://www.dejanews.com/","http://search.dejanews.com/nph-dnquery.xp?query=hunt&defaultOp=AND&svcclass=dncurrent&maxhits=25"); Add("HotBot","","http://www.search.hotbot.com","http://www.search.hotbot.com/search.html?MT=hunt&DC=25"); Add("Infoseek","","http://www.infoseek.com/Home?pg=Home.html&sv=A2","http://www.infoseek.com/Titles?qt=hunt&col=WW&sv=A2"); Add("Excite","","http://www.excite.com/","http://www.excite.com/search.gw?searchType=Concept&search=hunt&category=default"); Add("Lycos","","http://www.lycos.com/","http://www.lycos.com/cgi-bin/pursuit?query=hunt&backlink=639"); Add("Magellan","","http://www.mckinley.com/","http://www.mckinley.com/extsearch.cgi?query=hunt"); Add("OpenText","","http://search.opentext.com","http://search.opentext.com/omw/simplesearch?SearchFor=hunt&mode=and"); Add("WebCrawler","","http://webcrawler.com/","http://webcrawler.com/cgi-bin/WebQuery?searchText=hunt&maxHits=25"); // Software Add("ZDNet Files","","http://www.zdnet.com/","http://www6.zdnet.com/cgi-bin/texis/swlib/hotfiles/search.html?Usrt=rel&Usrchtype=simple&Utext=hunt"); Add("Filez","","http://www.filez.com/","http://filez.com/cgi/filez.cgi?query=hunt&type=All+Files&hits=50&domain=World&doit=Search/"); Add("Shareware.com","","http://www.shareware.com/","http://search.shareware.com/code/engine/Find?logop=and&cfrom=quick&orfile=True&hits=25&search=hunt&category=All-Categories"); Add("PC Gamer","","http://www.pcgame.com/","http://www.pcgame.com/finder/search.cgi?key=hunt"); // Denmark DisplayForm(); // STOP HIDE // --></script>
موقع في موقع آخر
<IFRAME WIDTH=100% HEIGHT=300 SRC="http://www.sahran.4mg.com"></IFRAME>
تحديث الصفحة
<INPUT name=lukk onclick=javascript:location.reload() style="BACKGROUND-COLOR: #ffffc6; FONT-FAMILY: Tahoma; FONT-SIZE: x-small; FONT-WEIGHT: normal" type=button value=" حدث الصفحه">
<SCRIPT language=JavaScript> function vote () { vote4alnadeem=window.open("عنوان وصلة الترشيح "); } function cancel () {} if (confirm("جمله ترشيح حسب ذوقك ")) { vote(); } else cancel() // --></SCRIPT>
لجعل الصفحة صفحة البدء
<A HREF="http://www.sahran.4mg.com/" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.sahran.4mg.com/');" STYLE="color: blue; cursor: hand;">اجعل موقع سهران صفحة البداية</A>
لضبط الهوامش
<!-- paste the following between the HEAD tags in your web page --> <STYLE TYPE="text/css"> <!-- .just {text-align: justify;} --> </STYLE> <!-- paste the following within the BODY of your web page around the text you want to justify --> <p class="just">all your text here</p>