<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>网页特效---另类弹出式窗口</title> </head> <body> <script> var theURL = "http://7stk.com"; var title = "test" var windowWidth = 478; var windowHeight = 100; var windowX = 100; var windowY = 100; var autocenter = false; var autoclose = true; 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 onLoad="doAgilePopup()"> </body> </html> asp文件代码 id=request("id") set conn=server.createobjecy("adodb.connection") conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("数据库.mdb") sql="select * from 表名 where id="&id set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 if rs.eof then feedback="none" else feedback=rs("id") end if flash代码 第一帧建一个text,名字为id 一个按钮,在按钮上添加代码,如按钮名称为btn on(onrealese){ getURL("xxx.asp?id="+id.text,,"post") gotoAndPlay(3) } 再低二帧写代码 if (feedback!="none"){ gotoAndPlay(4) }else{ gotoAndPlay(3) } 第三帧代码 gotoAndPlay(2) 第四帧代码(建一个文本框txt) txt.text=feedback |