Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Rollover

Status
Not open for further replies.

JennB

Programmer
Feb 3, 2002
29
CA
I have a website that generates a list of articles from a database. Each of these articles also has a description in the database which I want to pop up when the user rolls over the articles name. Is there a way to do this?

Thanks for your help

J
 
As in a tooltip?

<a title=&quot;hi&quot;>Hello</a> Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
I guess. I just need a text box or something to appear on the rollover with the description (from the database) of the coresponding article.

The SQL is:
CompanyInfo.Source = &quot;SELECT Title, Author, description, filename, Title FROM Articles ORDER BY Title ASC&quot;

and the loop to list the articles is:
%>
While ((Repeat1__numRows <> 0) AND (NOT CompanyInfo.EOF))
%>
a href = &quot;articles/<%=(CompanyInfo.Fields.Item(&quot;filename&quot;).Value)%>&quot;>
<%=(CompanyInfo.Fields.Item(&quot;Title&quot;).Value)%> </a>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
CompanyInfo.MoveNext()
Wend
%>
 
Thanks. That code works really well on it's own but for some reason if I stick the exact same code in my asp page it doesn't work any more. Do I have to do something different?
 
Never Mind. I got it. Thanks alot for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top