• 新闻档案
  • 展览档案
  • 文献档案
  • 艺术教育
  • 艺术教育
  • 艺术财经
  • 女性艺术
  • 艺术哲学
  • agName("img").length;i++){ var o=obj.getElementsByTagName("img")[i]; o.setAttribute("title","鼠标点击放大"); o.setAttribute("style","cursor:zoom-in;max-width: 450px;"); } for(var i = 0;i0) this.style.zoom=zoom+'%'; return false; }else{ return true; } } function openlogin() { $("#pinglun").show(); } /*点击刷新验证码*/ function changeCode(){ var src = "/api/v1/comment/getVerifyCode.json?"+new Date().valueOf(); //加时间戳,防止浏览器利用缓存 $('#cknum').attr("src",src); //jQuery写法 } function quick(selectValue) { $("textarea[name='comment_content']").text(selectValue); } function closelogin() { $("#pinglun").hide(); } function sendMessag() { var form = $('#pinglun').serializeObject(); console.log(form); if (form['comment_content'] == ""){ alert("你说些什么呢?"); return; } if (form['comment_content'].length > 150){ alert("不要太长哦,最多150个汉字"); return; } if (form['ck'] == ""){ alert("请输入验证码!"); return; } $.get("/api/v1/comment/save.json", form, function (data) { console.log(data); if (data.code == '200') { location.reload(this); } else { alert(data.msg); } }); } $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [ o[this.name] ]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; } $(function(){ var oa = $("#content a"); for(var i=0;i").attr("src", src).load(function(){ var windowW = $(window).width();//获取当前窗口宽度   var windowH = $(window).height();//获取当前窗口高度   var realWidth = this.width;//获取图片真实宽度   var realHeight = this.height;//获取图片真实高度   var imgWidth, imgHeight; var scale = 1;//缩放尺寸,当图片真实宽度和高度大于窗口宽度和高度时进行缩放   if(realHeight>windowH*scale) {//判断图片高度   imgHeight = windowH*scale;//如大于窗口高度,图片高度进行缩放   imgWidth = imgHeight/realHeight*realWidth;//等比例缩放宽度   if(imgWidth>windowW*scale) {//如宽度扔大于窗口宽度   imgWidth = windowW*scale;//再对宽度进行缩放   } } else if(realWidth>windowW*scale) {//如图片高度合适,判断图片宽度   imgWidth = windowW*scale;//如大于窗口宽度,图片宽度进行缩放   imgHeight = imgWidth/realWidth*realHeight;//等比例缩放高度   } else {//如果图片真实高度和宽度都符合要求,高宽*2  imgWidth = realWidth; imgHeight = realHeight; } $(bigimg).css("width",imgWidth);/yishujiaoyu.html" target="_blank" title="">">人物档案
  • 评论档案
  • www.artda.cn">档案首页 艺术生态
  • 新闻档案
  • 展览档案
  • 文献档案
  • 艺术思潮
  • 未来媒体艺术
  • 人物档案
  • 评论档案
  • 艺术生态

  •  
  •