Previous Message
Next Message

A way to code a hyperlink?

Sent by Curtis Clark on 25 December 2004 00:12


on 2004-12-24 16:02 Theresa Mesa wrote:
> In other words, take the navigation out of its include, then futz with it on
> each page. Which sucks if I need to add a link later. So much for the beauty
> of CSS and includes. Sigh...

No, the solution I gave solves that explicitly, because it uses 
navigation in an include. Let me break it down:

<li><a	
	<!-- open the anchor tag -->
<!--#if expr="${DOCUMENT_NAME} = /index.shtml/" -->
	<!-- if this is on "index.shtml",
	close the anchor without a link -->
 >

<!--#else -->
	<!-- if it is anywhere else, write the link -->
  href="/~webteam/index.shtml">
	
<!--#endif -->
	<!-- close the conditional -->
WebTeam</a></li>
	<!-- finish the construct -->

This is in operation at http://www.csupomona.edu/~webteam/, using 
http://www.csupomona.edu/~webteam/include/mainmenu.shtml as the include, 
and although there is an unfixed glitch with Firefox properly applying 
a:hover (I should have written a:link:hover), it otherwise works as 
specified. (Thanks to rudy for pointing this technique out to me, btw.)

-- 
Curtis Clark                  http://www.csupomona.edu/~jcclark/
Web Coordinator, Cal Poly Pomona                 +1 909 979 6371
Professor, Biological Sciences                   +1 909 869 4062
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: