又一种简单的图片幻灯片特效 dn001 2009-06-21 08:25:51 <!-- http://www.knowsky.com --> <!-- bbs http://bbs.knowsky.com --> <!--完成此特效须两个步骤 第一步 把下列代码放到<body>区域中--> <SCRIPT language=JavaScript> <!-- Begin var windowW=214 // wide var windowH=398 // high var windowX = 260 // from left var windowY = 100 // from top var urlPop = "http://www.knowsky.com" var title = "这是一个页面里的帧" var autoclose = true // do not edit below this line s = "width="+windowW+",height="+windowH; var beIE = document.all?true:false function openFrameless() { if (beIE) { NFW = window.open("","popFrameless","fullscreen,"+s); NFW.blur(); window.focus(); NFW.resizeTo(windowW,windowH); NFW.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>"; NFW.document.open(); NFW.document.write(frameString); NFW.document.close(); } else { NFW = window.open(urlPop,"popFrameless","scrollbars,"+s); NFW.blur(); window.focus(); NFW.resizeTo(windowW,windowH); NFW.moveTo(windowX,windowY); } NFW.focus(); if (autoclose) { window.onunload = function(){NFW.close();} } } // End --> </SCRIPT> <A href="javascript:openFrameless()">打开页内帧</A> <!--第二步:修改<body>为:--> <body onload=top.window.focus()>