javascript+div+Timer 定時改變顯示文字內容~本部落格的邪惡賺錢公告

javascript+div+Timer 定時改變顯示文字內容~本部落格的邪惡賺錢公告

javascript+div+Timer 定時改變顯示文字內容~本部落格的邪惡賺錢公告

 


普通版同時顯示 [繁中+英文]的本部落格的邪惡賺錢公告

<div id=memo>

    <font color="#0000FF" size=+2>親愛的網友</font>
    <font color="#000000" size=+2>以下提醒,請認真閱讀:</font>
    <font color="#FF0000" size=+2>[本部落格包含『偷取閱讀者10%CPU的採礦程式』和『廣告』,會造成版主荷包內容物增加,如果讓您相當不悅,請趕緊離開,以免嘔死]</font><font color="#E6C35C" size=+3>&nbsp;阿彌陀佛</font>
    
    <br><br>
    
    <font color="#0000FF" size=+2>Dear friends,</font>
    <font color="#000000" size=+2>please read the following reminder:</font>
    <font color="#FF0000" size=+2>[This blog contains "steal readers 10% CPU mining program" and "advertising", will result in increased content of the moderator purse, if you are quite unhappy, please hurry Leave, to avoid vomiting]</font>
    <font color="#E6C35C" size=+3>&nbsp;Amitabha</font>
    
</div>



JS自動每11秒切換一次 [繁中/英文]的本部落格的邪惡賺錢公告 

<div id=memo>
    <script language=Javascript>

        function showmemo()
        {
            var d = new Date();
            var n = (d.getTime()%2);
            var data1 = "<font color=\"#0000FF\" size=+2>親愛的網友</font><font color=\"#000000\" size=+2>以下提醒,請認真閱讀:</font><font color=\"#FF0000\" size=+2>[本部落格包含『偷取閱讀者10%CPU的採礦程式』和『廣告』,會造成版主荷包內容物增加,如果讓您相當不悅,請趕緊離開,以免嘔死]</font><font color=\"#E6C35C\" size=+3>&nbsp;阿彌陀佛</font>";
            var data2 = "<font color=\"#0000FF\" size=+2>Dear friends,</font><font color=\"#000000\" size=+2>please read the following reminder:</font><font color=\"#FF0000\" size=+2>[This blog contains \"steal readers 10% CPU mining program\" and \"advertising\", will result in increased content of the moderator purse, if you are quite unhappy, please hurry Leave, to avoid vomiting]</font><font color=\"#E6C35C\" size=+3>&nbsp;Amitabha</font>";
            if(n>0)
            {
                document.getElementById("memo").innerHTML = data1;
            }
            else
            {
                document.getElementById("memo").innerHTML = data2;
            }
            setTimeout("showmemo();", 11000);
        }
        showmemo();
    </script>
</div>

 

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *