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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ALT = possibilities? Can the ALT = html be coded to recordset?

Status
Not open for further replies.

ziggs

Technical User
Sep 21, 2000
195
US
So, if you add "ALT = Any text here" to the html code for a gif that displays on your web page, you obviously get "Any text here" popping up when a user's mouse stops over that particular picture. Now, I was looking at an application today and I noticed that when a user stops their cursor over a field, a pop up window would appear that populated all of the choices for that particular field. Thus, you would see all the possibilities. For example, a color field would show you red, blue, green, etc.

Is there anyway to add to same possibilities to an ASP output page? I tried adding something like alt= <%rs(&quot;IM_Color&quot;)%> but that didn't work. Any ideas how to populate items in an open recordset?

Thanks
 
The ASP code you describe is purely a substitution into the current document, so wherever it goes (in the alt attribute or anywhere else) it should work.

Try this:
Code:
<img src=&quot;yourimage.gif&quot; alt=&quot;<%=rs(&quot;yourdbfield&quot;)%>&quot;>

I suspect the lack of &quot;'s and an equals sign is probably what broke it for you the first time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top