日期:2014-05-17  浏览次数:20861 次

好久的问题都没有解决,请帮帮我吧!
父页面:
<input   type= "text "   size= "12 "   name= "guan_style "   id= "guan_style ">
    <input   type= "button "   value= "请选择... "   onclick= "window.open( 'select_style.asp '); ">

子页面:
<form   action= " "   name= "myform1 ">
    <tr>
        <td   height= "24 "   bgcolor= "#DDFFEE "> &nbsp;&nbsp; <span   class= "style27 "> 请选择馆式样 </span> </td>
    </tr>
    <tr>
        <td   height= "178 "   align= "center "   valign= "top "   bgcolor= "#FFFFFF ">
<table   width= "696 "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
            <%
    set   rs_s=conn.execute( "select   *   from   guan_style ")
    do   while   not   rs_s.eof
    %>
            <tr>
                <%
    for   i   =   1   to   3  
    if   not   rs_s.eof   then
    %>
                <td   height= "170 "   align= "center "   valign= "top "   bgcolor= "#FFFFFF "> <table   width= "100% "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
                            <tr>
                                <td   height= "126 "   align= "center "   valign= "middle "   bgcolor= "#FFFFFF "> <img   src= "guan_bg_pic/ <%=rs_s( "filename ")%> "   width= "150 "   height= "120 "> &nbsp;&nbsp; </td>
                            </tr>

                            <tr>
                                <td   height= "24 "   align= "center "   valign= "middle "   bgcolor= "#FFFFFF ">
<%
retvalue=rs_s( "style_url ")
response.Write "* "   &retvalue
%>
<script   type= "text/javascript ">
function   doTransmit(){
opener.parent.document.myform.guan_style.value   =   " <%=retvalue%> ";   //将数据库中取出的值传回父窗口
self.close();//关闭子窗口
}
</script>
<input   type= "button "   onclick= "doTransmit(); "   value=传值>
</td>