各位大侠,如何让点击链接后,弹出的页面没有工具、菜单、地址栏,谢谢! window.open('xxx.htm','newwin','toolbars=no,menubars=no') 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.moon-soft.com/book/javascripths.htm有详细的教程:) 我找了些类似windows.open的方法,但不知道怎么用在我那段代码里面,好心人,帮我看看! function OpenS(){document.open('index2.asp','blank','fullscreen=yes,channelmode=yes,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,top=0,false');}完整的open参数~一般在一个东西的 onClick事件里面 调用函数~只是方法的其中之一 我很菜,也很笨,各位能不能说明白些啊,那两个链接在document.write()里面,要怎么弄啊! 你这样用,它会清空你当前的文档的,document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br> <a target=blank href=http://www.sohu.com>搜狐</a><br> <a target=blank href=http://www.sina.com>新浪</a></layer>")可以这样吧,--------------------------js.js function ow(u){ window.open(u,'win','width=100,height=100,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes');}------------------------document.write("<script" + " src='js.js'></script" + ">");document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br> <a target=blank href=javascript:ow('http://www.sohu.com')>搜狐</a><br> qidizi(qidizi) 我照你的做了,但是好像不行,点链接后弹出的网页显示“找不到服务器”地址栏显示是:javascript:ow('http://www.sohu.com')我找不到原因。请再指点指点。 xxx.htm======================================<script language ='javascript'><!--function window.onload(){ document.write("<script" + " src='ow.js'></script" + ">"); document.write("<a href=javascript:ow('http://www.sohu.com')>搜狐</a><br>" + "<a href=javascript:ow('http://www.f.com')>搜狐</a><br>")}//--></script>======================================ow.js===================function ow(u){ window.open(u,'win','width=100,height=100,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes');} 我将你的代码改了一下,已经测试过了,好用的!!你试一下吧!!!<SCRIPT LANGUAGE=javascript>if (navigator.appName == "Netscape"){ document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br><a href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')>搜狐</a><br> <a href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')>新浪</a></layer>")qingzuiload()}else{ document.write("<div id=qingzui style='position: absolute;width:70;top:300;hidden: visible;z-index: 1'><font color='red' style='font-size: 12px;'>友情链接:</font><br><a href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>搜狐</font></a><br><a href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>新浪</font></a></div>" +"<div id=qingzui2 style='position: absolute;visibility: hidden;z-index: 10'> <font color='red' style='font-size: 12px;'>友情链接:</font><br><a href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>搜狐</font></a><br><a href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')>新浪</font></a></div>"); qingzuiload()}//--></SCRIPT> 请教:正则表达式的编写 正则中的(?:sub)和前端匹配问题 在IE6下运行时,背景图片会闪烁 紧急求助!! 不同时间显示不同图片???? 紧急求助:为何不能取出<option>的值? 救命啊,JS问题。 怎样隐藏框架页的“水平滚动条” 在使用IE关闭不弹出提示框的解决方法中,我遇到一个问题,请帮忙 时间控件My97DatePicker怎么调整高度?并且让显示区域自适应? 我今天才知道JavaScript是JSP最基础的!!! 这个对象如何传递呀
有详细的教程
:)
但不知道怎么用在我那段代码里面,
好心人,帮我看看!
document.open('index2.asp','blank','fullscreen=yes,channelmode=yes,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,top=0,false');
}
完整的open参数~
一般在一个东西的 onClick事件里面 调用函数~只是方法的其中之一
各位能不能说明白些啊,
那两个链接在document.write()里面,
要怎么弄啊!
<a target=blank href=http://www.sohu.com>搜狐</a><br>
<a target=blank href=http://www.sina.com>新浪</a></layer>")可以这样吧,
--------------------------
js.js
function ow(u){
window.open(u,'win','width=100,height=100,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes');
}------------------------
document.write("<script" + " src='js.js'></script" + ">");
document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br>
<a target=blank href=javascript:ow('http://www.sohu.com')>搜狐</a><br>
我照你的做了,但是好像不行,
点链接后弹出的网页显示“找不到服务器”
地址栏显示是:javascript:ow('http://www.sohu.com')
我找不到原因。请再指点指点。
======================================
<script language ='javascript'>
<!--function window.onload(){
document.write("<script" + " src='ow.js'></script" + ">");
document.write("<a href=javascript:ow('http://www.sohu.com')>搜狐</a><br>"
+ "<a href=javascript:ow('http://www.f.com')>搜狐</a><br>")
}
//-->
</script>======================================
ow.js
===================
function ow(u){
window.open(u,'win','width=100,height=100,menubar=no,toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes');
}
你试一下吧!!!
<SCRIPT LANGUAGE=javascript>
if (navigator.appName == "Netscape")
{
document.write("<layer id=qingzui top=300 width=70 height=80>友情链接:<br><a href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')>搜狐</a><br> <a href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')>新浪</a></layer>")
qingzuiload()
}
else
{
document.write("<div id=qingzui style='position: absolute;width:70;top:300;hidden: visible;z-index: 1'><font color='red' style='font-size: 12px;'>友情链接:</font><br><a href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>搜狐</font></a><br><a href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>新浪</font></a></div>" +"<div id=qingzui2 style='position: absolute;visibility: hidden;z-index: 10'> <font color='red' style='font-size: 12px;'>友情链接:</font><br><a href='#' onclick=open('http://www.sohu.com','window1','toolbar=no,location=no,menubar=no')><font color='blue'>搜狐</font></a><br><a href='#' onclick=open('http://www.sina.com','window1','toolbar=no,location=no,menubar=no')>新浪</font></a></div>");
qingzuiload()
}
//-->
</SCRIPT>