利用JS自動瀏覽部落格增加點擊率

<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8">
    <title>Js控制 iFrame 切換加載網址</title>
    <script language="javascript">
        var count=0
        function jumpto(inputurl)
        {
            if (document.getElementById&&displaymode==0)
                document.getElementById("external").src=inputurl
            else if (document.all&&displaymode==0)
                document.all.external.src=inputurl
            else
            {
                if (!window.win2||win2.closed)
                    win2=window.open(inputurl)
                else
                {
                    win2.location=inputurl
                    win2.focus()
                }
            }
        }
        function Run()
        {
            count++;
            if(count>6)
            {
                count=0;
            }
            switch(count)
            {
            case 0:
                jumpto('http://yourname.pixnet.net/blog/5');
                break;
            case 1:
                jumpto('http://yourname.pixnet.net/blog/15');
                break;
            case 2:
                jumpto('http://yourname.pixnet.net/blog/25');
                break;
            case 3:
                jumpto('http://yourname.pixnet.net/blog/35');
                break;
            case 4:
                jumpto('http://yourname.pixnet.net/blog/45');
                break;
            case 5:
                jumpto('http://yourname.pixnet.net/blog/55');
                break;
            case 6:
                jumpto('http://yourname.pixnet.net/blog/65');
                break;                    
            }
            setTimeout("Run();", 10000);
        }
        function Timer()
        {
            setTimeout("Run();", 10000);
        }        
    </script>
    </head>
    <body  onload="Timer()">
        <script language="javascript">
            <!--
            var displaymode=0
            var iframecode='<iframe id="external"
style="width:95%;height:95%" src="http://yourname.pixnet.net/blog/"></iframe>'
            if (displaymode==0)
                document.write(iframecode)

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

arrow
arrow

    Johnson峰 發表在 痞客邦 留言(0) 人氣()