Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2004
    Posts
    494

    Unanswered: <alt=> in paging possible?

    Is there a way of using the ALT outside the IMG? I was wondering if it's possible of using an ALT on paging # to show which page is at what record.

    This is what I have though it doesn't work:
    Code:
    if rspage>2 then
    
               for i=1 to rspage
    'IF REQUEST.QUERYSTRING("PAGE") = i THEN
    'Response.Write("<b>" & i & "</b>")
    pagingurl = "<a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?page=" &i& "&Keyword="& Keyword &"&Keywordb="& Keywordb &"&Keywordc="& Keywordc
    
    if spoke<> "" then pagingurl = pagingurl & "&spoke=" & spoke
    
    
    If   request.QueryString("book_spoke")="Book_Spoke" then pagingurl = pagingurl & "&book_spoke=Book_Spoke"
    
    If   request.QueryString("chapter_spoke")="Chapter_Spoke" then pagingurl = pagingurl & "&chapter_spoke=Chapter_Spoke"
    
    If   request.QueryString("verse_spoke")="Verse_Spoke" then pagingurl = pagingurl & "&verse_spoke=Verse_Spoke"
    If Trim(Request.QueryString("recordType")) <> "" then 
      aRecTypes = Split(Request.QueryString("recordType"), ",")
    '  If IsArray(aRecTypes) Then 
    'pagingurl = pagingurl & 
        For iLoopCount = 0 To UBound(aRecTypes)
         pagingurl = pagingurl & "&recordType=" & trim(aRecTypes(iLoopCount))
        Next
      End If
      SQL = SQL & ")"
    
    pagingurl = pagingurl & "&text_data=yes" & "&optAction=on""><ALT=" & RS("book_title") & ">"&i&"</a>"
    
    response.write pagingurl

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    title will sometimes work to pop up a tool tip but it should be inside the tag eg...

    Code:
    <a href="somelink" title="this links somwhere">somwhere</a>

  3. #3
    Join Date
    Jul 2004
    Posts
    494
    That worked but I was wondering if it's possible to use it in paging. WHen I have a hundred records with 10 records per page it would be nice to know the position in the title tag.

    But what I see now is the "book_title" of the first record all throughout the page numbers even though it varies.

  4. #4
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    just dynamically build the title...
    Code:
    <a href="somelink" title="this links to page <%=i%>">somwhere</a>

  5. #5
    Join Date
    Jul 2004
    Posts
    494
    but what function in asp determines which record to start with on each page?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •