Discussion Locked

Re: Query of Marquee

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hello developer's this is Anand here,could i ask you how i can create marquee like TV whis is like CNN and other TV News,in C,C++ or java or VB.
plz suggest me and if you have any one of code plz send me my mentioned mail address.

3 replies

by kaptkos

function scrollscroller(){

if (iedom){
if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8))
cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
else
cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
}
else if (document.layers){
if (ns_scroller.top>(actualheight*(-1)+8))
ns_scroller.top-=copyspeed
else
ns_scroller.top=parseInt(scrollerheight)+8
}
}

if (iedom||document.layers){
with (document){
if (iedom){
write('

')
write('

')
write('

')
}
else if (document.layers){
write('')
write('')
write('')
}
}
}

by kaptkos

Then in C# you can populate the marquee with data from a SQL Table by using this code segment:

myDBCOM.RunQuery("UPDATE WS_Profiling.dbo.MarqueeHTML SET ProcessedbyPCI='Y', PCIWasteStreamNo='" +
this.Wast_Str.Text.ToString().Trim() +
"', Login='" +
Session["login"].ToString().Trim() +
"' WHERE TrackingNo='" +
txtPCITrackNo.Text.ToString().Trim() +
"'");

string qryScrollerContent = "SELECT ScrollerContent FROM WS_Profiling.dbo.MarqueeHTML WHERE ProcessedByPCI ='N'";
DataView dvScrollerContent = new DataView(myDBCOM.GetDataTable(qryScrollerContent));
int i=0;
string MarqueeData="";
for( i=0;i

This discussion is closed to new replies.