marquee element not supporting

Posted by Saritha.rajeshkumar under C# on 7/18/2011 | Points: 10 | Views : 9528 | Status : [Member] | Replies : 2
hi this is saritha,

I have used marquee element in my asp.net 2.0 web page. When i built it works fine but in markup and in warning it is displaying this error " Validation (XHTML 1.0 Transitional): Element 'marquee' is not supported".




Responses

Posted by: SheoNarayan on: 7/18/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Actually marquee element is not supported XHTML because this element has been deprecated in latest version.

Visit this link to get the same behavior using JavaScript http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

Thanks



Regards,
Sheo Narayan
http://www.dotnetfunda.com

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lalji_mer on: 7/19/2011 [Member] Bronze | Points: 25

Up
0
Down
If you want to move label the you can use below code sample
public partial class Form1 : Form


{

bool flag=false;

public Form1()

{

InitializeComponent();



this.label1.MouseDown += new MouseEventHandler(mouseclicked);

this.label1.MouseLeave+= new EventHandler(mleaved);

this.label1.MouseMove += new MouseEventHandler(mmove);

}

private void mleaved(object sender,EventArgs e)

{

flag = false;

}

private void mouseclicked(object sender,MouseEventArgs e)

{

flag=true;

}



private void mmove(object sender, MouseEventArgs e)

{

if (flag == true)

{

this.label1.Location = new Point(e.X, e.Y);

}



}

}


LP MER

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response