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