This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > June 2004 > SwapClass Question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SwapClass Question
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 -->';
?>
Al Sparber- PVII

2004-06-01, 11:15 pm

David B wrote:
> 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.


Can you fix the javascript errors and post on our newsgroup in the
morning? It should be easy to do once you wrap your head around how
SwapClass works. I'm off for the evening but the key is in your
hierarchical structure. SwapClass works with the cascade.

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - Templates
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS Feeds: http://www.projectseven.com/xml/




Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews