开发者

Scroll marquee till last character in vb.net?

How to add scroll delay in this coding for marquee ?

It will not scroll till the last character, it will disappear when first character in literal1 will touch the left side ...

i want it will scroll till last ..character

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim example开发者_Python百科 As String = TextBox1.Text
        Dim str As String = "<img src=a.gif/>"
        Dim resulte As String = "<MARQUEE>" & str & " " & example & "</MARQUEE>"
        Literal1.Text = resulte
    End Sub


You need to set the scrolldelay attribute to the MARQUEE tag. So an example of this would be:

Dim resulte As String = "<MARQUEE SCROLLDELAY=500>" & str & " " & example & "</MARQUEE>"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜