Results 1 to 7 of 7

Thread: <alt=> in paging possible?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    447

    <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
    Addicted Member
    Join Date
    Oct 2002
    Posts
    140

    Re: <alt=> in paging possible?

    For using ALT, you can try..
    <img src="abc.gif" alt="<%=RS("book_title")%>">


    Hope this helps!!
    prem.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: <alt=> in paging possible?

    Not sure what you mean, but you can give a hyperlink a title attribute, and the same goes for images (images need a title and name attribute I think)

  4. #4
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: <alt=> in paging possible?

    Do you mean something like caption, or Tool Tip when mouse is over the image? If its first you can use Title attribut like Mendhak mentioned or try FieldSet Tag.

    HTML Code:
    <fieldset style="width:200">
    	<legend>Book Title</legend>
    	<img src="car.jpg">
    </fieldset>
    Attached Images Attached Images  
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    447

    Re: <alt=> in paging possible?

    Yes the last one is what I'm looking for. But I'm not using it for pictures. I want to use it for paging so if I have ten pages of recordsets, by moving the mouse on the numbered pages I can see from where does that page start. Example (of 10 records per page) page 1 would be 1, page 2 11, page 3 21...

    I have this inserted:
    Code:
    pagingurl = pagingurl & "&text_data=yes" & "&optAction=on""><ALT=" & RS("book_title") & ">"&i&"</a>"
    in ASP. But it doesn't work.

    I've notice in some forums there are threads that when you move the mouse over them you'll notice the yellow rectangle with the first words in that thread. I want to do something similar to that.
    Compare bible texts (and other tools):
    TheWheelofGod

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    447

    Re: <alt=> in paging possible?

    Code:
    pagingurl = pagingurl & "&text_data=yes" & "&optAction=on"" title=" & RS("book_title") & ">"&i&"</a>"
    But what function in asp determines which record to start with on each page?
    Compare bible texts (and other tools):
    TheWheelofGod

  7. #7
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: <alt=> in paging possible?

    Quote Originally Posted by gilgalbiblewhee
    Code:
    pagingurl = pagingurl & "&text_data=yes" & "&optAction=on"" title=" & RS("book_title") & ">"&i&"</a>"
    But what function in asp determines which record to start with on each page?
    Do you mean AbsolutePage? Using this you can specify the current page no.

    E.g

    VB Code:
    1. rs.AbsolutePage = CurPage             'defines the current page
    2. rs.PageSize = NumPerPage             'Defines the records per page

    Did you title thing work?
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

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



Click Here to Expand Forum to Full Width