我从其他页面传值给embed的src属性一个路径(路径肯定是对的,因为还能下载呢),我用JS获取embed的src属性的确是有值的,但是播放不了歌曲,不是不能自动播放而是 不能播放 我把路径写死了他也不播放 
请问这是什么原因怎么解决会不会是因为我们这个二级域名弄的?

解决方案 »

  1.   

    二级域名的根目录是user
    播放的地址根目录是UpLoad
      

  2.   


                        <%
                            //原唱歌曲路径
                            if (YcgqInfo != null)
                            {
                                string yclj = YcgqInfo.YUANCHUANG_GEQULUJING;
                        %>
                        <embed style="FILTER: invert() Alpha(opacity=100,style=2)" src="<%=yclj%>"></embed>
                        <%
                            }
                        %>这是我写的那个代码 YcgqInfo 在后台给写成属性了
      

  3.   

    是不是少写了属性?
     <embed src="../../images/bcastr.swf?bcastr_xml_url=../../images/index.xml" width="140" height="175" loop="false" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent">
      

  4.   

    可是我传参数就能播放user/gqgl.aspx?ycgqbh=<%=yuanchang.YUANCHUANG_BIANHAO%> //这样传参就能播放我web.config这样写的<RewriterRule>
        <LookFor>~/(.[0-9]*)\.html</LookFor>
        <SendTo>~/user/gqgl.aspx?ycgqbh=$1</SendTo>
    </RewriterRule>
    写的时候这样传参数就不能播放http://<%=uid()%>.aigezu.com/<%=yuanchang.YUANCHUANG_BIANHAO%>.html