function convertToHex(x) { var high=x/16; var s=high+""; s=s.substring(0,2); high=parseInt(s,10); var left=hx[high+1]; var low=x-high*16; s=low+""; s=s.substring(0,2); low=parseInt(s,10); var right=hx[low+1]; var string=left+""+right; return string; }
function makeRainbow(text) { text=text.substring(3,text.length-4); color_d1=255; mul=color_d1/text.length; for(i=0;i < text.length;i++) { color_d1=255*Math.sin(i/(text.length/3)); "255*Math.sin(i/(text.length/3))" color_h1=convertToHex(color_d1); color_d2=mul*i; color_h2=convertToHex(color_d2); document.write("<FONT COLOR=\"#FF"+color_h1+color_h2+"\">"+text.substring(i,i+1)+"</FONT>"); } } //--> </script> <!--Place this script in the BODY section.--> <!--You may edit these font tags.--> </strong></font><font size="6"><strong><script language="JavaScript"><!-- // You may edit the message below. {makeRainbow("<< مرحبابكم في منتدى التكويد العربي>> ");} // --></script></strong></font></p>
function convertToHex(x) { var high=x/16; var s=high+""; s=s.substring(0,2); high=parseInt(s,10); var left=hx[high+1]; var low=x-high*16; s=low+""; s=s.substring(0,2); low=parseInt(s,10); var right=hx[low+1]; var string=left+""+right; return string; }
/* Boxing-away Script- By Dynamic Drive (http://www.tacwed.com/) For full source code, installation instructions, 100's more free DHTML scripts, and Terms Of Use, visit tacwed.com */
var espeed=300 var counter=1 var temp=new Array() var temp2=new Array()
////////Code for Netscape NS 4+//// if (document.layers){ for (i=1;i<=25;i++){ temp[i]=eval("document.p"+i+".clip") temp2[i]=eval("document.p"+i) temp[i].width=window.innerWidth/5 temp[i].height=window.innerHeight/5 }
for (i=1;i<=5;i++) temp2[i].left=(i-1)*temp[i].width
for (i=6;i<=10;i++){ temp2[i].left=(i-6)*temp[i].width temp2[i].top=temp[i].height }
for (i=11;i<=15;i++){ temp2[i].left=(i-11)*temp[i].width temp2[i].top=2*temp[i].height }
for (i=16;i<=20;i++){ temp2[i].left=(i-16)*temp[i].width temp2[i].top=3*temp[i].height }
for (i=21;i<=25;i++){ temp2[i].left=(i-21)*temp[i].width temp2[i].top=4*temp[i].height }
}
function erasecontainerns(){ window.scrollTo(0,0) var whichcontainer=Math.round(Math.random()*25) if (whichcontainer==0) whichcontainer=1 if (temp2[whichcontainer].visibility!="hide") temp2[whichcontainer].visibility="hide" else{ while (temp2[whichcontainer].visibility=="hide"){ whichcontainer=Math.round(Math.random()*25) if (whichcontainer==0) whichcontainer=1 } temp2[whichcontainer].visibility="hide" }
if (counter==25) clearInterval(beginerase)
counter++ espeed-=10
}
////////End code for NS 4+////////
///////////Code for IE 4+/////////
if (document.all){ var containerwidth=parseInt(document.body.clientWidth/5) var containerheight=parseInt(document.body.offsetHeight/5)
for (i=1;i<=25;i++){ temp[i]=eval("document.all.p"+i+".style") temp[i].width=containerwidth temp[i].height=containerheight }
for (i=1;i<=5;i++) temp[i].left=(i-1)*containerwidth
for (i=6;i<=10;i++){ temp[i].left=(i-6)*containerwidth temp[i].top=containerheight }
for (i=11;i<=15;i++){ temp[i].left=(i-11)*containerwidth temp[i].top=2*containerheight }
for (i=16;i<=20;i++){ temp[i].left=(i-16)*containerwidth temp[i].top=3*containerheight }
for (i=21;i<=25;i++){ temp[i].left=(i-21)*containerwidth temp[i].top=4*containerheight } }
function erasecontainerie(){ var whichcontainer=Math.round(Math.random()*25) if (whichcontainer==0) whichcontainer=1 if (temp[whichcontainer].visibility!="hidden") temp[whichcontainer].visibility="hidden"
else{ while (temp[whichcontainer].visibility=="hidden"){ whichcontainer=Math.round(Math.random()*25) if (whichcontainer==0) whichcontainer=1 } temp[whichcontainer].visibility="hidden" }
if (counter==25){ clearInterval(beginerase) clearInterval(keeptop) } counter++ espeed-=10
}
/////////End IE 4+ code////////
if (document.layers) beginerase=setInterval("erasecontainerns()",espeed) else if (document.all){ beginerase=setInterval("erasecontainerie()",espeed) keeptop=setInterval("window.scrollTo(0.0)",100) }
</script> </body>
</html>
إطار رائع للصفحه
الكود:
<script language="JavaScript1.2"> if (document.all) document.body.style.cssText="border:25 ridge red" </script>
function flashit(){ if (!document.all) return if (myexample.style.borderColor=="green") myexample.style.borderColor="red" else myexample.style.borderColor="blue" } setInterval("flashit()", 500) //--> </script>
/* Document firework script (By Kurt Gregg, kurt.grigg@virgin.net) Modified granted to Dynamic Drive to feature script in archive For full source and 100's more DHTML scripts, visit http://www.tacwed.com/ */
var Clrs=new Array(9) Clrs[0]='ff0000'; Clrs[1]='00ff00'; Clrs[2]='000aff'; Clrs[3]='ff00ff'; Clrs[4]='ffa500'; Clrs[5]='ffff00'; Clrs[6]='00ff00'; Clrs[7]='ffffff'; Clrs[8]='fffff0'; var sClrs=new Array(5) sClrs[0]='ffa500'; sClrs[1]='55ff66'; sClrs[2]='AC9DFC'; sClrs[3]='fff000'; sClrs[4]='fffff0'; var yBase; var xBase; var step; var currStep = 0; var Xpos = 1; var Ypos = 1; var initialStarColor='ffa000'; var Mtop=250; var Mleft=250;
function Fireworks() { if (document.all) { yBase = window.document.body.offsetHeight/3; xBase = window.document.body.offsetWidth/8; } else if (document.layers) { yBase = window.innerHeight/3; xBase = window.innerWidth/8; } if (document.all) { step=5; for ( i = 0 ; i < starsDiv.all.length ; i++ ) { for (ai=0; ai < Clrs.length; ai++) { var c=Math.round(Math.random()*[ai]); } if (currStep < 90) starsDiv.all[i].style.background=initialStarColor; if (currStep > 90) starsDiv.all[i].style.background=Clrs[c]; starsDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100) starsDiv.all[i].style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100) } } else if (document.layers) { step = 5; for ( j = 0 ; j < 14 ; j++ ) //number of NS layers! { var templayer="a"+j for (ai=0; ai < Clrs.length; ai++) { var c=Math.round(Math.random()*[ai]); } if (currStep < 90) document.layers[templayer].bgColor=initialStarColor; if (currStep > 90) document.layers[templayer].bgColor=Clrs[c]; document.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100) document.layers[templayer].left = Mleft + yBase*Math.cos((currStep+j*5)/3)*Math.sin(550+currStep/100) } } currStep+= step; http://window.status=currStep; T=setTimeout("Fireworks()",5); if (currStep==220) { currStep=-10; for (n=0; n < sClrs.length; n++) { var k=Math.round(Math.random()*n); } initialStarColor=sClrs[k]; if (document.all) { Dtop=window.document.body.clientHeight-250; Dleft=xBase*3.5; Mtop=Math.round(Math.random()*Dtop); Mleft=Math.round(Math.random()*Dleft); document.all.starsDiv.style.top=Mtop+document.body.scrollTop; document.all.starsDiv.style.left=Mleft+document.body.scrollLeft; } else if (document.layers) { Dleft=window.innerWidth-100; Dtop=window.innerHeight-100; Mtop=Math.round(Math.random()*Dtop+window.pageYOffset); Mleft=Math.round(Math.random()*Dleft+window.pageXOffset); document.layers[templayer].top=Mtop; document.layers[templayer].left=Mleft; } if ((Mtop < 20) || (Mleft < 20)) { Mtop+=90; Mleft+=90; } } } if (document.all||document.layers) Fireworks();
</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>
فلاش
الكود:
<script> // التكويد العربي
function initArray() { this.length = initArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = initArray.arguments[i] }
var hexChars = "0123456789ABCDEF";
function Dec2Hex (Dec) { var a = Dec % 16; var b = (Dec - a)/16; hex = "" + hexChars.charAt(b) + hexChars.charAt(a); return hex; }
</script> <script> <!-- // black to black (pause) bgChanger("000000","000000",25); // black to red bgChanger("000000","FF0000",25); // red to black bgChanger("FF0000","000000",25); // black to purple bgChanger("000000","AA00EE",25); // purple to black bgChanger("AA00EE","000000",25); // black to blue bgChanger("000000","0000FF",25); // blue to black bgChanger("0000FF","000000",25); // black to black (pause) bgChanger("000000","000000",25); // --> </script>
أضفني للمفضله
الكود:
<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>
var it=0 function initialize(){ mytext=typing.innerText var myheight=typing.offsetHeight typing.innerText='' document.all.typing.style.height=myheight document.all.typing.style.visibility="visible" typeit() } function typeit(){ typing.insertAdjacentText("beforeEnd",mytext.charAt(it)) if (it<mytext.length-1){ it++ setTimeout("typeit()",100) } else return } if (document.all) document.body.onload=initialize </script>
<span id="typing" style="visibility:hidden" align="left">مرحباً بكم في منتدى التكويد العربي...الذي اتمنى ان ينال اعجابكم </span></font></b></p>
<script language="VBScript"> Dim a Dim min1 Dim hr1 Dim sec1
'Initializes clock and tells it how to behave, when to start animation, etc
Sub window_onload a = time min1 = minute(time) hr1 = hour(time) if hr1 > 12 then hr1 = hr1 - 12 end if sec1 = second(time) call sgSecondHand.Rotate(0,0,sec1*6 - 90) call sgMinuteHand.Rotate(0,0,min1*6 - 90) call sgHourHand.Rotate(0,0,hr1*360/12 - 90) call seq("Time").Play end Sub
'Sequencer initilization
Sub Seq_OnInit Call seq("Time").at(0.000, "SecRot", -1, 1.000, 1) Call seq("Time").at(60.000, "MinRot", -1, 60.000, 1) Call seq("Time").at(0.000, "HourRot", -1, 1800.000, 1) End Sub
'rotates second hand of clock
Sub SecRot Call sgSecondHand.Rotate(0,0,6) End Sub
' rotates minute hand of clock
Sub MinRot Call sgMinuteHand.Rotate(0,0,6) End Sub
' rotates hour hand of clock
Sub HourRot Call sgHourHand.Rotate(0,0,15) End Sub
</script>
<!-- This is the master div, sets over all height, width and positioning-->
<!-- This script has been in the http://www.javascripts.com Javascript Public Library! --> <!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. -->
function show2(){ if (!document.all) return var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds var ctime=hours+":"+minutes+":"+seconds+" "+dn tick2.innerHTML="<style='font-size:2;color:blue;'>"+ctime+"</style>" setTimeout("show2()",1000) } //--> </script> <TITLE>F O R M S</TITLE>
<BODY onunload="stopTimer()" onLoad="startTimer()" > <SCRIPT> <!-- hide from non JS browsers.
//Define a couple of global variables. var timerID = null var timerRunning = false
function stopTimer(){ //stop the clock if(timerRunning) { clearTimeout(timerID) timerRunning = false } }
function startTimer(){ // Stop the clock (in case it's running), then make it go. stopTimer() runClock() }
function runClock(){ document.clock.face.value = timeNow() //Notice how setTimeout() calls its own calling function, runClock(). timerID = setTimeout("runClock()",1000) timerRunning = true }
function timeNow() { //Grabs the current time and formats it into hh:mm:ss am/pm format. now = new Date() hours = now.getHours() minutes = now.getMinutes() seconds = now.getSeconds() timeStr = "" + ((hours > 12) ? hours - 12 : hours) timeStr += ((minutes < 10) ? ":0" : ":") + minutes timeStr += ((seconds < 10) ? ":0" : ":") + seconds timeStr += (hours >= 12) ? " PM" : " AM" return timeStr }
// End of custom functions, stop hiding code --> </SCRIPT> <p> <font size=+1>Clock 2</font><hr> This clock will tell the time. The javascript updates the clock every 1000 milliseconds.<p> <CENTER><P><FORM NAME="clock"><INPUT TYPE="text" NAME="face" SIZE=11></FORM><p>
</body>
محرك بحث
الكود:
<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>
بحث في الصفحه
الكود:
<!-- TWO STEPS TO INSTALL FIND IN PAGE:
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"> <!-- The JavaScript Source!! http://www.tacwed.com/ -->
<!-- Begin var NS4 = (document.layers); var IE4 = (document.all);
var win = this; var n = 0;
function findInPage(str) { var txt, i, found; if (str == "") return false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if (n == 0) alert(str + " was not found on this page."); } if (IE4) { txt = win.document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart("character", 1); txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else alert(str + " was not found on this page."); } } return false; } // End --> </script> </HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<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> <br> السلام عليكم ورحمة الله وبركاته .. كيف حالكم ؟؟ هذي هي الطريقة الأولى وهي من تحت لفوق ... <br> <br> <br> </marquee> <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> <br> السلام عليكم ورحمة الله وبركاته .. كيف حالكم ؟؟ هذي هي الطريقة الثانية وهي من فوق لتحت ... <br> <br> <br> </marquee> <br>