Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - not underlined on current page?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

not underlined on current page?

 Post Reply Post Reply
Author
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Topic: not underlined on current page?
    Posted: 28 July 2003 at 11:14am

Hi, I'm trying to modifiy this code I have.  It is the page navigation at the bottom of my site.  Right now it shows << 1 2 3 4 5 >> , I want it to be like << 1 2 3 4 5 >> if I'm on page 3.  I tried to modify it but nothing works, can someone help me..thanks!!

--original code----------------------------------

<form method="post" action="" name="nscapeview">
   <font face="<%=FFType%>" color="<%=FColor%>"  size="2">
   <% if iPageCount > 1 then %>
   <%response.write(dictLanguage.Item(Session("language")&"_advSrcb_4") & iPageCurrent & dictLanguage.Item(Session("language")&"_advSrcb_5") & iPageCount & "<P>")%>
   <%
if iPageCurrent > 1 then %>
                    <a href="advSearch_h.asp?iPageSize=<%=iPageSize%>&keyword=<%=tKeywords%>&iPageCurrent=<%=iPageCurrent - 1%>&priceFrom=<%=pPriceFrom%>&priceUntil=<%=pPriceUntil%>&idCategory=<%=pIdCategory%>&IdSupplier=<%=pIdSupplier%>&withStock=<%=pWithStock%>"><img src="<%=rsIconObj("previousicon")%>" border="0"></a>
                    <% end if
For I=1 To iPageCount
If I=iPageCurrent Then%>
   <%=I%>
   <% Else %>
   <a href="advSearch_h.asp?iPageSize=<%=iPageSize%>&keyword=<%=tKeywords%>&iPageCurrent=<%=I%>&priceFrom=<%=pPriceFrom%>&priceUntil=<%=pPriceUntil%>&idCategory=<%=pIdCategory%>&IdSupplier=<%=pIdSupplier%>&withStock=<%=pWithStock%>"><font color="<%=Link%>"><%=I%></font></a>
   <% End If %>
   <% Next %>
   <% if cInt(iPageCurrent) <> cInt(iPageCount) then %>
   <a href="advSearch_h.asp?iPageSize=<%=iPageSize%>&keyword=<%=tKeywords%>&iPageCurrent=<%= iPageCurrent + 1%>&priceFrom=<%=pPriceFrom%>&priceUntil=<%=pPriceUntil%>&idCategory=<%=pIdCategory%>&IdSupplier=<%=pIdSupplier%>&withStock=<%=pWithStock%>"><img src="<%=rsIconObj("nexticon")%>" border="0"></a>
   <% end if
end if

set conntemp=nothing
set rstemp=nothing
set pIdProduct=nothing
set pDescription=nothing
set pDetails=nothing
set pListPrice=nothing

call closeDb()
call clearLanguage()
%>
  </font>
  </form>

---I modifiied the red part to--------(doesn't work)

<font face="Arial, Helvetica, sans-serif" size="2"><b><%=I%></b></font>



Edited by Lucent
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 28 July 2003 at 11:25am
Change
If I=iPageCurrent Then
to
If Clng(I)=Clng(iPageCurrent) Then


Back to Top
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Posted: 28 July 2003 at 4:05pm
Got it thank you..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.