JavaScript DHTML/Window Browser/Browser Title Bar
Scrolling Title in Browser title bar
<source lang="html4strict">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script language="javascript"> // (c) Premshree Pillai // http://www.qiksearch.ru // premshree@hotmail.ru // Use freely as long as this message is intact. var msg = " Scrolling Title "; var pos = 0; var spacer = " ... "; var time_length = 100; 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> <style type="text/css"> .premshree{font-family:verdana,arial,helvetica; font-size:8pt; color:#003399; font-weight:normal; text-decoration:underline} .premshree:hover{font-family:verdana,arial,helvetica; font-size:8pt; color:#FA5D00; font-weight:normal; text-decoration:underline} .header{font-family:Times New Roman,arial,verdana,helvetica; font-size:25pt; color:#DD0000; font-weight:bold; font-style:italic} </style> <title>Scrolling Title</title> </head> <body bgcolor="#FFFFFF">
This script scrolls the title.
<script language="javascript">
|
</body> </html>
</source>