$(function(){ $('.article').find('img').imgZoom({maxW:670,maxH:1000,autov:false,loading:'images/loading.gif'}); }); function checkform(){ var form1=document.myform; if(form1.txtname.value==""){alert("您的姓名不能为空!");form1.txtname.focus();return false} if(form1.content1.value==""){alert("留言内容不能为空!");form1.content1.focus();return false} return true; }
jQuery(document).ready(function($) { if($('.nyleft').height()<$('.nyright').height()){ $('.nyleft').height($('.nyright').height()-10); } });