Scrolling Title in Browser title bar : Browser Title Bar « Window Browser « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Event
7. Event onMethod
8. Form Control
9. GUI Components
10. HTML
11. Javascript Collections
12. Javascript Objects
13. Language Basics
14. Node Operation
15. Object Oriented
16. Page Components
17. Security
18. Style Layout
19. Table
20. Utilities
21. Window Browser
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript DHTML » Window Browser » Browser Title Bar 
Scrolling Title in Browser title bar

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="javascript">
// (c) Premshree Pillai
// http://www.qiksearch.com
// premshree@hotmail.com
// 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.lengthpos=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">
<center><span class="header">Scrolling Title</span></center>
<br>
<table align="center" width="400"><tr><td>
<font face="verdana,arial,helvetica" size="-1" color="#000000">
This script scrolls the title.<br>

Paste the following script in the <font face="courier">&lt;HEAD&gt;</font> section of your page. Change the variable <font face="courier">msg</font> to your web page title. Change the scroll speed by changing the value of the variable <font face="courier">time_length</font>. Here it is 100, which means that each character will change it's position after 100 milliseconds, i.e a scroll speed of 10 pixels/second.
<p style="background:#FFFFE7; padding:3; font-family:courier">
&lt;script language="javascript"&gt;<br>
// (c) Premshree Pillai<br>
// http://www.qiksearch.com<br>
// premshree@hotmail.com<br>

// Use freely as long as this message is intact.<br>
var msg = " Your Web Page Title ";<br>
var pos = 0;<br>
var spacer = " ... ";<br>
var time_length = 100;<br>
function ScrollTitle()<br>
{<br>
 document.title = msg.substring(pos, msg.length+ spacer + msg.substring(0, pos);<br>

 pos++;<br>
 if (pos > msg.lengthpos=0;<br>
 window.setTimeout("ScrollTitle()",time_length);<br>
}<br>
ScrollTitle();<br>
&lt;/script&gt;
</p>
<center><a href="mailto:premshree@hotmail.com" class="premshree">&#169 Premshree Pillai</a></center>

</font>
</td></tr></table>

</body>
</html>

           
       
Related examples in the same category
w___w_w_.__j___a__va2___s___._co_m___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.