![]() |
#21 |
![]()
Otomatik web sayfası oluşturma
Kod:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1254"> <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0"> <title>JavaFILE</title> <base target="leftframe"> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <script language="JavaScript"><!-- function codeit(passed) { value = passed valueout ="" carrot = false; for (i=0; i<value.length; i++) { getcode = value.substring(i, i+1) if (getcode == '<') carrot = true; else if (getcode == '>') carrot = false; else if (getcode == ' ') valueout += getcode.fontsize(7).fontcolor(randomcolor()) else valueout += getcode.fontsize(randomfont()).fontcolor(randomcolor()); } valueout = "<strong>" + valueout + "</strong>" document.forms[0].result.value = valueout; // parent.output.document.open('text/html'); // parent.output.document.write(valueout); // parent.output.document.close(); pageout = "<html><body bgcolor=blue><strong>" pageout += valueout + "</strong>" pageout += "<p><center><hr width=50><p><font color=white>Visit " pageout += "<a href="http://www.adresonline.gen.******">" pageout += "Hazır Pages</a>ADRESONLİNE CORPARATİON</font></center>" pageout += "</body></html>" out = window.open('','output'); out.document.write(pageout); out.document.close(); } function randomfont() { f=Math.floor(Math.random()*(5))+3 return f } function randomcolor() { c = Math.floor(Math.random()*(17)) if (c == 0) return 'gray' else if (c == 1) return 'maroon' else if (c == 2) return 'purple' else if (c == 3) return 'green' else if (c == 4) return 'olive' else if (c == 5) return 'navy' else if (c == 6) return 'teal' else if (c == 7) return 'silver' else if (c == 8) return 'red' else if (c == 9) return 'fuchsia' else if (c == 10) return 'lime' else if (c == 11) return 'yellow' else if (c == 12) return 'blue' else if (c == 13) return 'aqua' else if (c == 14) return 'orange' else if (c == 15) return 'brown' else if (c == 16) return 'magenta' else return 'black' } // --></script> <p align="center"> </p> <p align="center"><a href="http://www.adresonline.gen.******"><font color="#FF0000" size="7"><strong>AdReS</strong></font><font color="#0000FF" size="7"><strong>oNLiNe</strong></font></a></p> <p> </p> <p align="center"><font color="#008000" size="4"><strong>T</strong></font><font color="#22165A" size="6"><strong>h</strong></font><font color="#0000FF" size="7"><strong>e</strong></font><font color="#008000" size="7"><strong>y</strong></font><font color="#00000B" size="2"><strong> </strong></font><font color="#FF0000" size="6"><strong>a</strong></font><font color="#22165A" size="3"><strong>r</strong></font><font color="#FFFF00" size="6"><strong>e</strong></font><font color="#FF0000" size="7"><strong> </strong></font><font color="#008000" size="1"><strong>c</strong></font><font color="#008080" size="6"><strong>o</strong></font><font color="#FF0000" size="4"><strong>m</strong></font><font color="#0000FF" size="2"><strong>i</strong></font><font color="#FFFF00" size="6"><strong>n</strong></font><font color="#008000" size="4"><strong>g</strong></font><font color="#008000" size="1"><strong> </strong></font><font color="#00000B" size="1"><strong>t</strong></font><font color="#FFFF00" size="7"><strong>o</strong></font><font color="#0000FF" size="6"><strong> </strong></font><font color="#22165A" size="4"><strong>t</strong></font><font color="#00000B" size="5"><strong>a</strong></font><font color="#22165A" size="7"><strong>k</strong></font><font color="#0000FF" size="1"><strong>e</strong></font><font color="#008000" size="6"><strong> </strong></font><font color="#22165A" size="3"><strong>m</strong></font><font color="#22165A" size="4"><strong>e</strong></font><font color="#22165A" size="5"><strong> </strong></font><font color="#00000B" size="6"><strong>a</strong></font><font color="#0000FF" size="5"><strong>w</strong></font><font color="#008000" size="3"><strong>a</strong></font><font color="#0000FF" size="2"><strong>y </strong></font><font color="#00000B" size="7"><strong>h</strong></font><font color="#FFFF00" size="1"><strong>a</strong></font><font color="#FF0000" size="2"><strong> </strong></font><font color="#0000FF" size="5"><strong>h</strong></font><font color="#FF0000" size="7"><strong>a</strong></font> </p> <p><font color="#0000FF">Eğlenceli bir Web Sayfası Yapma Olayı. Web Masterler Sitelerine Yerleştirebilirler. Basit renkli ve hazır web sayfası Yapmak isteyenler için ideal.</font></p> <form> <p align="center"><font color="#FF0000">Mesajınızı Yazın ve Dönüştür Tuşuna Basın</font><font color="#FFFFFF"><br> <textarea name="code" rows="4" cols="60"></textarea> </font></p> <p align="center"><font color="#FFFFFF"><input type="button" name="button1" value="Dönüştür" onclick="codeit(document.forms[0].code.value)"> </font></p> <p align="center"><font color="#FF0000">Burada Yukarıdaki Yazının Html Kodları Yani Hazır Web Sayfası Yer Alacak</font><font color="#FFFFFF"><br> <textarea name="result" rows="4" cols="60"></textarea> </font></p> </form> <p align="center"><a href="http://www.adresonline.gen.******"><font color="#FF0000"><strong><u>ADRES</u></strong></font><font color="#0000FF"><strong><u>ONLİNE</u></strong></font></a><font color="#0000FF"> <br> </font><a href="http://www.adresonline.gen.******"><font color="#0000FF">http://www.</font><font color="#FF0000">adres</font><font color="#0000FF">online.gen.******</font></a></p> <p align="center"><a href="http://www.adresonline.gen.******"><font color="#0000FF"><strong><u>İnternet Kaynakları </u></strong></font></a><font color="#0000FF"><strong><u><br> </u></strong></font><a href="http://www.adresonline.gen.******"><font color="#0000FF"><strong><u>Web Araçları</u></strong></font></a></p> <p align="center"><font color="#0000FF"><strong><u>Katkılarından Dolayı Forum Ti'ye Teşekkürler.</u></strong></font></p> </body> </html> |
|
![]() |
![]() |
![]() |
#22 |
|
![]()
Sayaç (ziyaretçi sayısı)
Kod:
<map NAME=cnap><area HREF=http://ctxtyy.com/3424/><area SHAPE=rect COORDS=3,2,100,20 HREF=http://ctxtyy.com/3424/></map><img border=0 usemap=#cnap border=0 src=http://ctr.ctxaqa.com/counter/index.php?u=uyeadi&s=blueodo></body></html> |
![]() |
![]() |
![]() |
#23 |
|
![]()
Arkaplan aniden renkler içinde kalıyor sonra düzeliyor
Kod:
<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; } function bgChanger (begin, end, steps) { steps = steps -1 ; redA = begin.charAt(0) + begin.charAt(1); red_valA = parseInt(redA,'16'); redB = end.charAt(0) + end.charAt(1); red_valB = parseInt(redB,'16'); red_int = ((red_valB - red_valA) / steps) * -1; grnA = begin.charAt(2) + begin.charAt(3); grn_valA = parseInt(grnA,'16'); grnB = end.charAt(2) + end.charAt(3); grn_valB = parseInt(grnB,'16'); grn_int = ((grn_valB - grn_valA) / steps) * -1; bluA = begin.charAt(4) + begin.charAt(5); blu_valA = parseInt(bluA,'16'); bluB = end.charAt(4) + end.charAt(5); blu_valB = parseInt(bluB,'16'); blu_int = ((blu_valB - blu_valA) / steps) * -1; step = 2; red = red_valA; grn = grn_valA; blu = blu_valA; document.bgColor = begin; while ( steps >= step ) { red -= red_int; red_round = Math.round(red); red_hex = Dec2Hex(red); grn -= grn_int; grn_round = Math.round(grn); grn_hex = Dec2Hex(grn); blu -= blu_int; blu_round = Math.round(blu); blu_hex = Dec2Hex(blu); document.bgColor = red_hex + grn_hex + blu_hex; step++; } document.bgColor = end; } bgChanger("000000","000000",15); bgChanger("000000","FF0000",15); bgChanger("FF0000","000000",15); bgChanger("000000","AA00EE",15); bgChanger("AA00EE","000000",15); bgChanger("000000","0000FF",15); bgChanger("0000FF","000000",15); bgChanger("000000","kendi renk kodunuz",15); // --> </script>__________________ |
![]() |
![]() |
![]() |
#24 |
|
![]()
Sayfayı titret
Kod:
<html><HEAD> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- Begin function shake(n) { if (self.moveBy) { for (i = 10; i > 0; i--) { for (j = n; j > 0; j--) { self.moveBy(0,i); self.moveBy(i,0); self.moveBy(0,-i); self.moveBy(-i,0); } } } } // End --> </script> </HEAD> <BODY bgcolor="red"> <center><font color="white"> <h1>DÜĞMEYE BASIN VE OLANLARI GÖRÜN</h1> <br> <h3>dilerseniz seri bi şekilde space'e basmayı deneyin</h3> <center> <form> <input type=button onclick="shake(2)" value="BAŞLA"> </form> |
![]() |
![]() |
![]() |
#25 |
|
![]()
Açılır menü
Kod:
<style> BODY { font-family:verdana, arial, helvetica; font-size:70%; } H1 { font-size:120%; font-style:italic; } DIV#divMenuBar { background-color:#6699CC; } TABLE#tblMenuBar TD { font-size:60%; color:white; padding:0px 5px 0px 5px; cursor:default; } TABLE#tblMenuBar TD.MenuMadde { font-weight:bold; cursor:hand; } DIV.clsMenu { font-size:90%; background-color:#6699CC; position:absolute; visibility:hidden; width:130px; padding:5px 5px 5px 8px; border-top:1 white solid; } DIV.clsMenu A { text-decoration:none; color:white; font-weight:bold; } DIV.clsMenu A:hover { color:moccasin; } BUTTON { font-family:tahoma; font-size:100%; } </style> <SCRIPT LANGUAGE="Javascript"> var eOpenMenu = null; function OpenMenu(eSrc,eMenu) { eMenu.style.left = eSrc.offsetLeft + divMenuBar.offsetLeft; eMenu.style.top = divMenuBar.offsetHeight + divMenuBar.offsetTop; eMenu.style.visibility = "visible"; eOpenMenu = eMenu; } function CloseMenu(eMenu) { eMenu.style.visibility = "hidden"; eOpenMenu = null; } function document.onmouseover() { var eSrc = window.event.srcElement; if ("MenuMadde" == eSrc.className) { eSrc.style.color = "moccasin"; var eMenu = document.all[eSrc.id.replace("tdMenuBarItem","divMenu")]; if (eOpenMenu && eOpenMenu != eMenu) { CloseMenu(eOpenMenu); } if (eMenu) { OpenMenu(eSrc,eMenu); } } else if (eOpenMenu && !eOpenMenu.contains(eSrc) && !divMenuBar.contains(eSrc)) { CloseMenu(eOpenMenu); } } function document.onmouseout() { var eSrc = window.event.srcElement; if ("MenuMadde" == eSrc.className) { eSrc.style.color = ""; } } </SCRIPT> Aşağısı Body Kısmına Eklenecek------------------------- <DIV ID="divMenuBar"> <TABLE ID="tblMenuBar" BORDER="0"> <TR> <TD CLASS="MenuMadde" ID="tdMenuBarItem01">MENÜ MADDE 01</TD> <TD>|</TD> <TD CLASS="MenuMadde" ID="tdMenuBarItem02">MENÜ MADDE 02</TD> <TD>|</TD> <TD CLASS="MenuMadde" ID="tdMenuBarItem03">MENÜ MADDE 03</TD> </TR> </TABLE> </DIV> <DIV CLASS="clsMenu" ID="divMenu01"> <DIV CLASS="clsMenuAra"></DIV> <DIV><A TARGET="_new" HREF="01.asp">Madde 01</A></DIV> <DIV><A TARGET="_new" HREF="02.asp">Madde 02</A></DIV> <DIV><A TARGET="_new" HREF="03.asp">Madde 03</A></DIV> <DIV><A TARGET="_new" HREF="04.asp">Madde 04</A></DIV> <DIV><A TARGET="_new" HREF="05.asp">Madde 05</A></DIV> </DIV> <DIV CLASS="clsMenu" ID="divMenu02"> <DIV CLASS="clsMenuAra"></DIV> <DIV><A TARGET="_new" HREF="11.asp">Madde 01</A></DIV> <DIV><A TARGET="_new" HREF="12.asp">Madde 02</A></DIV> <DIV><A TARGET="_new" HREF="13.asp">Madde 03</A></DIV> <DIV><A TARGET="_new" HREF="14.asp">Madde 04</A></DIV> <DIV><A TARGET="_new" HREF="15.asp">Madde 05</A></DIV> </DIV> <DIV CLASS="clsMenu" ID="divMenu03"> <DIV CLASS="clsMenuAra"></DIV> <DIV><A TARGET="_new" HREF="21.asp">Madde 01</A></DIV> <DIV><A TARGET="_new" HREF="22.asp">Madde 02</A></DIV> <DIV><A TARGET="_new" HREF="23.asp">Madde 03</A></DIV> <DIV><A TARGET="_new" HREF="24.asp">Madde 04</A></DIV> <DIV><A TARGET="_new" HREF="25.asp">Madde 05</A></DIV> </DIV> |
![]() |
![]() |
![]() |
#26 |
|
![]()
Sayfanıza yağan kalpler
Kod:
<!-- Begin var no = 12; // BURADA KALPLERIN SAYISINI BELIRTIYORUZ var speed = 10; // KALPLERIN KAYMA HIZINI AYARLIYORUZ var heart = "kalp.gif"; // KAYAN RESIM DOSYASININ ISMINI YAZIYORUZ var flag; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var **, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); amx = new Array(); amy = new Array(); stx = new Array(); sty = new Array(); flag = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-30)+10; // set position variables yp[i] = Math.random()*doc_height; amy[i] = 12+ Math.random()*20; // set amplitude variables amx[i] = 10+ Math.random()*40; stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables flag[i] = (Math.random()>0.5)?1:0; if (ns4up) { // set layers if (i == 0) { document.write("<layer name="dot"+ i +"" left="15" "); document.write("top="15" visibility="show"><img src=""); document.write(heart+ "" border="0"></layer>"); } else { document.write("<layer name="dot"+ i +"" left="15" "); document.write("top="15" visibility="show"><img src=""); document.write(heart+ "" border="0"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><img src=""); document.write(heart+ "" border="0"></div>"); } else { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><img src=""); document.write(heart+ "" border="0"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; flag[i]=(Math.random()<0.5)?1:0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } if (flag[i]) dx[i] += stx[i]; else dx[i] -= stx[i]; if (Math.abs(dx[i]) > Math.PI) { yp[i]+=Math.abs(amy[i]*dx[i]); xp[i]+=amx[i]*dx[i]; dx[i]=0; flag[i]=!flag[i]; } document.layers["dot"+i].top = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i])); document.layers["dot"+i].left = xp[i] + amx[i]*dx[i]; } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); flag[i]=(Math.random()<0.5)?1:0; doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } if (flag[i]) dx[i] += stx[i]; else dx[i] -= stx[i]; if (Math.abs(dx[i]) > Math.PI) { yp[i]+=Math.abs(amy[i]*dx[i]); xp[i]+=amx[i]*dx[i]; dx[i]=0; flag[i]=!flag[i]; } document.all["dot"+i].style.pixelTop = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i])); document.all["dot"+i].style.pixelLeft = xp[i] + amx[i]*dx[i]; } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // End --> </script> |
![]() |
![]() |
![]() |
#27 |
|
![]()
Sitenizde havai fişek gösterisi
Kod:
<body bgcolor="#000000"> <script language="JavaScript"> <!-- CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff') CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF') Xpos=130; Ypos=130; I='#00ff00'; C=0; S=5; H=null; W=null; Y=null; NS4=(document.layers); NS6=(document.getElementById&&!document.all); IE4=(document.all); A=14; E=120; L=null; if (NS4){ for (i=0; i < A; i++) document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>'); } if (NS6){ window.document.body.style.overflow='hidden'; for (i=0; i < A; i++) document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>'); } if (IE4){ document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < A; i++) document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>'); document.write('</div></div>'); } function Fireworks(){ H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight; W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth; Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop; for (i=0; i < A; i++){ if (IE4)L=iestars[i].style; if (NS4)L=document.layers["nsstars"+i]; if (NS6)L=document.getElementById("ns6stars"+i).style; var F=Math.floor(Math.random()*CL.length); var RS=Math.round(Math.random()*2); L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100) L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100) if (C < 110){ if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1} if (IE4||document.getElementById) {L.background=I;L.width=1;L.height=1;L.fontSize=1} } else{ if (NS4){L.bgColor=CL[F];L.clip.width=RS;L.clip.height=RS} if (IE4||document.getElementById){L.background=CL[F];L.width=RS;L.height=RS;L.fontSize=RS} } } if (C > 220){ C=0; var NC=Math.floor(Math.random()*CL2.length); I=CL2[NC]; E=Math.round(100+Math.random()*50); Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y; Xpos = E+Math.round(Math.random()*(W-(E*2.2))); } C+=S; setTimeout("Fireworks()",10); } Fireworks(); // --> </script> |
![]() |
![]() |
![]() |
#28 |
|
![]()
Sayfanıza yağmur yağsın
Kod:
<BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var no = 50; var speed = 1; var ns4up = (document.layers) ? 1 : 0; var ie4up = (document.all) ? 1 : 0; var s, x, y, sn, cs; var a, r, cx, cy; var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } x = new Array(); y = new Array(); r = new Array(); cx = new Array(); cy = new Array(); s = 8; for (i = 0; i < no; ++ i) { initRain(); if (ns4up) { if (i == 0) { document.write("<layer name="dot"+ i +"" left="1" "); document.write("top="1" visibility="show"><font color="blue">"); document.write(",</font></layer>"); } else { document.write("<layer name="dot"+ i +"" left="1" "); document.write("top="1" visibility="show"><font color="blue">"); document.write(",</font></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><font color="blue">"); document.write(",</font></div>"); } else { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><font color="blue">"); document.write(",</font></div>"); } } } function initRain() { a = 6; r[i] = 1; sn = Math.sin(a); cs = Math.cos(a); cx[i] = Math.random() * doc_width + 1; cy[i] = Math.random() * doc_height + 1; x[i] = r[i] * sn + cx[i]; y[i] = cy[i]; } function makeRain() { r[i] = 1; cx[i] = Math.random() * doc_width + 1; cy[i] = 1; x[i] = r[i] * sn + cx[i]; y[i] = r[i] * cs + cy[i]; } function updateRain() { r[i] += s; x[i] = r[i] * sn + cx[i]; y[i] = r[i] * cs + cy[i]; } function raindropNS() { for (i = 0; i < no; ++ i) { updateRain(); if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { makeRain(); doc_width = self.innerWidth; doc_height = self.innerHeight; } document.layers["dot"+i].top = y[i]; document.layers["dot"+i].left = x[i]; } setTimeout("raindropNS()", speed); } function raindropIE() { for (i = 0; i < no; ++ i) { updateRain(); if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { makeRain(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } document.all["dot"+i].style.pixelTop = y[i]; document.all["dot"+i].style.pixelLeft = x[i]; } setTimeout("raindropIE()", speed); } if (ns4up) { raindropNS(); } else if (ie4up) { raindropIE(); } // End --> </script> |
![]() |
![]() |
![]() |
#29 |
|
![]()
Sayfa şifreleme
Kod:
<script language="Javascript"> <!-- var password = "kodlayici" var x = prompt("Lütfen sifreyi giriniz"," ") if (x.toLowerCase() == password) { alert("Sifre dogru n n Sayfaya girmek için Tamam'a tiklayin") location = "dogru.html" } else { location = "yanlis.html" } //--> </script> |
![]() |
![]() |
![]() |
#30 |
|
![]()
kompLe hazır kod
Kod:
<!-- Begin var no = 12; // BURADA KALPLERIN SAYISINI BELIRTIYORUZ var speed = 10; // KALPLERIN KAYMA HIZINI AYARLIYORUZ var heart = "kalp.gif"; // KAYAN RESIM DOSYASININ ISMINI YAZIYORUZ var flag; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var **, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); amx = new Array(); amy = new Array(); stx = new Array(); sty = new Array(); flag = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-30)+10; // set position variables yp[i] = Math.random()*doc_height; amy[i] = 12+ Math.random()*20; // set amplitude variables amx[i] = 10+ Math.random()*40; stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables flag[i] = (Math.random()>0.5)?1:0; if (ns4up) { // set layers if (i == 0) { document.write("<layer name="dot"+ i +"" left="15" "); document.write("top="15" visibility="show"><img src=""); document.write(heart+ "" border="0"></layer>"); } else { document.write("<layer name="dot"+ i +"" left="15" "); document.write("top="15" visibility="show"><img src=""); document.write(heart+ "" border="0"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><img src=""); document.write(heart+ "" border="0"></div>"); } else { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><img src=""); document.write(heart+ "" border="0"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; flag[i]=(Math.random()<0.5)?1:0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } if (flag[i]) dx[i] += stx[i]; else dx[i] -= stx[i]; if (Math.abs(dx[i]) > Math.PI) { yp[i]+=Math.abs(amy[i]*dx[i]); xp[i]+=amx[i]*dx[i]; dx[i]=0; flag[i]=!flag[i]; } document.layers["dot"+i].top = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i])); document.layers["dot"+i].left = xp[i] + amx[i]*dx[i]; } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); flag[i]=(Math.random()<0.5)?1:0; doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } if (flag[i]) dx[i] += stx[i]; else dx[i] -= stx[i]; if (Math.abs(dx[i]) > Math.PI) { yp[i]+=Math.abs(amy[i]*dx[i]); xp[i]+=amx[i]*dx[i]; dx[i]=0; flag[i]=!flag[i]; } document.all["dot"+i].style.pixelTop = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i])); document.all["dot"+i].style.pixelLeft = xp[i] + amx[i]*dx[i]; } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // End --> </script> |
![]() |
![]() |
![]() |
Etiketler |
hazir, kodlar |
|
|