Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Example - Menus with CD

As you move about the menus on the top and side are updated.

This is what CD SHOULD be doing, but doesnt. This was done with JS and other.

But its an example of what CD can do if you bang hit hard enough with a hammer.

Hopefuly CD2 wont need so many hammers...

Chad Z. Hower
Sunday, March 30, 2003


I think it is possible to do this with CityDesk and Javascript.

David Burch
Monday, March 31, 2003

David, JS=Javascript...

I know what he means. It is a tough job coding and testing until it works ok for all browsers... That is one of the advantages of solutions entirely in Cityscript (not feasible yet). I agree: Power to the CD users... ;-)

Adriaan van den Brand
Monday, March 31, 2003

You can get pretty close to this, sans the alternate hover-images, with CD by using CSS. Put the menus in variables and call them up in articles (via sidebar/extra1/extra2) or directly in templates. Using articles you have to remember to add the menus each time, using templates you may wind up with a lot of templates. If you wind up with a lot of almost identical templates, put the common content in variables.

If this sort of trick :

.i1 a{display:inline;}
.i1 a:hover{display:none;}
.i2 a{display:none;}
.i2 a:hover{display:inline;}
<span class=i1><a href="">one</a></span><span class=i2><a href="">two</span></a>

worked, you could get the alternate-hover-image effect too - but sadly it doesn't appear to. "one" disappears when you hover, but then there's nothing to hover on so "two" doesn't pop up.

Michael Wild
Tuesday, April 1, 2003

*  Recent Topics

*  Fog Creek Home