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:

	<!-- 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 -->
<!--#endif -->
	<!-- close the conditional -->
	<!-- finish the construct -->

This is in operation at, using 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        
Web Coordinator, Cal Poly Pomona                 +1 909 979 6371
Professor, Biological Sciences                   +1 909 869 4062
css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: