您的位置:程序门 -> java -> web 开发



帮我转一下


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


帮我转一下
发表于:2008-01-23 15:25:22 楼主
" <a   href="#"     onclick="window.open('view.jsp?id= <%=id%> ','new','width=572,height=422,top=40,left=100,scrollbars=yes,toolbar=no,resizable=yes,menubar=yes   ')"> "
发表于:2008-01-23 15:48:201楼 得分:0
???
发表于:2008-01-23 15:54:192楼 得分:0
new_str=new_str+" <a   href="#"   onclick="window.open('view.jsp?id= <%=id%> ','title','width=572,height=422,top=40,left=100,scrollbars=yes,toolbar=no,resizable=yes,menubar=yes   ')"> ";
发表于:2008-01-23 15:55:283楼 得分:0
这个句如何用转意字符转化。急愿意给50分。
发表于:2008-01-23 16:18:324楼 得分:0
<%@   page   language="java"   pageencoding="gbk"%>
<%
int   id=0;
  %>
<script>
function   func(){
var   new_str="";
new_str+=" <a   href='#'   ";
new_str+="   onclick=\"window.open('view.jsp?id=   <%=id%>   ','title','width=572,height=422,";
new_str+="top=40,left=100,scrollbars=yes,toolbar=no,resizable=yes,menubar=yes   ')\">   ";
new_str+="test </a> ";
document.getelementbyid("aa").innerhtml=new_str;
}
</script>
<input   type="button"   value="test"   onclick="func();"/>
<div   id="aa"> </div>
发表于:2008-01-23 16:20:325楼 得分:0
在双引号里面再用双引号的话,
语句为:     "   aa=\"aa\"   "
发表于:2008-01-23 16:38:576楼 得分:0
如果成功就给你加分。请留下你的联系方式
发表于:2008-01-23 16:41:567楼 得分:0
楼上的测试过了吗。请用jsp输出一下好吗?问题不少
发表于:2008-01-23 16:43:448楼 得分:0
d:\tomcat\work\catalina\localhost\_\org\apache\jsp\new_\wjgl\cxwj\view_jsp.java:104:   unclosed   string   literal
new_str+="   onclick=\"window.open('view.jsp?id= <%=id
                                                                                  ^
发表于:2008-01-23 16:47:459楼 得分:0
string   new_str="";   //获得新文件编号的超连接形式
new_str+="   <a   href='#'";
new_str+="   onclick=\"window.open('view.jsp?id= <%=id%> ','title','width=572,height=422,";  
new_str+="top=40,left=100,scrollbars=yes,toolbar=no,resizable=yes,menubar=yes')\">       ";  
new_str=new_str+(" <font   color=\"#ff0000\"> ");
new_str=new_str+wh_temp;//wh_temp连接
new_str=new_str+" </font> ";
new_str=new_str+" </a> ";*/

这是原码
其中
new_str+="   <a   href='#'";
new_str+="   onclick=\"window.open('view.jsp?id= <%=id%> ','title','width=572,height=422,";  
new_str+="top=40,left=100,scrollbars=yes,toolbar=no,resizable=yes,menubar=yes')\">       ";  
   
总是转义弄不好,请大家帮忙。
发表于:2008-01-23 16:48:2910楼 得分:0
经过测试没有问题的可以多给分


快速检索

最新资讯
热门点击