var usr= 'felipenmoura'; var sp1= null; document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("\""); document.writeln("Tweet, tweet ... tweet..."); document.writeln("\""); document.writeln("
"); document.writeln("Follow me @"+usr+""); document.writeln("
"); document.writeln("
"); var Tweety= { init: function(){ sp1= new Sprite(document.getElementById('tweetie'), spriteConfig); loadTweet(); changeTo(); } }; var spriteConfig= { autoStart: true, // default true src:'/projetos/tweety/images/twitter1.png', scenes: [ { loopType: 'alternate', // alternate, linear or pause name: 'rightHead', // alternative frames: [ // right { top:0, left:0, width:195, height:233, nextIn:1500 }, { top:0, left:195, width:195, height:233, nextIn:40 }, { top:0, left:390, width:195, height:233, nextIn:40 } ] }, { loopType: 'alternate', // alternate, linear or pause name: 'lefttHead', // alternative frames: [ // front { top:236, left: 2, width:195, height:233, nextIn:1500 }, { top:236, left:198, width:195, height:233, nextIn:40 }, { top:236, left:394, width:195, height:233, nextIn:40 } ] }, { loopType: 'alternate', // alternate, linear or pause name: 'aHead', // alternative frames: [ // left { top:466, left:2, width:195, height:233, nextIn:1500 }, { top:466, left:207, width:195, height:233, nextIn:40 }, { top:466, left:393, width:195, height:233, nextIn:40 } ] } ] }; function changeTo(){ var t= Math.ceil(Math.random()*8000); sp1.goToScene((Math.ceil(Math.random()*3))); setTimeout("changeTo();", t); } function loadTweet(){ var newJs; if(document.getElementById('newTwitterJs')) { newJs= document.getElementById('newTwitterJs'); newJs.parentNode.removeChild(newJs); } newJs= document.createElement('SCRIPT'); document.getElementsByTagName('head')[0].appendChild(newJs); newJs.id= 'newTwitterJs'; newJs.src= '/projetos/tweety/twitter.html?usr='+usr+'&noCache'+Math.ceil(Math.random()*9999999)+'=true'; setTimeout("loadTweet()", 60000); } var tweetyLoaded= function(){ Tweety.init(); }; try{ window.addEventListener('load', tweetyLoaded, false); }catch(e){ document.attachEvent('onload', tweetyLoaded); }