+ Cevap Yaz
Sayfa 1, toplam 8
1 2 3 4 5 6 7 ... SonSon
Results 1 to 15 of 107

Bazı Güzel Kodlar (HTML)

Bu sayfada Bilgisayar Programlama kategorisindeki Web Programlama forumunda Bazı Güzel Kodlar (HTML) başlıklı konu tartışılıyor; Kodları fareyle seçerek ctrl+c ile kopyalayıp ctrl+v ile de not defterine yapıştırın. Her kod için yeni bir not defteri açın ...

  1. #1
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971

    Bazı Güzel Kodlar (HTML)

    Kodları fareyle seçerek ctrl+c ile kopyalayıp ctrl+v ile de not defterine yapıştırın. Her kod için yeni bir not defteri açın ve her kodu da kod.html olarak kaydedin. Diğer bir koda geçerseniz kod1.html, kod2.html olarak kaydedin.

    -----------------
    Ekran Titretme
    -----------------

    <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 Basın</h1>
    <br>
    <h3></h3>


    <center>
    <form>
    <input type=button onClick="shake(2)" value="Buraya Bas">
    </form>

    --------------------------------------------
    Sağ Fare Tuşunu Yasaklamak (Ekranı Oynatır.)
    --------------------------------------------

    <SCRIPT language=JavaScript>
    document.onmousedown=click
    var times=0
    var times2=10
    function click() {
    if ((event.button==2) || (event.button==3)) {
    if (times>=1) { earthquake() }
    alert("Sağ fare olmaz.");
    times++ } }
    function earthquake() {
    alert("Olmaz dedik ya!");
    window.moveTo(0, 0)
    window.moveTo(1, 1)
    window.moveTo(2, 2)
    window.moveTo(3, 3)
    window.moveTo(4, 4)
    window.moveTo(5, 5)
    window.moveTo(6, 6)
    window.moveTo(7, 7)
    window.moveTo(8, 8)
    window.moveTo(9, 9)
    window.moveTo(10, 10)
    window.moveTo(9, 9)
    window.moveTo(8, 8)
    window.moveTo(7, 7)
    window.moveTo(6, 6)
    window.moveTo(5, 5)
    window.moveTo(4, 4)
    window.moveTo(3, 3)
    window.moveTo(2, 2)
    window.moveTo(1, 1)
    alert("OLMAZ!!!")
    tremmors()
    }
    function tremmors() {
    window.moveTo(0, 0)
    window.moveTo(1, 1)
    window.moveTo(2, 2)
    window.moveTo(3, 3)
    window.moveTo(4, 4)
    window.moveTo(5, 5)
    window.moveTo(6, 6)
    window.moveTo(7, 7)
    window.moveTo(8, 8)
    window.moveTo(9, 9)
    window.moveTo(10, 10)
    window.moveTo(9, 9)
    window.moveTo(8, 8)
    window.moveTo(7, 7)
    window.moveTo(6, 6)
    window.moveTo(5, 5)
    window.moveTo(4, 4)
    window.moveTo(3, 3)
    window.moveTo(2, 2)
    window.moveTo(1, 1)
    tremmors()
    }
    </SCRIPT>

    ---------------------------------------
    Sağ Tuş Yasaklamak (Ekran Oynamasız)
    ---------------------------------------
    <html>
    <head>
    <script language="Javascript1.2">
    <!--
    var mymessage = "Sağ tuş olmaz.";
    function rtclickcheck(keyp){
    if (navigator.appName == "Netscape" && keyp.which == 3) {
    alert(mymessage);
    return false;
    }

    if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
    alert(mymessage);
    return false;
    }
    }

    document.onmousedown = rtclickcheck
    //-->
    </script>
    </head>
    </html>

    --------------------------------
    Fareyi Vurmaya ve Takip Etmeye Çalışan Kareler
    --------------------------------

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
    <title>z-mouse_animasyonu-1</title>
    <script language="JavaScript">
    <!-- Mouse attack Script by kurt.grigg@virgin.net
    var speed=20,divTop=0,divLeft=0,angle=0,ypos=0,xpos=0,amount=13;
    if (document.layers){
    for (i = 0; i < amount; i++)
    {document.write('<layer name=nsa'+i+' top=0 left=0 width='+i/3+' height='+i/3+' bgcolor=#ffffff></layer>');}
    window.captureEvents(Event.MOUSEMOVE);
    function nsMouse(evnt){
    xpos=evnt.pageX;ypos=evnt.pageY;
    }
    window.onMouseMove = nsMouse;
    }
    else if (document.all){
    document.write('<div style="position:absolute;top:0px;left:0px">');
    document.write('<div style="position:relative">');
    for (i = 0; i < amount; i++)
    {document.write('<div id=k style="position:absolute;top:0px;left:0px;width:'+i/3+';height:'+i/3+';background:#ffffff;font-size:'+i/3+'"></div>')}
    document.write('</div></div>');
    function iMouse(){xpos=event.x;ypos=document.body.scrollTop+event.y}
    document.onmousemove = iMouse;
    }
    function getAngle(){
    Y = ypos - divTop;X = xpos - divLeft;angle = Math.round(Math.atan2(Y,X) * 180/Math.PI);
    if (angle < 0)angle += 360;
    }
    function bomb(){
    if (document.layers){
    Yscroll=window.pageYOffset;
    ybase=Math.round(Math.random()*window.innerHeight);xbase=Math.ro und(Math.random()*window.innerWidth);
    yybase=window.innerHeight-10;xxbase=window.innerWidth-10;
    }
    else if (document.all){
    Yscroll=document.body.scrollTop;
    ybase=Math.round(Math.random()*window.document.body.offsetHeight );xbase=Math.round(Math.random()*window.document.body.offsetWidt h);
    xxbase=window.document.body.offsetWidth-10;yybase=window.document.body.offsetHeight-10;
    }
    if ((xbase > 10 && xbase < xxbase) && (ybase > 10 && ybase < yybase))
    bomb();
    else
    {
    if ((divLeft > xpos-speed/1.5) && (divLeft < xpos+speed/1.5) && (divTop >= ypos-speed/1.5) && (divTop <= ypos+speed/1.5))
    {divTop=ybase+Yscroll;divLeft=xbase}
    y = Math.round(speed*Math.sin(angle*Math.PI/180));x = Math.round(speed*Math.cos(angle*Math.PI/180));
    divTop+=y;divLeft+=x;
    getAngle();
    T=setTimeout('bomb()',20);
    }
    }
    function Split(){
    Clrs=new Array('fff000','ffffff','ffa500')
    var ntscp=document.layers,msie=document.all;

    if (document.layers){
    for (i = 0; i < amount; i++)
    {
    if (i < amount-1)
    {ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left}
    else
    {ntscp['nsa'+i].top=divTop;ntscp['nsa'+i].left=divLeft}
    }
    }
    else if (document.all){
    for (i = 0; i < amount; i++)
    {
    if (i < amount-1)
    {msie.k[i].style.top=msie.k[i+1].style.top;msie.k[i].style.left=msie.k[i+1].style.left}
    else
    {msie.k[i].style.top=divTop;msie.k[i].style.left=divLeft}
    }
    }
    for (i=0; i < amount-1; i++)
    {
    for (n=0; n < Clrs.length; n++)
    {var x=Math.round(Math.random()*n)}
    if (document.layers){ntscp['nsa'+i].bgColor=Clrs[x]}
    else if (document.all){msie.k[i].style.background=Clrs[x]}
    }
    setTimeout("Split()",20);
    }
    function StArT(){bomb();Split()}
    window.onload=StArT;
    //-->
    </script></head>
    <body bgcolor="#000000" text="#FFFFFF">
    </body>
    </html>

    ---------------------------
    Fareyi Takip Eden Yazı
    ---------------------------

    <html>
    <head>

    <script language="JavaScript">
    <!--

    var x,y
    var step=20
    var flag=0

    var message="sayborg"
    message=message.split("")

    var xpos=new Array()
    for (i=0;i<=message.length-1;i++) {
    xpos[i]=-50
    }

    var ypos=new Array()
    for (i=0;i<=message.length-1;i++) {
    ypos[i]=-50
    }

    function handlerMM(e){
    x = (document.layers) ? e.pageX : event.clientX
    y = (document.layers) ? e.pageY : event.clientY
    flag=1
    }

    function makesnake() {
    if (flag==1 && document.all) {
    for (i=message.length-1; i>=1; i--) {
    xpos[i]=xpos[i-1]+step
    ypos[i]=ypos[i-1]
    }
    xpos[0]=x+step
    ypos[0]=y

    for (i=0; i<message.length-1; i++) {
    var thisspan = eval("document.all.span"+(i)+".style")
    thisspan.posLeft=xpos[i]
    thisspan.posTop=ypos[i]
    }
    }

    if (flag==1 && document.layers) {
    for (i=message.length-1; i>=1; i--) {
    xpos[i]=xpos[i-1]+step
    ypos[i]=ypos[i-1]
    }
    xpos[0]=x+step
    ypos[0]=y

    for (i=0; i<message.length-1; i++) {
    var thisspan = eval("document.span"+i)
    thisspan.left=xpos[i]
    thisspan.top=ypos[i]
    }
    }
    var timer=setTimeout("makesnake()",10)
    }

    //-->
    </script>

    <STYLE>
    .spanstyle {
    position:absolute;
    visibility:visible;
    top:-50px;
    font-size:15pt;
    font-family:Arial Tur;
    color:FF0000
    }
    </STYLE>

    </head>
    <body>
    <body onLoad="makesnake()">


    <script language="JavaScript">
    <!--

    for (i=0;i<=message.length-1;i++) {
    document.write("<span id='span"+i+"' class='spanstyle'>")
    document.write(message[i])
    document.write("</span>")
    }

    if (document.layers){
    document.captureEvents(Event.MOUSEMOVE);
    }
    document.onmousemove = handlerMM;

    //-->
    </script>
    </body>
    </html>

    -----------------------------------
    Sol Tıklamayı Engellemek
    -----------------------------------

    <body onselectstart="return false">






    Umarım Kodları Beğenirsiniz. Internetten Bulursam Daha Fazlasını Yollayacağım. Şimdilik Güle Güle...

    Bir gün Yunanlılar, anneannemin annesinin ve diğer vatandaşlarımızın üzerine gaz dökmüşlerdi. Onları tam yakacaklarken Atatürk'ten bir telgraf geldi: "Eğer bir Türk'ün kılına bile zarar gelirse orada taşın üzerinde taş koymam." yazıyordu. Yunanlılar korktular ve yakamadılar. O yüce insanın sayesinde yaşıyorum. Bu vatandan çıkar sağlayıp tekrar bu vatana ihanet edenler şerefsizdir.

  2. #2
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    ----------------------------------
    Değişik Bir Şekilde Açılan Pencereler
    ----------------------------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>
    <head>
    <title>Untitled</title>
    <script>
    <!--


    var winheight=100
    var winsize=100
    var x=5

    function openwindow(thelocation){
    temploc=thelocation
    if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.g etElementById)){
    window.open(thelocation)
    return
    }
    win2=window.open("","","scrollbars")
    win2.moveTo(0,0)
    win2.resizeTo(100,100)
    go2()
    }
    function go2(){
    if (winheight>=screen.availHeight-3)
    x=0
    win2.resizeBy(5,x)
    winheight+=5
    winsize+=5
    if (winsize>=screen.width-5){
    win2.location=temploc
    winheight=100
    winsize=100
    x=5
    return
    }
    setTimeout("go2()",50)
    }
    //-->
    </script>

    </head>

    <body>

    <p><a href="javascript:openwindow('http://www.hardwaremania.com')">Hardwaremania.com</a>

    <p><a href="javascript:openwindow('http://forum.hardwaremania.com')">Hardwaremania Forum</a>

    </body>
    </html>

  3. #3
    Banned user birkan can Avatar
    Katılım tarihi
    05.08.2004
    Nereden
    bandırma banvit kara ali acar spor salanu BANVİTSPOR
    Mesaj
    530
    saol denedim gerçekten yapanlar güzel yapmış

  4. #4
    Cool Member HighJazz Avatar
    Katılım tarihi
    23.08.2004
    Nereden
    İstanbul
    Mesaj
    313
    sayborg eywallah kodlar canavar gıbı walla... beklıyoruz tabe devamını

  5. #5
    Power Member ozgura Avatar
    Katılım tarihi
    03.12.2003
    Nereden
    Århus / Danimarka
    Mesaj
    581
    dostum birde bu kodlari denemek icin link koysan ne kadar guzel olacakmis...

  6. #6
    V.I.Member Mr.Green Avatar
    Katılım tarihi
    14.04.2004
    Nereden
    ıรt & ккtς
    Mesaj
    1.155
    Blog Mesajları
    1
    Harika kodlar valla. Hemen Siteme ekledim. Bakabilirsiniz www.sarponline.tk
    iLLeGaL & SaRP & S@RP

  7. #7
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    -----------------------------------------------------
    Sitenin Yüklenme Durumunu Durum Çubuğunda Gösteren Kod
    -----------------------------------------------------

    <SCRIPT language=VBScript>
    <!--

    Dim Bar, Line, SP
    Bar = 0
    Line = "|"
    sP = 100

    Function Window_onLoad()
    Bar = 95
    sP = 10
    END Function

    Function Count()
    If Bar < 100 Then
    Bar = Bar + 1
    Window.Status = "Yükleniyor: " & Bar & "%" & " " & String(Bar, Line)
    setTimeout "Count()", SP
    Else
    Window.Status = "Yükleme Bitti"
    Document.Body.Style.Display = ""
    End If
    End Function

    Call Count()

    -->
    </SCRIPT>

    ------------------------------
    Sayfanız Kare Kare Açılsın
    ------------------------------

    Merhabalar!!!

    <head><style>
    <!--
    .intro{
    position:absolute;
    left:0;
    top:0;
    layer-background-color:green;
    background-color:#4040ff;
    border:0.1px solid #4040ff;
    z-index:10;
    }
    -->
    </style></head>
    <body><div id="p1" class="intro"></div>
    <div id="p2" class="intro"></div>
    <div id="p3" class="intro"></div>
    <div id="p4" class="intro"></div>
    <div id="p5" class="intro"></div>
    <div id="p6" class="intro"></div>
    <div id="p7" class="intro"></div>
    <div id="p8" class="intro"></div>
    <div id="p9" class="intro"></div>
    <div id="p10" class="intro"></div>
    <div id="p11" class="intro"></div>
    <div id="p12" class="intro"></div>
    <div id="p13" class="intro"></div>
    <div id="p14" class="intro"></div>
    <div id="p15" class="intro"></div>
    <div id="p16" class="intro"></div>
    <div id="p17" class="intro"></div>
    <div id="p18" class="intro"></div>
    <div id="p19" class="intro"></div>
    <div id="p20" class="intro"></div>
    <div id="p21" class="intro"></div>
    <div id="p22" class="intro"></div>
    <div id="p23" class="intro"></div>
    <div id="p24" class="intro"></div>
    <div id="p25" class="intro"></div>

    <script>

    /*

    */


    var espeed=300
    var counter=1
    var temp=new Array()
    var temp2=new Array()

    var ns4=document.layers?1:0
    var ie4=document.all?1:0
    var ns6=document.getElementById&&!document.all?1:0


    ////////Code for Netscape NS 4+////
    if (ns4){
    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+ and NS6/////////

    if (ie4||ns6){
    var containerwidth=ns6?parseInt(window.innerWidth)/5-3 :

    parseInt(document.body.clientWidth/5)
    var containerheight=ns6?parseInt(window.innerHeight)/5-2 :

    parseInt(document.body.offsetHeight/5)

    for (i=1;i<=25;i++){
    temp[i]=ns6?document.getElementById("p"+i).style :

    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(){
    window.scrollTo(0,0)
    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)
    if (ns6){
    for (i=1;i<26;i++)
    temp[i].display="none"
    }
    }
    counter++
    espeed-=10

    }

    /////////End IE 4+ code////////

    if (ns4)
    beginerase=setInterval("erasecontainerns()",espeed)
    else if (ie4||ns6){
    beginerase=setInterval("erasecontainerie()",espeed)
    }


    </script>
    </body>

    ---------------------------------
    Durum Çubuğundaki Hareket Eden Yazı
    ---------------------------------

    <script language="Javascript">
    <!--
    var x = 0
    var speed = 90
    var text = "sayborg2"
    var course =76
    var text2 = text

    function Scroll() {
    window.status = text2.substring(0, text2.length)
    if (course < text2.length) {
    setTimeout("Scroll2()", speed)
    }
    else {
    text2 = " " + text2
    setTimeout("Scroll()", speed);
    }
    }
    function Scroll2() {
    window.status = text2.substring(x, text2.length)
    if (text2.length - x == text.length) {
    text2 = text
    x = 0
    setTimeout("Scroll()", speed);
    }
    else {
    x++
    setTimeout("Scroll2()", speed);
    }
    }
    Scroll()
    //-->
    </script>

    Yeni kodları bekleyin...

  8. #8
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    Kodlar hakkında yorumunuzu bekliyorum ve kodları beğenen arkadaşlara çok teşekkür ediyorum. Gerçi bu kodlar başkalarının eseri. Bu kodları yapanlar da iyi yapmış diyorum.

  9. #9
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    -----------------------------------------------
    Durum Çubuğundaki Sağa-Sola Hareket Eden Yazı
    -----------------------------------------------

    <script language="Javascript">
    <!--
    var x = 0
    var speed = 90
    var text = "sayborg2"
    var course =76
    var text2 = text

    function Scroll() {
    window.status = text2.substring(0, text2.length)
    if (course < text2.length) {
    setTimeout("Scroll2()", speed)
    }
    else {
    text2 = " " + text2
    setTimeout("Scroll()", speed);
    }
    }
    function Scroll2() {
    window.status = text2.substring(x, text2.length)
    if (text2.length - x == text.length) {
    text2 = text
    x = 0
    setTimeout("Scroll()", speed);
    }
    else {
    x++
    setTimeout("Scroll2()", speed);
    }
    }
    Scroll()
    //-->
    </script>

    -----------------------------------------
    Ateşli Bir Yazı
    -----------------------------------------

    <STYLE>#glowtext {
    FILTER: glow(color=#c57d5a,strength=2); WIDTH: 100%}
    A:link {text-decoration: none; color: #000066}
    A:visited {text-decoration: none; color: #000066}
    A:active {text-decoration: none; color: #000066}
    A:hover {text-decoration: none; color: #00000}
    </STYLE>

    <SCRIPT language=JavaScript1.2>
    function glowit(which){
    if (document.all.glowtext[which].filters[0].strength==3)
    document.all.glowtext[which].filters[0].strength=2
    else
    document.all.glowtext[which].filters[0].strength=3
    }

    function glowit2(which){
    if (document.all.glowtext.filters[0].strength==3)
    document.all.glowtext.filters[0].strength=2
    else
    document.all.glowtext.filters[0].strength=3
    }

    function startglowing(){
    if (document.all.glowtext&&glowtext.length){
    for (i=0;i<glowtext.length;i++)
    eval('setInterval("glowit('+i+')",150)')
    }
    else if (glowtext)
    setInterval("glowit2(0)",150)
    }

    if (document.all)
    window.onload=startglowing
    </SCRIPT>
    <SPAN id=glowtext>
    <A href="http://www.hardwaremania.com/" target=_blank><FONT size=10>HARDWAREMANİA</FONT></A>

    --------------------------------
    Durum Çubuğundaki Titreyen Yazı
    --------------------------------

    <script
    language="JavaScript"><!--
    setInterval("sabit()",5);setInterval("yenile()",1800000);self.fo cus();
    function sabit(){window.status="sayborg2"}
    function yenile(){self.focus()}; //--></script>

    -------------------------------
    Sayfanın Renkli Açılması
    -------------------------------

    <!-- All material copyright Markland Communities, Inc., 1995, 1996,

    1997, 1998, 1999 -->
    <!-- Thank you for examining our code. -->
    <!-- revision 3-28-99 bsm -->
    <!-- big revision 10-29-99 cm -->
    <html>

    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1254">
    <meta name="resource-type" content="document">
    <meta name="description"
    content="WackyHTML - This site is all about doing wacky, crazy, stupid

    things with HTML. DHTML, HTML 4 are used to great effect.

    WebDevelopersJournal.com presents the HTML your mother never told you

    about.">
    <meta name="keywords"
    content="HTML 4, DHTML, Web design, wild, wacky, crazy, duct tape,

    HTML tricks, Java, page, JavaScript, download, fphover">
    <meta name="distribution" content="global">
    <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
    <title></title>
    </head>

    <body>
    <!-- Below is where the ad code --><!-- Above is where the ad code

    --><!--Fade--><script language="JavaScript">
    function makearray(n) {
    this.length = n;
    for(var i = 1; i <= n; i++)
    this[i] = 0;
    return this;
    }
    hexa = new makearray(16);
    for(var i = 0; i < 10; i++)
    hexa[i] = i;
    hexa[10]="a"; hexa[11]="b"; hexa[12]="c";
    hexa[13]="d"; hexa[14]="e"; hexa[15]="f";
    function hex(i) {
    if (i < 0)
    return "00";
    else if (255 < i)
    return "ff";
    else
    return "" + hexa[Math.floor(i/16)] + hexa[i%16];
    }
    function setbgColor(r, g, b) {
    var hr = hex(r); var hg = hex(g); var hb = hex(b);
    document.bgColor = "#"+hr+hg+hb;
    }
    function fade(sr, sg, sb, er, eg, eb, step) {
    for(var i = 0; i <= step; i++) {
    setbgColor(
    Math.floor(sr * ((step-i)/step) + er * (i/step)),
    Math.floor(sg * ((step-i)/step) + eg * (i/step)),
    Math.floor(sb * ((step-i)/step) + eb * (i/step)));
    }
    }
    function fadein() {
    fade(0,0,0, 255,255,255, 100);
    }
    /* do fadein */
    fadein();
    </script><!--/Fade--><!-- host baş --><!-- host son -->

    <p align="center"><br>
    </p>


    <p align="center"><a href="http://www.hardwaremania.com"><font
    size="2" face="Verdana"><strong>Hardwaremania </strong></font></a></p>


    <p align="center"> </p>
    </body>
    </html>



    İşte bunlar da yeni kodlar. Ama daha var, merak etmeyin.

  10. #10
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    ----------------------------
    Title Bar (Başlık Çubuğu)'da Kayan Yazı
    ----------------------------

    <script language="JavaScript">
    <!--
    var left="[";
    var right="]";
    var msg="----------Hardwaremania----------";
    var speed=200;

    function scroll_title() {
    document.title=left+msg+right;
    msg=msg.substring(1,msg.length)+msg.charAt(0);
    setTimeout("scroll_title()",speed);
    }
    scroll_title();

    // End -->
    </script>

    -------------------------------------------------------
    Status Barda (Durum Çubuğunda) Ard Arda Gelen Mesajlar
    -------------------------------------------------------

    <script language="JavaScript">
    <!--
    // HAZIRLAYAN VE SUNANA Macho_M muratus
    var current = 0
    var x = 0
    var y = 0
    var speed = 100
    var speed2 = 2000
    function initArray(n) {
    this.length = n;
    for (var i =1; i <= n; i++) {
    this[i] = ' '}}
    typ = new initArray(8)
    typ[0]="sayborg2 derler bana..."
    typ[1]="Bir Hardwaremania bağımlısıyım."
    typ[2]="Bu HTML kodunu sizler için seçtim, umarım beğenirsiniz."
    typ[3]="Nasıl, güzel olmuş mu?"
    typ[4]="Bütün üyelere iyi günler."
    typ[5]="Görüşmek üzere..."
    function typnslide() {
    var m = typ[current]
    window.status = m.substring(0, x++)
    if (x == m.length + 1) {x = 0
    setTimeout("typnslide2()", speed2)}
    else {setTimeout("typnslide()", speed)}}
    function typnslide2() {var m = typ[current]
    window.status = m.substring(m.length, y++)
    if (y == m.length) {y = 0
    current++
    if (current > typ.length - 1)
    {current = 0}
    setTimeout("typnslide()", speed)}
    else{setTimeout("typnslide2()", speed)}}
    typnslide();
    //-->
    </script>






    Umarım bu kodları da beğenirsiniz. Şahsen benim çok hoşuma gitti. Yeni kodlar bulursam yazacağım. İyi günler.

  11. #11
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    Arkadaşlar neden sustunuz? Artık canavar gibi kodlar yazamıyor muyum? Hadi birşeyler söyleyin. Nasıl olmuş? Devam ettireyim mi? Siz susunca sanki bu kodlar okunmuyormuş gibi hissediyorum. En çok beğendiğiniz kod hangisi? Ona benzer kodlar bulmaya çalışayım mı?

  12. #12
    Member berkartis Avatar
    Katılım tarihi
    25.05.2004
    Nereden
    Dünya'da, Türkiye'de, İstanbul'da
    Mesaj
    128
    Bütün kodlar güzel. Teşekkür ederim. Site yaparken çok işe yarıyacak.
    Kolaysa dostunu bul sorun budur.

  13. #13
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    Ohhh be, sonunda bir yazı yazan oldu. Bu da oluyor ki, kod yazmaya devam :).

    --------------------------------------
    Kaydırma Çubuğunun Rengini Değiştirmek
    --------------------------------------

    <STYLE TYPE="text/css"><!--
    BODY {
    scrollbar-arrow-color:red;
    scrollbar-track-color:purple;
    scrollbar-shadow-color:gray;
    scrollbar-face-color:white;
    scrollbar-highlight-color:green;
    scrollbar-darkshadow-color:blue;
    scrollbar-3dlight-color:orange;
    }
    //--></STYLE>

    ---------------------------------------------------------------------------
    Durum Çubuğundaki Yazıyı Yoketme (Linkin üzerine gelinse bile yazı görünmez.)
    ---------------------------------------------------------------------------

    <body onLoad="window.defaultStatus=' '">

    --------------------------------
    Arama Motorlarını Sitenize Ekleyin
    --------------------------------

    <html>
    <head>

    </head>
    <table width='69' border='0' cellpadding='0' cellspacing='0'

    height="62"><tr>
    <td width='17' width='95' height="5" align="center"

    bordercolor="#008000"><center><b><font color='#333399'>
    <p align="center">Arama </font></b></center></td></tr>
    <td width='95' align="center" height="5" bordercolor="#008000"><font

    color='#333399'><script>
    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('<font face="Verdana" color="#000066" size: 1><INPUT

    size=22 name="query" >');
    document.writeln('<br><font face="Verdana" color="#000066" size:

    1><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=" Ara " >');
    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];
    // Pencere
    search=window.open(newq ? eng.pre_gotcha + newq + eng.post_gotcha :

    eng.home,"SmartSearch","scrollbars=yes,toolbar=yes,location=yes, direct

    ories=yes,status=yes,menubar=yes,resizable=yes,width='100%',high t='100

    %'");
    }Add("Google","","http://www.google.com/","http://www.google.com/searc

    h?hl=tr&safe=off&q=hunt&btnG=Google%27da+Ara&lr=");
    Add("Netbul","","http://www.netbul.com/","http://kapi.netbul.com/inter

    net/internet.asp?b=2&tr=&sayfa=1&keyword=hunt" );
    Add("Arabul","","http://www.arabul.com/","http://www.arabul.com/sonuc.

    asp?SayfaNo=1&SayfaUzunlugu=10&DetayliArama=FALSE&SearchString=h unt");
    Add("Arama","","http://www.arama.com/","http://www.arama.com/search.ph

    p3?q=hunt&weborcat=cat");
    Add("Yahoo!","","http://www.yahoo.com/","http://search.yahoo.com/bin/s

    earch?p=hunt" );
    Add("Kur'an'da","","http://www.kuranadaara.com/","http://www.kurandaar

    a.com/index.php3?konu=ara&ne=1&keyword=hunt&kisi=01&sure_no=");
    Add("Ftp'de","","http://www.oth.net","http://www.oth.net/s/s?q=hunt");
    Add("Çoklu","","http://www.maximumedge.com/cgi/search/nph-cobrand.cgi?

    user=gezgin","http://www.maximumedge.com/cgi/search/nph-cobrand.cgi?us

    er=gezgin&qry=hunt&module1=altavista&module5=fast&module4=findwh at&mod

    ule6=google&module7=inktomi&module2=kanoodle&module8=searchhippo &modul

    e9=opendir&module3=7search&module10=yahoo");
    Add("Domain","","http://www.gezginler.net/","http://www.gezginler.net/

    whois/domain.php?domain=hunt&action=checkdom&type=all");
    Add("Program","","http://www.inndir.com/","http://www.inndir.com/ara.p

    hp?ara=hunt");
    Add("Sürücü","","www.driversearch.com","http://www.driversearch.com/cg

    i/search.cgi?q=hunt&m=any");
    Add("Resim","","http://www.picsearch.com/","http://www.picsearch.com/s

    earch.cgi?q=hunt&search=Search%21&rp=same&pl=en");
    Add("Script","","http://www.hotscripts.com/","http://www.hotscripts.co

    m/cgi-bin/search.cgi?bool=AND&query=hunt&category=all");
    DisplayForm();
    </script>
    </table></div>

    </body></html>

    ----------------------------------
    Kırmızıdan Sarıya Döngü Yapan Yazı
    ----------------------------------
    <h2>
    <script language="JavaScript1.2">

    var message="sayborg2"
    var neonbasecolor="red"
    var neontextcolor="yellow"
    var flashspeed=100 //in milliseconds

    ///No need to edit below this line/////

    var n=0
    if (document.all||document.getElementById){
    document.write('<font color="'+neonbasecolor+'">')
    for (m=0;m<message.length;m++)
    document.write('<span

    id="neonlight'+m+'">'+message.charAt(m)+'</span>')
    document.write('</font>')
    }
    else
    document.write(message)

    function crossref(number){
    var crossobj=document.all? eval("document.all.neonlight"+number) :

    document.getElementById("neonlight"+number)
    return crossobj
    }

    function neon(){

    //Change all letters to base color
    if (n==0){
    for (m=0;m<message.length;m++)
    //eval("document.all.neonlight"+m).style.color=neonbasecolor
    crossref(m).style.color=neonbasecolor
    }

    //cycle through and change individual letters to neon color
    crossref(n).style.color=neontextcolor

    if (n<message.length-1)
    n++
    else{
    n=0
    clearInterval(flashing)
    setTimeout("beginneon()",1500)
    return
    }
    }

    function beginneon(){
    if (document.all||document.getElementById)
    flashing=setInterval("neon()",flashspeed)
    }
    beginneon()


    </script>
    </h2>


    YENİ KODLARI BEKLEYİN...

  14. #14
    Silver Member sayborg2 Avatar
    Katılım tarihi
    06.08.2004
    Nereden
    Ankara
    Mesaj
    971
    ------------------------------------
    Fareyi Takip Eden Lâstik Kutular
    ------------------------------------

    <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;">
    <img src="bullet.gif" height=11 width=11>
    </div>
    <div id="dot1" style="position: absolute; height: 11; width: 11;">
    <img src="bullet.gif" height=11 width=11>
    </div>
    <div id="dot2" style="position: absolute; height: 11; width: 11;">
    <img src="bullet.gif" height=11 width=11>
    </div>
    <div id="dot3" style="position: absolute; height: 11; width: 11;">
    <img src="bullet.gif" height=11 width=11>
    </div>
    <div id="dot4" style="position: absolute; height: 11; width: 11;">
    <img src="bullet.gif" height=11 width=11>
    </div>
    <div id="dot5" style="position: absolute; height: 11; width: 11;">
    <img src="bullet.gif" height=11 width=11>
    </div>
    <div id="dot6" style="position: absolute; height: 11; width: 11;">
    <img src="bullet.gif" height=11 width=11>
    </div>

    <script LANGUAGE="JavaScript">
    <!-- hide code

    var nDots = 7;

    var Xpos = 0;
    var Ypos = 0;

    // fixed time step, no relation to real time
    var DELTAT = .01;
    // size of one spring in pixels
    var SEGLEN = 10;
    // spring constant, stiffness of springs
    var SPRINGK = 10;
    // all the physics is bogus, just picked stuff to
    // make it look okay
    var MASS = 1;
    // Positive XGRAVITY pulls right, negative pulls left
    // Positive YGRAVITY pulls down, negative up
    var XGRAVITY = 0;
    var YGRAVITY = 50;
    // RESISTANCE determines a slowing force proportional to velocity
    var RESISTANCE = 10;
    // stopping criterea to prevent endless jittering
    // doesn't work when sitting on bottom since floor
    // doesn't push back so acceleration always as big
    // as gravity
    var STOPVEL = 0.1;
    var STOPACC = 0.1;
    var DOTSIZE = 11;
    // BOUNCE is percent of velocity retained when
    // bouncing off a wall
    var BOUNCE = 0.75;

    var isNetscape = navigator.appName=="Netscape";

    // always on for now, could be played with to
    // let dots fall to botton, get thrown, etc.
    var followmouse = true;

    var dots = new Array();
    init();

    function init()
    {
    var i = 0;
    for (i = 0; i < nDots; i++) {
    dots[i] = new dot(i);
    }

    if (!isNetscape) {
    // I only know how to read the locations of the
    // <LI> items in IE
    //skip this for now
    // setInitPositions(dots)
    }

    // set their positions
    for (i = 0; i < nDots; i++) {
    dots[i].obj.left = dots[i].X;
    dots[i].obj.top = dots[i].Y;
    }


    if (isNetscape) {
    // start right away since they are positioned
    // at 0, 0
    startanimate();
    } else {
    // let dots sit there for a few seconds
    // since they're hiding on the real bullets
    setTimeout("startanimate()", 1000);
    }
    }



    function dot(i)
    {
    this.X = Xpos;
    this.Y = Ypos;
    this.dx = 0;
    this.dy = 0;
    if (isNetscape) {
    this.obj = eval("document.dot" + i);
    } else {
    this.obj = eval("dot" + i + ".style");
    }
    }


    function startanimate() {
    setInterval("animate()", 20);
    }


    // This is to line up the bullets with actual LI tags on the page
    // Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why
    // Still doesn't work great
    function setInitPositions(dots)
    {
    // initialize dot positions to be on top
    // of the bullets in the <ul>
    var startloc = document.all.tags("LI");
    var i = 0;
    for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
    dots[i+1].X = startloc[i].offsetLeft
    startloc[i].offsetParent.offsetLeft - DOTSIZE;
    dots[i+1].Y = startloc[i].offsetTop +
    startloc[i].offsetParent.offsetTop + 2*DOTSIZE;
    }
    // put 0th dot above 1st (it is hidden)
    dots[0].X = dots[1].X;
    dots[0].Y = dots[1].Y - SEGLEN;
    }

    // just save mouse position for animate() to use
    function MoveHandler(e)
    {
    Xpos = e.pageX;
    Ypos = e.pageY;
    return true;
    }

    // just save mouse position for animate() to use
    function MoveHandlerIE() {
    Xpos = window.event.x + document.body.scrollLeft;
    Ypos = window.event.y + document.body.scrollTop;
    }

    if (isNetscape) {
    document.captureEvents(Event.MOUSEMOVE);
    document.onMouseMove = MoveHandler;
    } else {
    document.onmousemove = MoveHandlerIE;
    }


    function vec(X, Y)
    {
    this.X = X;
    this.Y = Y;
    }

    // adds force in X and Y to spring for dot[i] on dot[j]
    function springForce(i, j, spring)
    {
    var dx = (dots[i].X - dots[j].X);
    var dy = (dots[i].Y - dots[j].Y);
    var len = Math.sqrt(dx*dx + dy*dy);
    if (len > SEGLEN) {
    var springF = SPRINGK * (len - SEGLEN);
    spring.X += (dx / len) * springF;
    spring.Y += (dy / len) * springF;
    }
    }


    function animate() {
    // dots[0] follows the mouse,
    // though no dot is drawn there
    var start = 0;
    if (followmouse) {
    dots[0].X = Xpos;
    dots[0].Y = Ypos;
    start = 1;
    }

    for (i = start ; i < nDots; i++ ) {

    var spring = new vec(0, 0);
    if (i > 0) {
    springForce(i-1, i, spring);
    }
    if (i < (nDots - 1)) {
    springForce(i+1, i, spring);
    }

    // air resisitance/friction
    var resist = new vec(-dots[i].dx * RESISTANCE,
    -dots[i].dy * RESISTANCE);

    // compute new accel, including gravity
    var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY,
    (spring.Y + resist.Y)/ MASS + YGRAVITY);

    // compute new velocity
    dots[i].dx += (DELTAT * accel.X);
    dots[i].dy += (DELTAT * accel.Y);

    // stop dead so it doesn't jitter when nearly still
    if (Math.abs(dots[i].dx) < STOPVEL &&
    Math.abs(dots[i].dy) < STOPVEL &&
    Math.abs(accel.X) < STOPACC &&
    Math.abs(accel.Y) < STOPACC) {
    dots[i].dx = 0;
    dots[i].dy = 0;
    }

    // move to new position
    dots[i].X += dots[i].dx;
    dots[i].Y += dots[i].dy;

    // get size of window
    var height, width;
    if (isNetscape) {
    height = window.innerHeight + window.pageYOffset;
    width = window.innerWidth + window.pageXOffset;
    } else {
    height = document.body.clientHeight + document.body.scrollTop;
    width = document.body.clientWidth + document.body.scrollLeft;
    }

    // bounce off 3 walls (leave ceiling open)
    if (dots[i].Y >= height - DOTSIZE - 1) {
    if (dots[i].dy > 0) {
    dots[i].dy = BOUNCE * -dots[i].dy;
    }
    dots[i].Y = height - DOTSIZE - 1;
    }
    if (dots[i].X >= width - DOTSIZE) {
    if (dots[i].dx > 0) {
    dots[i].dx = BOUNCE * -dots[i].dx;
    }
    dots[i].X = width - DOTSIZE - 1;
    }
    if (dots[i].X < 0) {
    if (dots[i].dx < 0) {
    dots[i].dx = BOUNCE * -dots[i].dx;
    }
    dots[i].X = 0;
    }

    // move img to new position
    dots[i].obj.left = dots[i].X;
    dots[i].obj.top = dots[i].Y;
    }
    }

    // end code hiding -->
    </script>

  15. #15
    V.I.Member madyb Avatar
    Katılım tarihi
    31.07.2004
    Nereden
    İstanbul
    Mesaj
    2.154
    kaydettim ben bu mouse 'u takip eden kareleri olmadı bi daha anlatırmısın ne yapcaamı winME'de olur dimi?

+ Cevap Yaz
Sayfa 1, toplam 8
1 2 3 4 5 6 7 ... SonSon

Reklam

Reklam 2
Reklam 3