Rotating Tile of website is very simple and easy with javascript. Here is the code to rotate Title of your website.
<head runat="server">
<title id="title1">Sample Text </title>
<script type="text/javascript">
var tid;
var text = "Sample";
window.onload = (function() {
tid = setInterval(rotateText, 100);
});
function rotateText() {
document.title = document.title.substring(1, document.title.length) + "" + document.title.substring(0, 1);
}
</script>
</head>
<head runat="server">
<title id="title1">Sample Text </title>
<script type="text/javascript">
var tid;
var text = "Sample";
window.onload = (function() {
tid = setInterval(rotateText, 100);
});
function rotateText() {
document.title = document.title.substring(1, document.title.length) + "" + document.title.substring(0, 1);
}
</script>
</head>
Comments
Post a Comment