Success comes after thinking and thinking comes after failure.

Wednesday, February 14, 2007

How to create Verticle Scroll which can connect to Database.

Hi friends,
I was asked to create a news ticker which can interact with database in my .Net application. I was bit confused and started searching on net and found some exclent controls which are ready made. But due to some issues I was not ready to use them.
My search started again for the same. I got back to fundamentals of HTML controls. Hooked up with marquee. Yes, this guy solved all my problems. I just learned about this Tag in early development stage. Thought its very fancy. But there is lot of things in it.
This article shows just a simple HTML Code. I will update with Database.
Just follow the following code below in ur .aspx page
<br /><br /><table bordercolor="blue" height="100%" cellspacing="0" cellpadding="0" width="100%" border="0"><br /><tr><br /><td><br /><div id="ScrAnnounce" style="WIDTH: 70%; HEIGHT: 100%; TEXT-ALIGN: left; TEXT-DECORATION: none"> <br /><marquee id="maqAnnounce" onmouseover="maqAnnounce.stop()" onmouseout="maqAnnounce.start()" scrollamount="2" direction="up" width="100%" height="300"><br /><table bordercolor="blue" cellspacing="0" cellpadding="0" width="100%" border="0"><br /><tbody><tr><br /><td><a href="http://www.msn.com" target="_blank">Log on to MSN</a><br /><br /><a href="http://www.yahoo.com" target="_blank">Log on to Yahoo</a><br /><a href="http://www.Blogger.com" target="_blank">Create Blogs</a><br /><br /><a href="http://www.google.com" target="_blank">Go Google.</a><br /><a href="http://www.Rediff.com" target="_blank">Rediff.</a><br /></td><br /></tr><br /></tbody></table><br /></marquee><br /></div><br /></td><br /></tr><br /></table>

This all about it. Simpel Right?

No comments:

Post a Comment