Click to See Complete Forum and Search --> : Idea


neby
10-02-2003, 12:47 PM
Hi,

I have a bar on my web site. (it’s a intranet web site so you won’t be able to see it). It is plain text across and I am using SSI to import the links to all of my pages. However, If I am on page B, I can still click on web page B link at the top. Is there a way to write a CGI script is if the value of the page=B it makes it Bold and not clickable?


Would I use CGI for this?

Nick

CyCo
10-02-2003, 01:23 PM
...not sure as to what you are referring...can you be more specific...?

neby
10-02-2003, 01:27 PM
Ok. I will just do this.....


All links on this page work and are links. However. If I got to say. Link 3, I will no longer be able to click on that link becasue I am at that page.

I was thinking something like a IF then statment. WOuld this be CGI or java.


(I am currently Viewing page three, all other links but 3 can be clicked and navigated to)

Link1 : Link2 : Link3 : Link4 :

CyCo
10-02-2003, 02:08 PM
ok, what is the "content" of your nav bar includes ?

neby
10-02-2003, 02:12 PM
This is my nav Bar

****************************************

<a class="top" href="http://boe3/curriculum.shtml">Curriculum</a> :: <a class="top" href="http://boe3/technology.shtml">Technology</a>
:: <a class="top" href="http://boe3/sasi.shtml">SASI</a>

neby
10-03-2003, 07:08 AM
bump. Someone please help.

CyCo
10-03-2003, 12:40 PM
neby...sorry I had network probs...
anyway put this at the top of all pages using the nav includes

<!--#set var="thispage" value="${DOCUMENT_NAME}" -->

then change your nav bar file to this

<!--#if expr="$thispage = /curriculum/" --><b>Curriculum</b>
<!--#else --><a class="top" href="curriculum.shtml">Curriculum</a><!--#endif -->
<!--#if expr="$thispage = /technology/" --><b>Technology</b>
<!--#else --><a class="top" href="technology.shtml">Technology</a><!--#endif -->
<!--#if expr="$thispage = /sasi/" --><b>SASI</b>
<!--#else --><a class="top" href="sasi.shtml">SASI</a><!--#endif -->
and that should do it...

neby
10-03-2003, 01:04 PM
That is not working. I put that one line of code at the top, but I am not sure where at the top it needs to be put.

Also do I need the <script> commands around the codeing?

What I currently see on my site is a Bolded name (space) the linked name.

CyCo
10-03-2003, 01:27 PM
...I've put up an example using your info
...is this what you want...?

http://cycocity.com/curriculum.shtml

neby
10-03-2003, 01:41 PM
Yes. That is correct. Provided the CSS color commands.

Where do I put that single line at??

CyCo
10-03-2003, 01:48 PM
this goes at the top...
<!--#set var="thispage" value="${DOCUMENT_NAME}" -->
<html>
<head>
...
...
...
<body><!--#include file="nav_bar.shtml" -->
...
...