Home > Article > Backend Development > 这段jsp代码如何转换为PHP代码
function cleartab(){
<code>var primgs=document.getElementById(primg[curentico]); var prtxts=document.getElementById(prtxt[curentico]); primgs.className="iB"; prtxts.className=""; } </code>
function mcTab(im,id){
<code>cleartab(); var pathimg="im/"+im+".jpg"; document.Mailcard.imgBox.src=pathimg; var primgs=document.getElementById(primg[id]); var prtxts=document.getElementById(prtxt[id]); primgs.className="iBF"; prtxts.className="tBF"; document.Mailcard.cardImg.value=pathimg; curentico=id; } </code>
function validate(){
<code>if(document.Mailcard.toEmail.value==""){ alert("璇峰~</code>