function tj9()
{
window.open("tj9.asp","info","height=400,width=700,left=50,top=60,toolbar=no,scrollbars=yes,resizable=yes")
}

解决方案 »

  1.   

    window.showModalDialog("tj9.asp","","dialogWidth:250px;dialogHeight:350px;center:1;resizable:no;scroll:0;help:0;status:0");
      

  2.   

    window.resizeTo(300,200);
    window.moveTo(200,200);
      

  3.   

    <a onclick="return openwindow(theURL,name,features)" href=".">...</a>
    在openwindow里最后return false;
      

  4.   

    各位:你们可以把上面的代码COPY去执行呀我主要是这里不知道怎么写呀。。
     HTML_String += '<td BGCOLOR="FFFFFF" BORDERCOLOR="000000"><a href="tj9.asp?tdate='+Ydate+'-'+Mdate +'-'+Day_Counter+ '" target=_blank>' + Day_Counter + '</a></td>';
      

  5.   

    HTML_String += "<td BGCOLOR='FFFFFF' BORDERCOLOR='000000'><a href='' onclick='javascript:window.open('tj9.asp?tdate=" + Ydate+"-"+Mdate +"-"+Day_Counter+"','info','height=400,width=700,left=50,top=60,toolbar=no,scrollbars=yes,resizable=yes') target=_blank>" + Day_Counter + "</a></td>";
      

  6.   

    改一下:
    HTML_String += "<td BGCOLOR='FFFFFF' BORDERCOLOR='000000'><a href='' onclick='javascript:window.open('tj9.asp?tdate=" + Ydate+"-"+Mdate +"-"+Day_Counter+"','info','height=400,width=700,left=50,top=60,toolbar=no,scrollbars=yes,resizable=yes')' target=_blank>" + Day_Counter + "</a></td>";
      

  7.   

    最好使用转意字符: \
    url="tj9.asp?tdate="+Ydate+"-"+Mdate +"-"+Day_Counter;
     
    HTML_String += "<td BGCOLOR=\"FFFFFF\" BORDERCOLOR=\"000000\"><a href="+url+" target=_blank>" + Day_Counter + "</a></td>";
    或者HTML_String += "<td BGCOLOR=FFFFFF BORDERCOLOR=000000><a href="+url+" target=_blank>" + Day_Counter + "</a></td>";如果使用window.open打开连接的窗口:HTML_String += "<td BGCOLOR=FFFFFF BORDERCOLOR=000000><a href="空" onclick="return openwin(\"url\",400,700>" + Day_Counter + "</a></td>";function openwin(url,nwidth,nheight)
    {var str="height"+nheigh+",width="+nwidth+"left=50,top=60";
    var xwin=window.open(url,"随便",str);
    return false;
    }
      

  8.   

    如果使用window.open打开连接的窗口:HTML_String += "<td BGCOLOR=FFFFFF BORDERCOLOR=000000><a href='空' onclick=\"return openwin('url',400,700>\" >" + Day_Counter + "</a></td>";
      

  9.   

    possible_Y(因为帅,判了8年!) 
      我试了。。报错呀。。说语法错误。。我找不出呀还麻烦你或各位帮我看看哦。。
    HTML_String += "<td BGCOLOR='FFFFFF' BORDERCOLOR='000000'><a href='' onclick='javascript:window.open('tj9.asp?tdate=" + Ydate+"-"+Mdate +"-"+Day_Counter+"','info','height=400,width=700,left=50,top=60,toolbar=no,scrollbars=yes,resizable=yes')' target=_blank>" + Day_Counter + "</a></td>";
      

  10.   

    HTML_String += "<td BGCOLOR='FFFFFF' BORDERCOLOR='000000'><a href='' onclick=window.open('tj9.asp?tdate=" + Ydate+"-"+Mdate +"-"+Day_Counter+"','info','height=400,width=700,left=50,top=60,toolbar=no,scrollbars=yes,resizable=yes')>" + Day_Counter + "</a></td>";
      

  11.   

    windows.width = 100;
    来领分了:)
      

  12.   

    windows.width = 100;
    来领分了:)