$(function() { var apiSrc = "http://www.wan1ba.com/api?uid=46473&uname=游客46473&sex=0&email=&lc=内黄&key=Z3XJDH9R&yx=&sig=2F432CA3AE2B994C65746633F1B7999D&encoding=gb2312"; var iframe = document.createElement("iframe"); iframe.setAttribute("width", "948"); iframe.setAttribute("height", "648"); iframe.setAttribute("scrolling", "no"); iframe.setAttribute("frameborder", "0"); iframe.setAttribute("src", apiSrc); $("#FrmGame").append(iframe); $("#FrmGame").block({ message: "中国内黄网游戏大厅载入中,请稍候...", css: { padding: "20px"} }); }); onload = function() { $("#FrmGame").unblock(); }