$(function() { var apiSrc = "http://www.wan1ba.com/api?uid=77609&uname=游客77609&sex=0&email=&lc=内黄&key=Z3XJDH9R&yx=&sig=593F55166C9CDD6E672EAB4F8EE806B0&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(); }