在某个博客看到了个有趣的人形时钟,挺喜欢的,根据系统时间来变形。CSDN也要积分,网上的也都有可以作为wordpress的html小工具或者其他网站的小插件,觉得挺好玩的,分享过来:

JS:

var swfUrl = "swf地址";
var swfTitle = "honehoneclock";
LoadBlogParts();
function LoadBlogParts(){
        var sUrl = swfUrl;
        var sHtml = "";
        sHtml += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="220" height="100" id="' + swfTitle + '" align="middle">';
        sHtml += '<param name="allowScriptAccess" value="always" />';
        sHtml += '<param name="movie" value="' + sUrl + '" />';
        sHtml += '<param name="quality" value="high" />';
        sHtml += '<param name="bgcolor" value="#ffffff" />';
        sHtml += '<param name="wmode" value="transparent" />';
        sHtml += '<embed wmode="transparent" src="' + sUrl + '" quality="high" bgcolor="#ffffff" width="220" height="100" name="' + swfTitle + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
        sHtml += '</object>';        
        document.write(sHtml);
}

Html:

<html>
<body>
<script charset="Shift_JIS" src="js地址"></script>
</body>
</html>
 效果图:
给你的wordpress站点添加一个有趣的人形时钟!

只有兴趣使快乐真实