<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<tr>
<td>
<a href="play.aspx?id=<%#Eval("id")%>" target="_blank"><%#Eval("name")%></a>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>其中play.aspx是个播放页面,里面有个(300,300)的播放器,但是现在打开页面的时候play.aspx是全屏的,除了播放器其他的地方都是空白。
我想让play.aspx这个播放页面大小为(300,300)而且没有最大化最小化窗口,没有滚动条……就是除了那个播放器什么都没有。
怎么做???
1、能设置play.aspx的大小吗??
2、还是在<a href="play.aspx?id=<%#Eval("id")%>" target="_blank"><%#Eval("name")%></a>这里设置新窗口的大小?谢谢!

解决方案 »

  1.   

    javascript:window.open(this.href,'','width=50,height=50')
      

  2.   

    window.open('play.aspx', 'new', "height=300,width=300,boolbar=no")
      

  3.   

    window.open('play.aspx', '', "height=300,width=300,boolbar=no")
      

  4.   

    <a href="#" onclick="window.open('play.aspx?id=<%#Eval("id")%>', 'new', 'height=300,width=300,boolbar=no')"><%#Eval("name")%></a>
      

  5.   

    <a href='<%# Eval("id", "javascript:window.open('play.aspx?id={0}', window, 'fullscreen=yes,resizable=no,scrollbars=no');void(0)") %>' target="_blank"><%#Eval("name")%></a>
      

  6.   

    <a href="#" onclick="window.open(....)"><%# Eval("name")%></a>
      

  7.   

    不太懂javascript,具体把<a href="play.aspx?id=<%#Eval("id")%>" target="_blank"><%#Eval("name")%></a>这句改成什么样???window.open('play.aspx', 'new', "height=300,width=300,boolbar=no")加到哪里???
      

  8.   

    window.open('play.aspx', 'new', "height=300,width=300,boolbar=no,scrollbars=0,resizable=0")
      

  9.   

    还可以加其它参数,例如:directories=no,height=600,width=800,left=50,top=20,status=yes,toolbar=no,menubar=no,scrollbars=yes,status=no,resizable=yes
      

  10.   

    <a href=Javascript:window.open('<%#Eval("id")%>','','center=yes,scroll=no,Width=541px, Height=395px,status=no'); target="_blank"><%#Eval("name")%></a>
      

  11.   

    <asp:Repeater ID="Repeater1" runat="server">
    <ItemTemplate>
    <tr>
    <td>
    <a href="#" onclick="window.open('play.aspx?id=<%#Eval("id")%>', 'new', 'height=300,width=300,boolbar=no')"><%#Eval("name")%></a>
    </td>
    </tr>
    </ItemTemplate>
    </asp:Repeater>
      

  12.   

    <a href="#" onclick="window.open('play.aspx?id=<%#Eval("id")%>', 'new',"height=300,width=300,boolbar=no,scrollbars=0,resizable=0")  target="_blank"><%#Eval("name")%></a>
      

  13.   

    window.open('play.aspx', '', "height=300,width=300,boolbar=no")