|
-
Jan 19th, 2005, 08:35 PM
#1
Thread Starter
Hyperactive Member
<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
-
Jan 20th, 2005, 04:22 AM
#2
Addicted Member
Re: <alt=> in paging possible?
For using ALT, you can try..
<img src="abc.gif" alt="<%=RS("book_title")%>">
Hope this helps!!
prem.
-
Jan 20th, 2005, 06:24 AM
#3
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)
-
Jan 20th, 2005, 09:47 AM
#4
-
Jan 20th, 2005, 07:26 PM
#5
Thread Starter
Hyperactive Member
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.
-
Jan 20th, 2005, 08:14 PM
#6
Thread Starter
Hyperactive Member
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?
-
Jan 21st, 2005, 05:02 PM
#7
Re: <alt=> in paging possible?
 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?
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|