|
var registerCoralEvent = { code: 1, listHiden: ARTICLE_INFO.site.search(/news|finance|view/) == -1 ? 0 : 1, loginEvent: function(){ //document.getElementById('onekey').onclick(); userLogin(); }, publicLogined: function(uin,nick,三峽洗地打蠟,headUrl){ var _ifr = document.getElementById('commentIframe'); if(typeof _ifr.contentWindow.publicLogined == 'function') document.getElementById('commentIframe').contentWindow.publicLogined(uin,nick,電波拉皮,headUrl); }, publicLogout: function(){ var _ifr = document.getElementById('commentIframe'); if(typeof _ifr.contentWindow.publicLogined == 'function') document.getElementById('commentIframe').contentWindow.publicLogout(); } } seajs.use('lib/ui', function(ui){ var ifr_cmt = ui.$('commentIframe'), winH = ui.windowHeight(); //老版評論id兼容 if(cmt_id > 1e9){ var cmt_ifr_url = '' + cmt_id + '/commentnum?callback=_cbSum&source=1&t=' + Math.random(); ui.crossAsynJson(cmt_ifr_url, '_cbSum',廚餘機, function(data){ if(arguments[0].errCode == 0){ ui.$("cmtNum").href = '' + cmt_id; ui.$("cmtNum").setAttribute('target', '_blank'); var n = arguments[0].data.commentnum;//總貼數 ui.$("cmtNum").innerHTML = n; } }); } //加載iframe var loadIfra = function(){ ifr_cmt.style.display = 'block'; ifr_cmt.src = ''; if (ifr_cmt.attachEvent){ ifr_cmt.attachEvent("onload", fun |
|