Click here to Skip to main content
15,793,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am getting a problem while binding data in between marquee tag. Here am able to bind the data from the database, but in google chrome only i lost my design. The data in the Marquee is starting from the right corner of the page in google chrome.

So i need some help here, plz any one do some needful...

Here is my code...

<marquee direction="left" loop="30" scrollamount="1" style="text-lign: left" onmouseout="this.setAttribute('scrollamount', 2, 0);" onmouseover="this.setAttribute('scrollamount', 0, 0);" crolldelay="150">
<asp:DataList ID="dlTeluguNews" runat="server"RepeatDirection="Horizontal">
<itemtemplate>
<table cellspacing="2">
<tr>
<td>
<asp:Image ID="imgbullet" runat="server" ImageUrl="~/image/newsbullet.jpg" Height="15px" />
</td>
<td>
<a href="TeluguNews.aspx?id=<%#Eval("NewsId") %>">
<asp:Image ID="imgNews" runat="server" ImageUrl='<%# String.Format("~/TeluguNews/{0}", Eval("NewsHeaderImage"))%>'Width="171px" Height="20px" /></a>
</td>
</tr>
</table>
</itemtemplate> 
</marquee>
Posted
Updated 25-Oct-10 8:09am
v5
Comments
Dalek Dave 25-Oct-10 9:32am    
Edited for Code Block Readability.

1 solution

Honestly, I think your problem is in using marquee. The tag was never a part of the HTML standard, was invented by Microsoft as part of their proprietary HTML extensions, and is not supported by all browsers. And embedding links into moving text... that really isn't very good design, making your users go fishing for anchors.

And, I've never seen an example of embedding a DataList in a marquee
 
Share this answer
 

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