There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
BREADCRUMB style navigation displays file names but i dont want that


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
kullanici34's Avatar
Junior Member with 3 posts.
 
Join Date: Sep 2007
Experience: Intermediate
27-Sep-2007, 08:13 AM #1
BREADCRUMB style navigation displays file names but i dont want that
Hi, I have this file called "inc_BreadCrumbs.asp" basically this is a Navigation include file as breadcrumbs style, and I inserted this to every page in my site. It works fine but one thing I cant configure is that: It displays the file names as for example: search.asp or results.asp etc... But i want it to display as SEARCH or RESULTS etc... How to implement this? Can it display only page title name or something else how can you change it? Can you help please, thanx.
Here is the "inc_BreadCrumbs.asp" :


<%

if request.ServerVariables("HTTPS") = "on" then ssl = "s"
myURL = "http" & ssl & "://" & request.ServerVariables("SERVER_NAME")
myArray = split(request.ServerVariables("URL"),"/")
response.write "<a href = """ & myURL & """><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"" color = ""#000000"">" & request.ServerVariables("SERVER_NAME") & "</font></a><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"" color = ""#000000""> > </font>"
for a1 = lbound(myArray) to Ubound(myArray)
newStr = ""
qMark = ""
newStr = myArray(a1)
myCounter = myCounter + 1
if NOT Ubound(myArray) + 1 = myCounter then
trailingSlash = "/"
else
trailingSlash = ""
end if
myURL = myURL & myArray(a1) & trailingSlash
if Ubound(myArray)+1 = myCounter AND request.ServerVariables("QUERY_STRING") > "" then qStr = "?" & request.ServerVariables("QUERY_STRING")
if NOT myArray(a1) = "http" & ssl & ":" AND NOT myArray(a1) = "" then
response.write "<a href = """ & myURL & qStr & """><font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"" color = ""#000000"">" & newStr & "</font></a>"
if NOT Ubound(myArray)+1 = myCounter then response.write "<font size=""1"" face=""Verdana, Arial, Helvetica, sans-serif"" color = ""#000000""> > </font>"
end if
next

%>
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
29-Sep-2007, 06:42 PM #2
If all you are passing is the page name that is all it will do is display the file name. In between your <a> and </a> to need to insert some text which will be the name for the hyperlink
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:43 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.