<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
Re: <alt=> in paging possible?
For using ALT, you can try..
<img src="abc.gif" alt="<%=RS("book_title")%>">
Hope this helps!!
prem.
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)
1 Attachment(s)
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>
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.
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?
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:
rs.AbsolutePage = CurPage 'defines the current page
rs.PageSize = NumPerPage 'Defines the records per page
Did you title thing work?