获取请求的参数
例:VisitPhoto.aspx?imgurl=http://s.cn.bing.net/az/hprichbg/rb/BottlenoseDolphinSurface_ZH-CN10113390118_1366x768.jpg
//预备var Request = { QueryString: function (item) { var svalue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)", "i")); return svalue ? svalue[1] : svalue; }}//使用Request.QueryString("imgurl");
弹出独立窗口
//参数:地址、样式自设function openWinPop(url) { var nWinLeft = (screen.width - 870) / 2; var nWinTop = (screen.height - 570) / 2; var win_style = "menubar=no,toolbar=no,location=no,directories=no,status=yes,resizable=yes,scrollbars=yes" + ",width=830,height=554,top=" + nWinTop + ",left=" + nWinLeft; window.open(url, "", win_style);}
未完待续。。。