| David B 2004-06-01, 11:15 pm |
| If you look at http://www.vote4mak.org/about/index.php, you'll see a
fairly large navigation menu in the top right corner. If you click the
first row (Site Features), a SwapClass function opens another panel.
Because it's so big, I'd like to put the entire thing inside another
SwapClass function. In other words, visitors might see nothing more than
a tiny arrow and the words "Click Here." If they click it, it transforms
into exactly what you see now, and they can then click "Site Features"
to open a second panel.
I could use a more traditional navigation menu, but this one is
engineered to scroll with Mozilla/Firefox.
Anyway, can someone tell me how to put the following code inside a
second SwapClass function? I thought it would be easy to figure out, but
I keep tripping up. Thanks.
<?php
$todayDate = date("m-d-Y");
echo '<div id="nav" class="menuDiv">
<div id="navlinks" class="menuDivHeader"
onclick="P7_swapClass(1,'mn1','showIt','hideIt','div');P7_swapClass(1,'but1','menuButMinus','menuButPlus','img')">
[IMAGE]Site Features</div>
• <a href="' . "$path" . 'index.php">Vote4Mak Home</a><br />
• <a href="' . "$path" . 'about/index.php">About Mak</a>';
echo '<div id="mn1" class="showIt">(Under Construction)</div>
</div><!-- EndDiv#Nav -->';
?>
|