我做了一个音乐与播放器的连接,
但是就是连接不上,,请高手指点一下
index.asp
<!--#include file="Connections/conn.asp" -->
Dim rs1
Dim rs1_numRows
Set rs1 = Server.CreateObject("ADODB.Recordset")
rs1.ActiveConnection = conn
rs1.Source = "SELECT * FROM music"
rs1.CursorType = 0
rs1.CursorLocation = 2
rs1.LockType = 1
rs1.Open()
rs1_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<div align="center">
<table width="70%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="33%" height="171" align="left" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#F5F5F5">
<tr>
<td height="20" background="images/top_blue_c_bg.gif"> </td>
</tr>
<tr>
<td height="149" align="center" valign="top"> </td>
</tr>
</table></td>
<td width="2%" align="left" valign="top"> </td>
<td width="65%" align="left" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#F5F5F5">
<tr>
<td height="20" background="images/top_blue_c_bg.gif"> </td>
</tr>
<tr>
<td height="149"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="70%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="70%" height="236" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="24%" align="center" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#F5F5F5">
<tr>
<td height="20" background="images/top_red_c_bg.gif"> ◎音乐排行榜</td>
</tr>
<tr>
<td height="211" align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1">
<%for i=1 to 3%>
<tr>
<td><p align="center"><%=rs1("musicname")%></td>
<td>
<p align="center"><a href="file8.asp?id=<%=rs1("id")%>" & <%=rs1("map")%> target="_blank">视听</a></td>
</tr>
<%rs1.movenext
next%>
</table>
</tr>
</table></td>
<td width="2%"> </td>
<td width="27%">
<table border="1" width="106%" cellspacing="0" cellpadding="0" id="table1" bordercolor="#F5F5F5" height="232">
<tr>
<td background="images/top_blue_c_bg.gif" height="21"> ◎人气排行榜</td>
</tr>
<tr>
<td height="211" align="center" valign="top"></td>
</tr>
</table>
</td>
<td width="2%"> </td>
<td width="45%"> </td>
</tr>
</table>
</body>
</html>
<%
rs1.Close()
Set rs1 = Nothing
%>
play.asp
<!--#include file="Connections/conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>云鼎国际会所</title>
</head>
<body bgcolor="#000000">
<p align="center">
<OBJECT id=MediaPlayer1
style="LEFT: 286; VISIBILITY: visible; POSITION: absolute; TOP: 64;z-index:2; width:482px; height:376px"
codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=
Loading
type=application/x-oleobject height=366
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 VIEWASTEXT>
<PARAM NAME="URL" VALUE="<%=conn.execute("select map from music where id="&trim(request.querystring("id"))&"")(0)%>">
<param name="AudioStream" value="-1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="-1">
<param name="AnimationAtStart" value="0">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="4">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="0">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="-1">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="70">
<param name="WindowlessVideo" value="0">
</OBJECT>
</body>
</html>
高手帮帮看看,指点一下我。。谢谢了!
[此贴子已经被作者于2006-10-25 4:22:01编辑过]