Powered by Blogger.

Sunday, February 16, 2014

Marquee example in asp.net

In this post we will discuss about one marquee example in asp.net. Also you can check out my previous posts on:

- Difference between Sequence and Identity in Sql Server

- access master page controls from content page in asp.net

- Drop Primary Key Constraint in sql server 2008

The marquee tag is a non-standard HTML element which causes text to scroll up, down, left or right automatically.

Below is an example:

<font face="Merriweather" color="Red">
                <marquee scrollamount="3" onmouseover="stop();" onmouseout="start();">Win prizes like Hard Disk, Pen drives, T-Shirts etc. <a href="http://www.enjoysharepoint.com/Write-Article-win-Prizes.aspx">Click here </a>for more information</marquee>

Here we have given the font face and color in a <font> tag.

onmouseover, onmouseout attributes to stop and start scrolling on mouse over.

scrollamount is to control the speed of scrolling.

direction="left/right/down/up" This attribute is required for the direction of the scroll.