ASP.NET: Animation: Marquee text from left to right

Add this code to file:

<div id=”bannerMarquee”>
     <marquee id=’last_feed’
        name=’last_feed’
        style=’font-family: Tahoma;
        font-size: 12px;’
        direction=’right’
        loop=’true’
        scrollamount=’5′
        onmouseover=’this.stop();’
        onmouseout=’this.start();’>
        <a href=”Default.aspx?MenuID=1″>
            <img src=”Images/Website/logo.png”
                title=”direct to the right”
                border=”0″
                align=”center”
                style=”cursor:hand;”
          onclick=”document.all.last_feed.direction=’right’;document.all.last_feed.start();”>
        </a>
     </marquee>
</div>
 
 
Css to set the width of the marquee div:
 
#bannerMarquee
{
    width:250px;
    float:left;
}

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s