on(release){
getURL("javascript:void(window.open('manage/getnews.asp?id="+www+"','','height=600, width=800, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=n o, status=no'))")
}
不晓得这样可以不
我是拿这个来给ASP页面赋值然后打开对应数据库ID的信息
补充一些:
以下是我朋友给我的方法
不知道对你有没有帮助
胡伟 18:49:57
按钮上加上on (release) {geturl ("xxx.htm");}
新建文件xxx.htm
body内加入
<!-- HHCtrl Object -->
<object id="CloseWindow" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
<script>
var w=620,h=355;
var xpos=0,ypos=0,targetx=(screen.width-w)/2,targety=(screen.height-h)/2;
function go()
{
if (targetx-xpos>1)
{xpos=(targetx+9*xpos)/10;
popup.moveTo(xpos,targety);}
else
{clearTimeout(mm);
this.focus();
CloseWindow.Click();}
mm=setTimeout("go()",10);
}
self.moveTo(-2222,-2222);
var appName=navigator.appName;
//判断不是Netscape,Opera或Tencent Explorer
if (appName.indexOf(’Microsoft’)!=-1 && document.body.clientTop==2 && window.external.x!=’Wibble’)
{
var popup=window.open(’bbb.htm’,’’,’fullscreen=1’);
popup.moveTo(-1800,targety);
popup.resizeTo(w,h);
setTimeout("go()",500);
}
else
{alert("请使用IE5.0或其以上版本浏览,谢谢!");}
</script>
新建bbb.htm
<head>内加入<script>
var w=640,h=420;
var xstep=0,targetx=(screen.width-w)/2,targety=(screen.height-h)/2;
function exit()
{
if(xstep+targetx<screen.width)
{xstep=0.1+xstep*2;
window.moveTo(targetx+xstep,targety);}
else
{clearTimeout(mo);
window.close();}
mo=setTimeout("exit()",10);
}
</script>
bbb.htm即为ie无边窗口
[ 本帖最后由 Lucifinil 于 2008-5-21 19:37 编辑 ]