各位大侠,如何让点击链接后,弹出的页面没有工具、菜单、地址栏,谢谢! 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> 这个算是 JavaScript 的静态变量吗? 复选框相加 html文档(包含js代码)的解析和运行有什么区别? 如何释放Excel.Application? 求救,关于脚本中事件的处理. 正则式不解!帮着给各说法!100分敬上! 独狐龙大哥你在吗?您继续看 請教高手-----關於刷新 为什么在函数外获取元素对象为null 多个页面时如何跳转到指定ID页面 我今天才知道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>