首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

为什么不能弹出窗口?该怎么处理

2012-03-07 
为什么不能弹出窗口?function edit(){var mystrleft:(document.body.scrollWidth-250)/2,top:(document.

为什么不能弹出窗口?
function edit(){
var mystr="left:(document.body.scrollWidth-250)/2,top:(document.body.scrollHeight-125)/2, width:250, height:125,url: "folk.aspx"";
var edit = new Window("edit", {"+mystr+"});
}
为什么不能弹出窗口,而用
function edit(){
var edit =new Window("edit", {left:(document.body.scrollWidth-250)/2,top:(document.body.scrollHeight-125)/2, width:250, height:125,url: "folk.aspx"});}
则可以,谢谢各位大哥


[解决办法]
偶不会那样的语法。只会window.open,而且测试你那个代码也不行,你那段代码要在.net运行才行的?
[解决办法]
看不懂
[解决办法]
function edit(){ 
var mystr="{left:(document.body.scrollWidth-250)/2,top:(document.body.scrollHeight-125)/2, width:250, height:125,url: "folk.aspx"}"; 
var edit = new Window("edit", mystr); 
}

热点排行