Project Seven SwapClass

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Project Seven SwapClass

    Hello,

    I completed and understand the project seven tutorial, SwapClass:
    [url]http://projectseven.com/tutorials/navigation/swapclassmenu/index.htm[/url]

    However, I'm trying to recreate the navigation menu for my own site and have a
    few questions. First, the only defining characteristics I can find in the code
    of their workpage.htm with regards to the ".open" and ".closed" classes are
    that they either "display block" in the open class, or "display none" in the
    closed class. Am I missing some aspect of defining these classes? Second, they
    have their navigation menu as an unordered list in an absolutely placed div.
    Will it make a difference if I try to create a working toggle menu like this
    with my menu options defined as an unordered list within a table? I finally
    have got my layout properly placed and would prefer not to work with layers and
    divs if possible...

    Thanks much for your input!


    keeptheoceanclean Guest

  2. Similar Questions and Discussions

    1. how to go about a project
      Here is my dilemma, I am about to start a project using ColdFusion and SQL Server 2000. Right now, there is a site does on the fly charting for...
    2. new project [615]
      Or you can use Querix Hydra Compiler, which not only provides you with a windows front end (Phoenix) it also allows you to add in your own ActiveX...
    3. Project Help
      Hi I am fairly new to Director but would to get started, I am using Version 8 and would like suggestions on a project to start on. Any...
    4. project using ASP
      Hi All, You may be interested in my Head Injuries Project, which I doing as part of my MSc project at the University of Gloucestershire and would...
    5. Large PHP Project... Need Project Manager
      Hey, I've got a nice CMS (in quite stable 2.0 form) that I need a Project Manager who can just deal with some bugs/answer questions for the next...
  3. #2

    Default Re: Project Seven SwapClass

    "keeptheoceanclean" <webforumsuser@macromedia.com> wrote in message
    news:fllsck$ns7$1@forums.macromedia.com...
    > Hello,
    >
    > I completed and understand the project seven tutorial, SwapClass:
    > [url]http://projectseven.com/tutorials/navigation/swapclassmenu/index.htm[/url]
    >
    > However, I'm trying to recreate the navigation menu for my own site and
    > have a
    > few questions. First, the only defining characteristics I can find in the
    > code
    > of their workpage.htm with regards to the ".open" and ".closed" classes
    > are
    > that they either "display block" in the open class, or "display none" in
    > the
    > closed class. Am I missing some aspect of defining these classes? Second,
    > they
    > have their navigation menu as an unordered list in an absolutely placed
    > div.
    > Will it make a difference if I try to create a working toggle menu like
    > this
    > with my menu options defined as an unordered list within a table? I
    > finally
    > have got my layout properly placed and would prefer not to work with
    > layers and
    > divs if possible...
    The open and closed classes are what the SwapClass script toggles between.
    No other properties are necessary for those classes. The menu is styled by
    using descendant selectors keyed off either the .open, .closed, or both
    classes, such as:

    1) .closed a, .open a
    2) .closed a:hover
    3) .open a:hover

    The menu can go inside any type of containing element, including a table
    cell.

    You might want to post on our newsgroups. If you are not familiar with
    newsgroups, they work similarly to email and are much, much faster than web
    forums. You can find instructions here on how to set up a news reader using
    Windows Mail, Outlook Express, Entourage, or Thunderbird:

    [url]http://projectseven.com/support/index.htm[/url]


    --
    Al Sparber - PVII
    [url]http://www.projectseven.com[/url]
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"


    Al Sparber - PVII Guest

  4. #3

    Default Re: Project Seven SwapClass

    Hi Al,

    Thanks much for your input. I will start posting to the newsgroup! The
    difficulty I was having with the toggling open and closed classes was as simple
    as redefining .open to .open ul in my .css file. I do have a question however
    if you or some other knowledgeable folk is online...I have created a working
    toggle navigation menu but in one of the drop down menus, would like to take it
    one step further. Is it possible to toggle a list within a list? I can't quite
    get it to work properly. The trigger link of the nested link closes the entire
    section rather than opening and closing its 4 elements. Please see code below.
    Many sincere thanks! Krista
    </li>
    <li class="open" id="surveys"><a href="#" class="sidebar"
    onclick="P7_swapClass(1,'surveys','open','closed', 'li')">SURVEYS</a>
    <ul class="nav">
    [LI]<a href="#">RC Surveys</a></li>
    [LI]<a href="#">Long Term Monitoring</a></li>
    <li class="open" id="isldsch"><a href="#"
    onclick="P7_swapClass(1,'isldsch','open','closed', 'li')">Schedule</a>
    <ul class="nav">
    [LI]<a href="#">Oahu</a></li>
    [LI]<a href="#">Kauai</a></li>
    [LI]<a href="#">Maui</a></li>
    [LI]<a href="#">Big Island</a></li>
    [/BULLET]
    </li>
    <li class="open" id="isldata"><a href="#"
    onclick="P7_swapClass(1,'isldata','open','closed', 'li')">Data</a>
    <ul class="nav">
    [LI]<a href="#">Oahu</a></li>
    [LI]<a href="#">Kauai</a></li>
    [LI]<a href="#">Maui</a></li>
    [LI]<a href="#">Big Island</a></li>
    [/BULLET]
    </li>
    [/BULLET]
    </li>

    keeptheoceanclean Guest

  5. #4

    Default Re: Project Seven SwapClass

    "keeptheoceanclean" <webforumsuser@macromedia.com> wrote in message
    news:fm6hru$9kg$1@forums.macromedia.com...
    > Hi Al,
    >
    > Thanks much for your input. I will start posting to the newsgroup! The
    > difficulty I was having with the toggling open and closed classes was as
    > simple
    > as redefining .open to .open ul in my .css file. I do have a question
    > however
    > if you or some other knowledgeable folk is online...I have created a
    > working
    > toggle navigation menu but in one of the drop down menus, would like to
    > take it
    > one step further. Is it possible to toggle a list within a list? I can't
    > quite
    > get it to work properly.
    Hi Krista,

    I'm afraid SwapClass was not written to toggle nested lists.


    --
    Al Sparber - PVII
    [url]http://www.projectseven.com[/url]
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"


    Al Sparber - PVII Guest

  6. #5

    Default Re: Project Seven SwapClass

    Okay...thank you for the input! I will go a different route...

    Aloha~K
    keeptheoceanclean Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139