香烟 发表于 2007-4-27 10:50:22

***页面导航***隐藏格式的浮动层(弹出的无任何边的窗口!)

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
<html>
<head>
<title>隐藏格式的浮动层</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
</head>
<!-------------------------------->
<body onload="doagilepopup()">
<script>

// set the url of the banner popup window page
var theurl = "http://jojoo.net";

// set the title of the popup window
var title = "goobers r us"

// set the size of the popup window
var windowwidth= 478; // cannot be less than 100
var windowheight = 100; // cannot be less than 100

// set the position of the popup window
var windowx = 100;
var windowy = 100;

// set true to auto-center (positions will be ignored)
var autocenter = false;

// set true for popup to close when launch page does
var autoclose = false;

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

var s="width="+windowwidth+",height="+windowheight;

var beie=document.all?true:false;
var done=new object("no");

if(autocenter){
windowx = (window.screen.width-windowwidth)/2;
windowy = (window.screen.height-windowheight)/2;
}

function doagilepopup(){
if (beie){
agilepopper = window.open("","popagile","fullscreen,"+s);
agilepopper.blur();
window.focus();
agilepopper.resizeto(windowwidth,windowheight);
agilepopper.moveto(windowx,windowy);
var framestring=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theurl+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
agilepopper.document.open();
agilepopper.document.write(framestring);
agilepopper.document.close();
}else{
agilepopper=window.open(theurl,"popagile","scrollbars=no,"+s);
agilepopper.blur();
window.focus();
agilepopper.resizeto(windowwidth,windowheight);
agilepopper.moveto(windowx,windowy);
}   
agilepopper.blur();
if (autoclose){
window.onunload = function(){agilepopper.close();}
}
done="okay";
}

</script>

<!---------------------------------->
</body>
</html>

      










--------------------------------------

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***页面导航***隐藏格式的浮动层(弹出的无任何边的窗口!)