How to put scrolling text in tab of browser in asp.net?

Posted by Prabu_Spark under ASP.NET on 3/20/2013 | Points: 10 | Views : 3259 | Status : [Member] | Replies : 1
Hi sir,
Tell me the steps to put scrolling text in tab of browser in asp.net. I used <marquee> tag in title, but i did not get the output.
Kindly give me the solution for this problem.



[Hint: If you see in gmail, if anyone sent msg in chat, it will show in tab of the browser, Ganesh message you like that.
Similarly i need like that. I used the code below, but i did not get the solution]


<title><marquee>Welcome to Asp.net</marquee></title>

With regards,
J.Prabu.
[Email:prbspark@gmail.com]



Responses

Posted by: Satyapriyanayak on: 3/20/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
<head runat="server">
<title>Untitled Page</title>
<script type='text/javascript'>
msg = "Welcome to Asp.net";
msg = " ......" + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
</script>

</head>

If this post helps you mark it as answer
Thanks

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response