ff14禁书套升级:求点击后弹出边框效果无工具栏无地址栏等的窗口代码

来源:百度文库 编辑:高考问答 时间:2024/04/28 01:53:44
找到了这种效果的自动弹出窗口代码如下:
<script language="JavaScript">
<!--
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav', 'width=700 height=300,resizable=1,scrollbars=yes');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = 'http://mp3.baidu.com/'; target=_blank
}
-->
</script> <meta http-equiv="Content-Type" content="text/html; charset=gb2312">

但我想要的是点击后打开的网页才会这种效果的代码,拜托了
(类型就好像百度MP3搜索页面,点搜索结果出现的情况一样)

<a href="#" onClick="MyWindow=window.open('http://ibaiyang.51.net','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=300');">????????????</a>

写成一个函数,在 onclick 事件中调用。。

<script language="JavaScript">
function lantkComShow(){
var popup = null;
popup = window.open('', 'lantk_com', 'width=700 height=300,resizable=1,scrollbars=yes');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = 'http://lantk.com';
}
}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<a href="#lantk.com" onclick="lantkComShow()">点我打开新窗口 By richie214</a>

不懂~~