ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 21st, 2003, 06:46 AM
ralphuk100's Avatar
ralphuk100 ralphuk100 is offline
meester luva luva
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Posts: 2,649 ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 20 h 52 m 29 sec
Number of bans: 1
Reputation Power: 19
Send a message via MSN to ralphuk100
count var script...

I need to change this:

<%
Sub WriteSubNav( link, pageTitle, pageDescription )
startAt = InStrRev( link, "/" ) + 1
stopAt = InStr( startAt, link, "." )
If stopAt = 0 Then
nav = link
Else
nav = Mid( link, startAt, stopAt-startAt )
End If
subNavUrl = link & "?navID=" & Escape(nav) _
& "&pageTitle=" & Escape(LCASE( REPLACE (pageTitle," " , "+") ) ) _
& "&pageDescription=" & Escape(LCASE( REPLACE (pageDescription," " , "+") ) )
%>

<a href="<%=subNavUrl%>" class="subNavLink"><%=LCASE( Replace( pageTitle, "_", " " ) )%></a>&nbsp;:

so that it does not put a : sign after the last link

I have been told that the easiest way to do this is to put the : in front of each link except the first one, rather than counting the var's and -1 on them. Could someone help me out with this please. Im not sure how to do it.

Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > count var script...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway