You are on page 1of 2

how can i careate something like below and also get images and other small content from

database. <marquee behavior="scroll" onmouseout=start(); onmouseover=stop(); direction="up" scrollamount="3" height="60"> <a href="http://www.microsoft.com/windows/internetexplorer/download-ie.aspx" target="_blank">Internet Explorer</a><br> <a href="http://www.microsoft.com/windows/products/winfamily/mediacenter/default.msp x" target="_blank">Windows Media Center</a><br> <a href="http://office.microsoft.com/zh-cn/default.aspx" target="_blank">Microsoft Office </a><br> <a href="http://www.microsoft.com/windows/products/winfamily/windowshomeserver/defa ult.mspx" target="_blank">Games for Windows</a><br> <a href="http://www.gamesforwindows.com/enUS/Pages/index.aspx?wt_svl=10427WH_OS_All1&mg_id=10427WHb1" target="_blank">Windows Home Server</a><br></marquee>

2170 Points 674 Posts

Re: Marquee
Jan 24, 2011 01:10 PM|LINK http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jqliscroll/scrollanimate.html
<table> <tr> <td> <asp:Panel ID="Panel1" runat="server" BackColor="#FFFFCC" BorderStyle="Inset" BorderWidth="3" Width="454px" GroupingText="Dynamic Marquee From Database(Up Direction)"> <marquee direction="up" onmouseover="this.stop()" onmouseout="this.start()" scrolldelay="100" style="height: 127px; width: 457px;"> <asp:Literal ID="lt1" runat="server"></asp:Literal></marquee> </asp:Panel> </td> <td> <asp:Panel ID="Panel2" runat="server" BackColor="#CCFFCC" BorderStyle="Inset" BorderWidth="3" Width="454px" GroupingText="Dynamic Marquee From Database(Down Direction)"> <marquee direction="down" onmouseover="this.stop()" onmouseout="this.start()" scrolldelay="100" style="height: 127px; width: 457px;"> <asp:Literal ID="lt2" runat="server"></asp:Literal></marquee> </asp:Panel> </td> </tr> </table>

protected void Page_Load(object sender, EventArgs e) { DataSet ds1=obj.GetRecord();/*this obj is referring to some class in which GetRecord method is present which return the record from database. You can write your //own class and method.*/ string s1; s1 = "<table><tr><td>"; for (int i = 0; i < ds1.Tables[0].Rows.Count; i++) { s1 += "<a href=Somepage.aspx style=font-family: fantasy; font-size: large; fontweight:bold; font-style: normal; color: #660066>"+ds1.Tables[0].Rows[i][1].ToString()+"</a></td>"; s1 += "<br/>"; } s1 += "</tr></table>"; lt1.Text = s1.ToString(); lt2.Text = s1.ToString(); }

You might also like