Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Title display on a link...

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,2975
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Title display on a link...
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Title display on a link... - 5/12/2005 8:27:14 AM   
  lukeosu

 

Posts: 5
Score: 0
Joined: 5/2/2005
From:
Status: offline
I'm working on a webpage that has a navigation bar w/links. When the user places their mouse over the links i want to give a discription. i have created a loop in asp that brings in the field from a database but it only displays the first word of the field, i want it to display all of the text.

any ideas?

here's the loop:


do while not rs.eof
NoURL=False
if Isnull(rs("ResourceID").value) or Trim(rs("ResourceID").value) = "" then NoURL = True
%>
<table width="150" cellpadding="2" cellspacing="2" border="2" align="center">
<tr>
<%if NoURL then%>
<td class="flyoutLink" BGCOLOR="#FFFFEE"><font COLOR="#FFFFFF">[<%=rs("ResourceName").value%>]</font></td>
<%else
if CurrSel = rs("ResourceID")then
CurrSelName = rs("ResourceName") %>

<td class="flyoutLink2"><font COLOR="#FFFFFF"><a href='myCalendar.asp?action=ViewMnth&date=<%=CurrMnth%>&ConfRm=<%=rs("ResourceID")%>'""title=<%=rs("Capacity")%> target="_self"><%=rs("ResourceName").value%></a></font></td>
<% else %>
<td class="flyoutLink"><font COLOR="#FFFFFF"><a href='myCalendar.asp?action=ViewMnth&date=<%=CurrMnth%>&ConfRm=<%=rs("ResourceID")%>'""title=<%=rs("Capacity")%> target="_self"><%=rs("Capacity").value%></a></font></td>
<% end if
end if%>

</tr>
</table>
<%
rs.movenext
loop
%>

<br>
</td>
</tr>
</table>
<td>

<%

rs.close
set rs = Nothing
 
 
Post #: 1
 
 Re: Title display on a link... - 5/12/2005 4:02:25 PM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
Dear ,

Here is the code, and the problem was in the HTML:


      

Hope this helps

Best Regards
Firas S Assaad

(in reply to lukeosu)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Title display on a link... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts