katherinep
Programmer
Hello,
I would like a news ticker on my site that moves horizontally across the screen and pulls the information from my database, I would like it to contain hyperlinks so people can click on a headline and then get a page with the full article.
I found a ticker I like from
and I also know how to pull information from a database using asp. I am having trouble bringing the two together.
I can get the ticker to show one record and hyperlink on a page:
var marqueecontent='<nobr><font face="Arial"> <a href="event.asp"> <%= rstGetResults("Headline")%> - <%= rstGetResults("Date")%></font></nobr>'
But as soon as I try and make it loop to show all records or hyperlink to a page and pass a parameter (the id of the record to display i.e. <a href="event.asp?nid=<%= rstGetResults("id")%>"> ) I get a blank page.
Can anyone point me in the right direction, I have tickers in ColdFusion, but I can't seem to get one to work in ASP,
My table is called 'news' and my fields are called Id, Date and Headline, my database is in Microsoft Access.
Thanks in Advance,
Katherine
I would like a news ticker on my site that moves horizontally across the screen and pulls the information from my database, I would like it to contain hyperlinks so people can click on a headline and then get a page with the full article.
I found a ticker I like from
and I also know how to pull information from a database using asp. I am having trouble bringing the two together.
I can get the ticker to show one record and hyperlink on a page:
var marqueecontent='<nobr><font face="Arial"> <a href="event.asp"> <%= rstGetResults("Headline")%> - <%= rstGetResults("Date")%></font></nobr>'
But as soon as I try and make it loop to show all records or hyperlink to a page and pass a parameter (the id of the record to display i.e. <a href="event.asp?nid=<%= rstGetResults("id")%>"> ) I get a blank page.
Can anyone point me in the right direction, I have tickers in ColdFusion, but I can't seem to get one to work in ASP,
My table is called 'news' and my fields are called Id, Date and Headline, my database is in Microsoft Access.
Thanks in Advance,
Katherine