1、实际效果
2、示例代码
<div style="float:right;" id="hub_iframe"></div>
<script type="text/javascript">
function async_load() {
i.scrolling = "no";
i.frameborder = "0";
i.border = "0";
i.setAttribute("frameborder", "0", 0);
i.width = "100px";
i.height = "20px";
document.getElementById("hub_iframe").appendChild(i);
}
if (window.addEventListener) {
window.addEventListener("load", async_load, false);}
else if (window.attachEvent) {
window.attachEvent("onload", async_load);}
else {
window.onload = async_load;}
</script>
<script>
! function() {
function get_attribute(node, attr, default_value) {
return node.getAttribute(attr) || default_value;
}