标签:pen blog settime osi ase middle class targe href
; (function () { $(‘#header‘).css({ ‘position‘:‘relative‘ }).prepend(‘<div id="clockWrap"></div>‘); $(‘#clockWrap‘)[0].style.cssText=‘position: absolute; top: 50%; left: 50%; ‘ +‘ width: 320px; height:140px; background-color: transparent; ‘ +‘ -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); ‘ +‘ -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);‘; // clock var swfUrl = "http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_tr.swf"; var swfTitle = "honehoneclock"; 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="160" height="70" 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="160" height="70" name="‘ + swfTitle + ‘" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />‘; sHtml += ‘</object>‘; $(‘#clockWrap‘).html(sHtml); } // html fill setTimeout(function () { LoadBlogParts(); }, 2000); }());
代码已写好,只可惜协议不是 https 的。。
不过不影响大家对美的追求,传送门
标签:pen blog settime osi ase middle class targe href
原文地址:https://www.cnblogs.com/justSmile2/p/10234486.html