function openwinframe(_url,_width,_height,_text) { $.layer({ type: 2, border: [0], title: _text, iframe: {src : _url}, area: [_width+'px', _height+'px'] }); } function openwinframenofix(_url,_width,_height,_text) { $.layer({ type: 2, shade: [0], fix: false, title: _text, maxmin: true, iframe: {src : _url}, area: [_width+'px', _height+'px'], close: function(index){ //layer.msg('您获得了子窗口标记:' + layer.getchildframe('#name', index).val(),3,1); } }); } function openwinframefullscreen(_url,_width,_height) { $.layer({ type: 2, title: false, area: [_width +'px', _height+'px'], fix: false, shadeclose: true, closebtn: false, offset: [($(window).height() - _height)/2+'px', ''], //上下垂直居中 border: [0], shade : [0.8, '#000'], iframe: {src: _url} }); } function openwinplayvod(var1,_width,_height) { var _url = 'vod.html?vodurl='+encodeuricomponent(var1); openwinframefullscreen(_url,_width,_height); } function openwinplayvod2(var1,_width,_height) { var _url = 'vod.html?vodurl='+encodeuricomponent(var1); openwinframenofix(_url,_width,_height); } function openwinpcollectimage(var1) { var _url = 'vod.html?pcollecttypeid='+var1; //openwinframefullscreen(_url,_width,_height); $.layer({ type: 2, title: false, area: ['80%', '80%'], fix: false, shadeclose: true, closebtn: false, offset: [($(window).height() - $(window).height()*0.8)/2+'px', ''], //上下垂直居中 border: [0], shade : [0.8, '#000'], iframe: {src: _url} }); } function openwinframefullscreenper(url,_width,_height) { var _url = url; $.layer({ type: 2, title: false, area: [_width, _height], fix: false, shadeclose: true, closebtn: false, offset: [($(window).height() - $(window).height()*0.8)/2+'px', ''], //上下垂直居中 border: [0], shade : [0.8, '#000'], iframe: {src: _url} }); } function irequest(strparame) { var args = new object( ); var query = location.search.substring(1); var pairs = query.split("&"); // break at ampersand for(var i = 0; i < pairs.length; i++) { var pos = pairs[i].indexof('='); if (pos == -1) continue; var argname = pairs[i].substring(0,pos); var value = pairs[i].substring(pos+1); value = decodeuricomponent(value); args[argname] = value; } return args[strparame]; } //取值 function rr(str) { var ss = irequest(str); if((ss==undefined)||(ss=='undefined')) { ss = ''; } return ss; } var vodurl=''; function openwindow(_url,_width,_height,_title,_scroll) { openwinframe(_url, _width, _height, _title ); }