snowboardr
Programmer
Im trying to get it so it displays prev when you click on the last number in the menu. Any help would be great.
Function MakeNum(current, total)
Response.write "<p align=""center"">"
Response.write "<font face=""Arial"" size=""1"">"
For i=1 to total
If i = current then 'Highlight current
Response.write "<span style=""background-color: #C0C0C0"">" & "<a target=""_self"" href=""frame.asp?view=" & i & chr(34) & ">" & i & "</span>" & " | " & "</a>"
Else
Response.write "<a target=""_self"" href=""frame.asp?view=" & i & chr(34) & ">" & i & " | " & "</a>"
End If
Next
If current = tTotal then
Response.write "<a target=""_self"" href=""frame.asp?view=" & current - 1 & chr(34) & "> Prev</a>"
ElseIf current <= total then
Response.write "<a target=""_self"" href=""frame.asp?view=" & current + 1 & chr(34) & "> Next</a>"
End If
Response.write "</font></p>"
End Function
%>
Function MakeNum(current, total)
Response.write "<p align=""center"">"
Response.write "<font face=""Arial"" size=""1"">"
For i=1 to total
If i = current then 'Highlight current
Response.write "<span style=""background-color: #C0C0C0"">" & "<a target=""_self"" href=""frame.asp?view=" & i & chr(34) & ">" & i & "</span>" & " | " & "</a>"
Else
Response.write "<a target=""_self"" href=""frame.asp?view=" & i & chr(34) & ">" & i & " | " & "</a>"
End If
Next
If current = tTotal then
Response.write "<a target=""_self"" href=""frame.asp?view=" & current - 1 & chr(34) & "> Prev</a>"
ElseIf current <= total then
Response.write "<a target=""_self"" href=""frame.asp?view=" & current + 1 & chr(34) & "> Next</a>"
End If
Response.write "</font></p>"
End Function
%>