这个jsp代码怎么就不能运行了,出来的是白板一片

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../inc/productStyle.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../inc/FormCheck.js"></script>
<script type="text/javascript" language="JavaScript">
/*function toBack(){
  location.href="<%=url%>";
}

function toSubmit(){
  if(document.form1.styName.value.Trim()==""){
   alert("请指定样式名称!");
 document.form1.styName.focus();
 return false;
  }
  if(document.form1.styPrice.value.Trim()==""){
   alert("请指定单价!");
 document.form1.styPrice.focus();
 document.form1.styPrice.select();
 return false;
  }
  if(!is_Double(document.form1.styPrice.value.Trim())){
   alert("请指定合法的单价!");
 document.form1.styPrice.focus();
 document.form1.styPrice.select();
 return false;
  }
  document.form1.btnOK.disabled=true;
  document.form1.tp.value="<%=tp%>";
  document.form1.submit();
}

function CheckInt(me){
 var s="0123456789"
 var c=String.fromCharCode(event.keyCode)
 if (s.indexOf(c)<0){
  event.keyCode=0;
  return false;
 }
}

function CheckFloat(me){
 var s="0123456789."
 var c=String.fromCharCode(event.keyCode)
 if (s.indexOf(c)<0){
  event.keyCode=0;
  return false;
 }
}

function setReFirst(){
 if(event.keyCode==9){
 document.form1.styName.focus();
  event.returnValue=false;
 }
}

function frmKeyDown(){
  if(event.keyCode==116){
 event.keyCode=0;
 event.returnValue=false;
 toSubmit();
  }
  if(event.keyCode==27){
   event.keyCode=0;
 event.returnValue=false;
 toBack();
  } 
}

var rowIndex=0;

function toAddNewPic(){
 var row = picTable.insertRow(picTable.rows.length);
 var col=row.insertCell(0);
 col.innerHTML="样式图片:";
 col.setAttribute("width","10%");
 col.setAttribute("align","right");
 
 col = row.insertCell(1);
 col.innerHTML="<input name=\"proPic\" class=\"input2\" tabindex=\""+eval(50+rowIndex+1)+"\" type=\"file\"  size=\"72\"  style=\"width:95%;ime-mode:active\">"; 
 col.setAttribute("width","80%");

 col = row.insertCell(2); 
 if(rowIndex==0){
  col.innerHTML="&nbsp;默认";
 }else{
 var tmp="<button class=\"btn3_mouseout\" tabindex=\""+eval(50+rowIndex+1)+"\" id=\"button1\" name=\"button1\" οnmοuseοver=\"this.className='btn3_mouseover'\" οnmοuseοut=\"this.className='btn3_mouseout'\"";
 tmp+="οnmοusedοwn=\"this.className='btn3_mousedown'\" οnmοuseup=\"this.className='btn3_mouseup'\" onClick=\"return delPic_Row('row"+rowIndex+"')\" title=\"删除\">删除</button>";
 col.innerHTML = tmp;
 }
 row.setAttribute("id", "row"+rowIndex);
 row.setAttribute("name", "row"+rowIndex);
 rowIndex++;
}

function delPic_Row(rowTag){
 if(confirm("请确认是否要删除该图片?")){
  var i=picTable.rows(rowTag).rowIndex;
  if(i!=0){
   picTable.deleteRow(i);
   rowIndex--;
  }
 }
}

function delPic(id){
if(confirm("请确认是否要删除该图片?")){
 form1.action="delProduct.jsp?tp=delStylePic&id=<%=id%>&pid="+id;
 form1.submit();

}

function showModule(){
 var name=document.getElementById("fieldModule").value;
 //SettingInformation,EarringInformation,IndividualPrice,CanBeSetWith,SideStoneInformation,BandInformation,DiamondInformation,MatchingItems
 //divSetting,divEarringPost,divIndividualPrice,divSetWith,divSideStone,divBand,divDiamond,divMatchItem
 if(name=="SettingInformation"){
  divSetting.style.display="";
  form1.styHadSetting.value="yes";
 }
 
 if(name=="EarringInformation"){
  divEarringPost.style.display="";
  form1.styHadEarring.value="yes";
 }
 
 if(name=="IndividualPrice") divIndividualPrice.style.display="";
 if(name=="CanBeSetWith") divSetWith.style.display="";
 
 if(name=="SideStoneInformation"){
  divSideStone.style.display="";
  form1.styHadSideStone.value="yes";
 }
 
 if(name=="BandInformation"){
  divBand.style.display="";
  form1.styHadBand.value="yes";
 }
 
 if(name=="DiamondInformation"){
  divDiamond.style.display="";
   form1.styHadDiamond.value="yes";
 }
  
 if(name=="MatchingItems") divMatchItem.style.display="";
}

function removeModule(name){
 if(name=="divSetting")  form1.styHadSetting.value=""; 
 if(name=="divEarringPost")  form1.styHadEarring.value="";
 if(name=="divSideStone") form1.styHadSideStone.value="";
 if(name=="divBand")   form1.styHadBand.value="";
 if(name=="divDiamond")   form1.styHadDiamond.value=""; 

 document.getElementById(name).style.display="none";
}*/
</script>
<title>新增产品</title>
</head>
<body onLoad="" οnkeydοwn="">
<span class="input">您当前的位置:&nbsp;后台管理&nbsp;<img src="../top/arrow.gif" name="meun_r2_c7" border="0" id="meun_r2_c7" />&nbsp;样式维护&nbsp;<img src="../top/arrow.gif" name="meun_r2_c7" border="0" id="meun_r2_c7" />&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 用户:

</span>

<!--
my code this time!
-->
  <div align="center"></div>
  <table  width=80% border="1" align="center" cellpadding="2" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#EFEFEF" class="td8">
    <tr bgcolor="#55ABD0" >
      <td colspan=4 style="cursor:hand;" title="样式信息"> <div align="left"><span class="td8"><font color=blue><strong><font color="#006633"><u><font color="#FFFFFF">样式信息</font></u></font></strong></font></span></div></td>
    </tr>
    <tr>
      <td width="20%" align="right">Style Name:&nbsp;</td>
      <td width="80%"> <input type="text" name="styName" tabindex="1"  maxlength="32" style="ime-mode:active;width:100%" class="input" value="">
      </td>
      <td align="right" width="20%">Style Type:&nbsp;</td>
      <td width="30%"><select name="styType" class="input" style="width:120px" tabindex="4">
          <option value="Ring" >Ring</option>
          <option value="Earrings" >Earrings</option>
          <option value="Diamond Pendant" >Diamond
          Pendant</option>
          <option value="Three-Stone Ring" >Three-Stone
          Ring</option>
          <option value="Five-Stone Ring" >Five-Stone
          Ring</option>
        </select> </td>
    </tr>
    <tr>
      <td align="right">Material Name:&nbsp; </td>
      <td> <input type="text" name="styMaterialName" tabindex="2" size="25" maxlength="32" style="ime-mode:active;width:98%" class="input" value="">
      </td>
      <td align="right">Price:&nbsp;</td>
      <td><input type="text" name="styPrice" tabindex="3" maxlength="16" style="ime-mode:disabled;width:180px" onKeyPress=""  class="input" value="">
      </td>
    </tr>
    <tr>
      <td align="right">test:&nbsp; </td>
      <td><input type="text" name="styPrice2" tabindex="3" maxlength="16" style="ime-mode:disabled;width:180px" onKeyPress=""  class="input" value=""></td>
      <td align="right">Ring Style:&nbsp;</td>
      <td> <select name="styRingStyle" class="input" style="width:100px" tabindex="5">
          <option value="">None</option>
         
        </select></td>
    </tr>
    <tr>
      <td align="right">Style Remark:&nbsp;</td>
      <td><textarea cols="6" rows="3" style="width:100%" class="input" name="styRemark" tabindex="6"></textarea>
      </td>
      <td align="right">Image View: &nbsp;</td>
      <td>这里放的是样式图片的首选图片展示</td>
    </tr>
    <tr>
      <td colspan=4 style="cursor:hand;" title="样式图片"> <div align="left"><span class="td8"><font color=blue><strong><font color="#006633"><u><font color="#FFFFFF">样式图片信息</font></u></font></strong></font></span></div></td>
    </tr>

    <tr id="" name="">
      <td align="right" width="20%">Style Image:</td>
      <td width="80%"><a href="#" onClick="" title="点击查看">
      
        </a></td>
      <td colspan="2"> <button class="btn3_mouseout" id="button1" name="button1"  title="删除">Delete</button></td>
    </tr>
    <tr>
      <td> <button tabindex="97" id="btnAddPic" name="btnOK" class="btn3_mouseout"  title="新增一个图片">Add
        One More</button></td>
      <td colspan="3"></td>
    </tr>
  </table>
  <!--按下来是做样式子表详细参数-->
 
  <!--结尾部分-->
  <p>&nbsp;</p><p><br>
</p><div align="center">
<button tabindex="300" id="btnOK" name="btnOK" class="btn3_mouseout"  title="保存">
保存(F5)</button>
&nbsp;
<button tabindex="301" id="btnBack" name="btnBack" class="btn3_mouseout" title="返回">
返回(Esc)</button>
</div>
</form>
</body>
</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值