Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Message In Brownser Tab Rate Topic   - - - - -

 
  • Anaconda
  • Senior Member
  • Members
  • Join Date: 19-Sep 14
  • 151 posts

Posted 09 December 2014 - 12:06 AM #1

Hello,

With the holidays, i added some scrolling text to show in the brownser.
Attached File  2014-12-09_010042.png   24.58KB   12 downloads

For people who are intrested, I like to share it with you.

Past this code above the < / head > in the index.tpl, and change the text to what ever you like "Company wish you happy New Year."
<script language="javascript">
var msg = " Company wish you happy New Year. ";
var pos = 0;
var spacer = " ... ";
var time_length = 150;
function ScrollTitle()
{
document.title = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos=0;
window.setTimeout("ScrollTitle()",time_length);
}
ScrollTitle();
</script>

Kindley Regards
Anaconda