日期:2014-05-16  浏览次数:20356 次

这个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\" onmouseover=\"this.className='btn3_mouseover'\" onmouseout=\"this.className='btn3_mouseout'\"";
?tmp+="onmousedown=\"this.className='btn3_mousedown'\" onmouseup=\"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.s