10 Replies Latest reply on Aug 16, 2006 3:37 PM by Newsgroup_User

    Drop down problems again

    glndi Level 1
      I created a css page and linked it to a home page and template page using a CSS drop down. I used the css hover hack code to make it work. The home page and template page work fine

      http://www.llhs.org

      Then ,when I open the template page, and save it as "development.html" (without making any other changes), it asks if I want to update links, to which I say "yes. However, then the drop down no longer works.

      http://www.llhs.org/development.html

      What's the deal?!
        • 1. Re: Drop down problems again
          Level 7
          On Tue, 15 Aug 2006 17:00:10 +0000 (UTC), "glndi"
          <webforumsuser@macromedia.com> wrote:

          > Then ,when I open the template page, and save it as "development.html"
          >(without making any other changes), it asks if I want to update links, to which
          >I say "yes. However, then the drop down no longer works.


          That's because you're not using templates correctly. To create a new
          template based page, click File->New. In the dialog box, click the
          Templates tab, choose your site (if necessary) and the template, then
          click the Create button.

          Gary
          • 2. Re: Drop down problems again
            glndi Level 1
            Thanks Gary for your help on saving. That's good to know.

            I also realized I needed to have the css hover hack file in each folder within my document (because the site is large, I saved html files within specific folders). So one css hover.htc will not cover the whole site, it needs to be within each of the folders serving as base for an html file.

            Thanks again.
            • 3. Re: Drop down problems again
              glndi Level 1
              Thanks Gary for your help on saving. That's good to know.

              I also realized I needed to have the css hover hack file in each folder within my document (because the site is large, I saved html files within specific folders). So one css hover.htc will not cover the whole site, it needs to be within each of the folders serving as base for an html file.

              Thanks again.
              • 4. Re: Drop down problems again
                Level 7
                On Tue, 15 Aug 2006 20:47:15 +0000 (UTC), "glndi"
                <webforumsuser@macromedia.com> wrote:

                >Thanks Gary for your help on saving. That's good to know.
                >
                > I also realized I needed to have the css hover hack file in each folder within
                >my document (because the site is large, I saved html files within specific
                >folders). So one css hover.htc will not cover the whole site, it needs to be
                >within each of the folders serving as base for an html file.


                You should never put any other files in the Templates directory. If you
                make your link to the .css file correctly in the template, you should
                only need one copy of the .css file.

                Gary
                • 5. Re: Drop down problems again
                  glndi Level 1
                  I'm probably not explaining myself very well.

                  Each of my pages is created from the same template page and is linked to only one css page. I'm trying to make this site as 508 Compliant as possible (it's a school site) so I also did the drop down menu in CSS. As we all know, I.E. isn't up to speed and didn't accompdate the drop down. To solve this issue, I linked each page to a hack code known as Peterned's csshover.htc. I found this solution in the site:
                  http://www.seoconsultants.com/css/menus/horizontal/

                  This hack code is what I need to have in each folder of my site in order that files within that folder will work.

                  I'm open to all suggestions for a simplified CSS drop down - it must be accessible and compliant as possible. And easy, since I'm not highly adept at this!
                  • 6. Re: Drop down problems again
                    Level 7
                    On Wed, 16 Aug 2006 12:34:01 +0000 (UTC), "glndi"
                    <webforumsuser@macromedia.com> wrote:

                    > This hack code is what I need to have in each folder of my site in order that
                    >files within that folder will work.


                    No, you don't. You can just use a single copy of the file. If the link
                    to the file is correct in the template, it will correct it in the pages
                    made from the template.

                    Take this as an example. Let's say your template is named template.dwt.
                    All templates *must* be stored in the Templates directory which is at
                    the root level of the site. Let's say further that your .css file is
                    named hack.css and it is stored in a directory named styles which is
                    also at the root level of the site:

                    site root
                    \styles
                    hack.css
                    \Templates
                    template.dwt

                    The link in the template would be:

                    ..\styles\hack.css

                    If you create a page based on that template and save it in the site's
                    root directory, DW will adjust the link to this:

                    styles\hack.css

                    If you, instead, saved the template based page in the \products\widgets
                    directory, the link would be adjusted to:

                    ..\..\styles\hack.css

                    In both of these cases, the link to the single copy of the .css file
                    will be correct. There is no need for copies in all folders.

                    Gary
                    • 7. Re: Drop down problems again
                      glndi Level 1
                      Thanks Gary for your continued interest in my project!

                      Is my hack code a CSS? It's labeled an .htc file - whatever that is. And am I correct in that I more or less added this as a style?
                      • 8. Re: Drop down problems again
                        Level 7
                        On Wed, 16 Aug 2006 16:50:08 +0000 (UTC), "glndi"
                        <webforumsuser@macromedia.com> wrote:

                        >Thanks Gary for your continued interest in my project!
                        >
                        >Is my hack code a CSS? It's labeled an .htc file - whatever that is.
                        >And am I correct in that I more or less added this as a style?

                        No, a .htc file is a proprietary MS thing. What does your link to this
                        file look like?

                        Gary
                        • 9. Re: Drop down problems again
                          glndi Level 1
                          The htc is linked just before the </head>

                          http://www.llhs.org/
                          • 10. Re: Drop down problems again
                            Level 7
                            On Wed, 16 Aug 2006 18:46:28 +0000 (UTC), "glndi"
                            <webforumsuser@macromedia.com> wrote:

                            >The htc is linked just before the </head>
                            >
                            > http://www.llhs.org/


                            Okay. In a conditional comment like that, DW won't manage the link for
                            you. Why not just use a root relative link?

                            Gary