function addInputEffect(){ $("input[@type=text],input[@type=password],textarea,file").click(function(){ $("input[@type=text],input[@type=password],textarea,file").each(function(){ $(this).css("background-color","#ffffff"); $(this).css("border","solid 1px gray"); }); $(this).css("background-color","#F7F7F7"); $(this).css("border","solid 2px #6086B7"); }) $("input[@type=text],input[@type=password],textarea,file").mouseover(function(){ if($(this).css("background-color")=="#ffffff"){ $(this).css("border","solid 2px #6086B7"); $(this).css("background-color","#a9c3e8"); } }); $("input[@type=text],input[@type=password],textarea,file").mouseout(function(){ if($(this).css("background-color")=="#a9c3e8"){ $(this).css("border","solid 1px gray"); $(this).css("background-color","#ffffff"); } }); $(".bgInput").mouseover(function(){ $(this).css("background-color","#d1e6fe"); }); $(".bgInput").mouseout(function(){ $(this).css("background-color","#ffffff"); }); /* $("form").each(function(){ var actionstr=$(this).attr("action"); actionstr="javascript:showLoading('"+$(this).attr("name")+"','"+actionstr+"');"; $(this).attr("action",actionstr); });*/ } function gosubmit(formobj,act){ //alert('do gosubmit!'); if(act!=null&&act!=""){ formobj.action=act; } formobj.submit(); //$("form[@name="+formname+"]").attr("action",act); //$("form[@name="+formname+"]").submit(); }