当前位置导航:炫浪网>>网络学院>>网页制作>>ASP教程

用ASP实现播放Flash的例子

       <!-- #include file = "DB.fun" --><br>
  <%<br>
  mingcheng=request("mingcheng")<br>
  sec=Request("score")<br>
  session("mingcheng")=mingcheng<br>
  session("sec")=sec<br>
  If session("ID")="" then <br>
     response.redirect "qzhuce.asp"<br>
     response.end<br>
  End If<br>
  dim time1<br>
  sec=Request("score")<br>
  Set conn = GetMdbConnection("score.mdb")<br>
  time1=Cstr(date)<br>
  SQL2="select * from mmd where nickname=''"&session("id")&"''"<br>
  Set zy2 = Conn.Execute( SQL2 ) <br>
  old = zy2("mgdf")<br>
  ''response.write old<br>
  ''zy2.close<br>
  if cint(old) <= cint(sec) and cint(old)<>0 then<br>
      SQL1="update mmd set mgdf ="&old&",time1=''"&time1&"'' where nickname =''"&session("id")&"''"<br>
  else   <br>
      SQL1="update mmd set mgdf ="&sec&",time1=''"&time1&"'' where nickname =''"&session("id")&"''"<br>
  end if<br>
  Set zy1 = Conn.Execute( SQL1 )<br>
  ''zy1.close<br>
  %><br>
  <HTML><br>
  <HEAD><br>
  <TITLE> m&m''s</TITLE><br>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312" ><br>
  </HEAD><br>
  <BODY BGCOLOR=#FFFFFF marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><br>
  <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"<br>
  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"<br>
  WIDTH=550 HEIGHT=400><br>
  <param name="_cx" value="14552"><br>
  <param name="_cy" value="10583"><br>
  <param name="Movie" value="/mms/search_score.swf?user=<%=session("id")%>&score=<%=sec%>"><br>
  <param name="Src" value="/mms/search_score.swf?user=<%=session("id")%>&score=<%=sec%>"><br>
  <param name="WMode" value="Window"><br>
  <param name="Play" value="0"><br>
  <param name="Loop" value="-1"><br>
  <param name="Quality" value="High"><br>
  <param name="SAlign" value><br>
  <param name="Menu" value="-1"><br>
  <param name="Base" value><br>
  <param name="Scale" value="ShowAll"><br>
  <param name="DeviceFont" value="0"><br>
  <param name="EmbedMovie" value="0"><br>
  <param name="BGColor" value><br>
  <param name="SWRemote" value><embed src="/Files/BeyondPic/jcwcj/2005-12/10/05121000283167401.swf"" quality="high" bgcolor="#FFFFFF" WIDTH="550" HEIGHT="400" YPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><br>
  </OBJECT><br>
  </body><br>
  </html><br>
  
  

 
相关内容
赞助商链接