NTES.ready(function ($) { var nphLayoutGG = $('#nphLayoutGG'); if (nphLayoutGG) { nphLayoutGG.addCss({ display: 'block', position: 'absolute', left: 0, top: '10px', width: '280px', height: '210px' }); $('#photomiddle').addCss({display: 'block', width: '564px', marginLeft: '-282px' }); $('#photomiddle').appendChild(nphLayoutGG); new nph.Gallery({ photoViewMode: 2 }); } else { new nph.Gallery({ photoViewMode: 0 }); } var tieCountNode = NTES.one('#tieArea span.tieTotalCount') || NTES.one('#tieArea span.tieCount'), tieCount = $('#tieCount'); if (tieCountNode && tieCount) { tieCount.innerHTML = String.format('(%1)', tieCountNode.innerHTML); } /*按键提示层*/ nph.popinit = function(){ var nhp_poparea = $('#nhp_poparea'); var getcookie = NTES.cookie.get("nphStorage"); if(getcookie == 'tips'){ $("#nhp_poparea").addCss({display:'none'}); }else{ if(nhp_poparea){ $("#nhp_poparea").addCss({display:'block'}); setTimeout(function(){$("#nhp_poparea").addCss({display:'none'});},10000); nhp_poparea.$(".nhp_pclose").addEvent('click',function(ev){ ev.preventDefault(); nph.hide(nhp_poparea); NTES.cookie.set("nphStorage", "tips" , "1M" ); }); } } } nph.popinit(); });
0