Tuesday 13 January 2015

Blinking Your HTML Title

<script>
    function titlebar(val)
    {
    var speed = 1000;
    var position = val;
    var message1 = "Chinnayya Naidu Nalla - Software Developer ";

    var message2 = "Software Developer - Chinnayya Naidu Nalla"; 
    if(position == 0)    {
           message = message1;
           position = 1;
      } else if(pos == 1) {
          message = message2;
          position = 0;
      }
    document.title = message;
    timer = window.setTimeout("titlebar("+position +")",speed); }
    titlebar(0);

</script>

No comments:

Post a Comment