不一般的问题?

boboisjinbo 2002-09-05 03:21:31
各位大虾,由于作品原因我所作的网页有一些特殊要求可很难实现
要求打开的网页上面没有地址栏,标准按钮,还有菜单栏都不许带
然而浏览器IE上面都带着这些工具,要想实现此功能除非在网页的原码
里实现,至于如何实现我未能相出办法,不知各位高手谁能解决
在下谢了,明天请你吃饭,如何?
...全文
30 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
newstrange 2002-09-06
  • 打赏
  • 举报
回复
ok,同上。
或者加超链:<A href="javascript:self.close()">『关闭窗口』</A>
jzsh2000 2002-09-05
  • 打赏
  • 举报
回复
ALT+F4或者在页面中加一个关闭按钮<input type=button name=cmdClose value="关闭窗口" onclick="javascript:window.close();openner=null;">
boboisjinbo 2002-09-05
  • 打赏
  • 举报
回复
如何关闭哪?
不好意思又要麻烦朋友一下
newstrange 2002-09-05
  • 打赏
  • 举报
回复
tmp.location="http://my.net"
换成你想要显示的页面,此窗口什么都没有,当然你的页面是有的。
newstrange 2002-09-05
  • 打赏
  • 举报
回复
刚才是热身,这个简单:*^_^*

<script>
var tmp=window.open("about:blank","","fullscreen=1")
tmp.moveTo(100,100)
tmp.resizeTo(600,400)
tmp.focus()
tmp.location="http://my.net"
</script>
shuo18 2002-09-05
  • 打赏
  • 举报
回复
简单,一个只有标题的窗口,在DW中很容易做
IE的工具可以用那些国产的专门做特效的软件,只要几下就做出来了
qisanyou 2002-09-05
  • 打赏
  • 举报
回复
microbians的chromeless窗口,你查查有关资料吧
newstrange 2002-09-05
  • 打赏
  • 举报
回复
动动头部,不难实现!

要完成此效果需要两个步骤

第一步:把如下代码加入到<head>区域中

<script>
var windowW = 214; // wide
var windowH = 300; // high

// set vertical offset if you want the popup
// to rise above or stop below screen bottom;

var Yoffset = 0; // in pixels, negative values allowed

// set the vertical motion parameters

var windowStep = 2; // move increment (pixels)
var moveSpeed = 10; // move speed (larger is slower)

// set the horizontal positioning of the window
// choices are left, center, right

Xmode = "right";

// in left or right Xmode, set any offset from
// the screen edge here, if desired

Xoffset = 35;

// set the url of the page to show in the popup

var urlPop = "link.htm"

// set the title of the page

var title = "This Is A Frameless Peeker";

// set this to true if the popup should close
// upon leaving the launching page; else, false

var autoclose = true;

// ============================
// do not edit below this line
// ============================

var windowX = (screen.width/2)-(windowW/2);
if (Xmode=="left") windowX=0+Xoffset;
if (Xmode=="right") windowX=screen.availWidth-Xoffset-windowW;
var windowY = (screen.availHeight);
var windowYstop = windowY-windowH-Yoffset;
var windowYnow = windowY;

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openPeeker() {
if (beIE) {
PFW = window.open("","popFrameless","fullscreen,"+s);
PFW.blur();
window.focus();
PFW.resizeTo(windowW,windowH);
PFW.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
PFW.document.open();
PFW.document.write(frameString);
PFW.document.close();
}
else {
PFW=window.open(urlPop,"popFrameless","scrollbars,"+s);
PFW.blur();
window.focus();
PFW.resizeTo(windowW,windowH);
PFW.moveTo(windowX,windowY);
}
PFW.focus();
if (autoclose) {
window.onunload = function(){PFW.close()}
}
movePFW();
}
function movePFW() {
if (document.all) {
if (windowYnow>=windowYstop) {
PFW.moveTo(windowX,windowYnow);
PFW.focus();
windowYnow=windowYnow-windowStep;
timer=setTimeout("movePFW()",moveSpeed);
}
else {
clearTimeout(timer);
PFW.moveTo(windowX,windowYstop);
PFW.focus();
}
}
else {
PFW.moveTo(windowX,windowYstop);
}
}
</script>


第二步:把“onLoad="openPeeker()"”加在<body>标记里
例如:<body onLoad="openPeeker()">
boboisjinbo 2002-09-05
  • 打赏
  • 举报
回复
能实现多少哪?
词网页以过期了
qisanyou 2002-09-05
  • 打赏
  • 举报
回复
完全实现是不可能的.

http://www.qisanyou.com/csdn/cw/default.html

10,606

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧