if (typeof _YG_aid_ == 'undefined') { var _YG_aid_ = '1732000'; } var yzz_comment_global_init = function() { var init = function() { load_css('http://comment.yzz.cn/static/global/css/v2/comment.css'); var comment_params_1732000 = { 'closed' : 0, 'show_vote' : 1, 'show_reply' : 1, 'show_input' : 1, 'show_reply_count' : 5, 'comment_type' : 'aid' }; $.ajax({ type:"GET", url:'http://comment.yzz.cn/libs/js/v2/comment.js', dataType:"script", timeout:5000, cache:false, scriptCharset:"utf-8", async:false, error:function(json){}, success:function(json){ var yzz_comment_1732000 = new yzz_comment('1732000', comment_params_1732000); yzz_comment_1732000.work(); global_comment.comment_type = 'aid'; global_comment.comment_variable = '_YG_aid_'; global_comment.comment_obj_1732000 = yzz_comment_1732000; } }); } var load_css = function(css_link) { var docHead = document.getElementsByTagName('head')[0]; var style = document.createElement('link'); style.setAttribute('type', 'text/css'); style.setAttribute('rel', 'stylesheet'); style.setAttribute('href', css_link); docHead.appendChild(style); } var load_script = function(url,callback) { var head = document.getElementsByTagName('HEAD')[0]; var js = document.createElement('SCRIPT'); js.type = 'text/javascript'; js.src = url; if (typeof callback == 'function') { js.onreadystatechange = function() { if (js.readyState=='loaded' || js.readyState=='complete') { callback(); js.onreadystatechange = null; } }; js.onload = callback; } head.appendChild(js); } if (typeof jQuery == 'undefined') { load_script('http://act.yzz.cn/libs/js/jquery-1.7.2.min.js',function(){ init(); }); } else { init(); } } yzz_comment_global_init();