pc.ready( function(){ var box = pc.getElem('#slide1 .tabTit'); new pc.tab({ target: pc.getElems('#slide1 .slide li'), control: pc.getElems('#slide1 .control li'), effect: 'slide', onchange: function(){ var cur = this.target[this.curPage].getElementsByTagName('a')[1]; if(cur) box.innerHTML = ''+ cur.innerHTML +''; } }); });