Click here to Skip to main content
15,895,462 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
so that when a user visits the site the dynamic header text will be moving(i.e Animating) from the right side of the screen to the left in a continous fashion.
Posted
Comments
#realJSOP 18-Feb-11 12:41pm    
Annoying... As a user, I hate animated headers. The one on theregister.com.uk is VERY annyoing.
Sergey Alexandrovich Kryukov 18-Feb-11 13:19pm    
And I also hate "I want a sample code". I want, too, so what?
--SA

try this

XML
<MARQUEE>
Welcome To Hospitals Management Board Website
</MARQUEE>


you can also achieve this by other ways. but that is the most easiest one.

If you have asp or asp.net, you can also make the text dynamic by using server side tag. like this

XML
<MARQUEE>
<%Response.Write(GetMyText());%>
</MARQUEE>
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 18-Feb-11 13:21pm    
OK, 5,
--SA
fjdiewornncalwe 18-Feb-11 14:29pm    
+5. I hate the marquee, but it is the correct answer.
Have a look at these links;

A C# Scrolling Text Control[^]
OSD window with animation effect, in C#[^]

Not the best one's though.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Feb-11 13:20pm    
Best or not, it will take 20 minutes to write a sample, but why?
My 5. anyway.
--SA
Sergey Alexandrovich Kryukov 18-Feb-11 13:23pm    
Yes, I guess OP wanted Web code (HTML or whatever), but I don't care; let them put questions correctly.
--SA
Orcun Iyigun 18-Feb-11 15:38pm    
Well yes maybe but the tag is C# so thats why the links for it is C#, for ASP.Net MARQUEE is the answer :) Thanks btw :)
Sergey Alexandrovich Kryukov 18-Feb-11 15:41pm    
Exactly, that's what I meant when I say "let them put questions correctly", that includes tags, punctuation, grammar, using the brain, etc.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900