Head Title Animation

Head title animation bisa diisi dengan kata-kata sambutan atau teks lain yang berkaitan dengan blog. Animasi ini sekalipun sederhana namun mampu memberikan penampilan berbeda yang membuat blog semakin menarik. Letakkan dan simpan script berikut di bagian head di antara tag <head> dan tag </head>

<script>
  var titletext="Welcome to Wahyu Ekspro Blog's"
  var thetext=""
  var started=false
  var step=0
  var times=1
  function welcometext()
  {
  times--
  if (times==0)
  {
  if (started==false)
  {
  started = true;
  document.title = titletext;
  setTimeout("anim()",1);
  }
  thetext = titletext;
  }
  }
  function showstatustext(txt)
  {
  thetext = txt;
  setTimeout("welcometext()",4000)
  times++
  }
  function anim()
  {
  step++
  if (step==9) {step=1}
  if (step==1) {document.title='>-----'+thetext+'-----<'}
  if (step==2) {document.title='->----'+thetext+'----<-'}
  if (step==3) {document.title='>->---'+thetext+'---<-<'}
  if (step==4) {document.title='->->--'+thetext+'--<-<-'}
  if (step==5) {document.title='>->->-'+thetext+'-<-<-<'}
  if (step==6) {document.title='->->->'+thetext+'<-<-<-'}
  if (step==7) {document.title='--->--'+thetext+'--<---'}
  if (step==8) {document.title='-->---'+thetext+'---<--'}
  setTimeout("anim()",200);
  }
  if (document.title)
  window.onload=onload=welcometext</script>

Catatan :
Ganti Welcome to Wahyu Ekspro Blog's dengan teks yang sesuai dengan blog kamu !

sumber : http://gubhugreyot.blogspot.com

0 komentar:

Posting Komentar

Chat...!!!


ShoutMix chat widget