why does pop-up menus require so much code to make them work?

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default why does pop-up menus require so much code to make them work?

    Yes I'm a newb.

    I examined the pop-up menu code that dmx creates to show/hide pop-up menus. Its approx 900 to 1000 lines of horribly spaced javascript code the is functional. Why does it take *so* much code just to respond to only a few events (mouse over, mouse out, onclick)? The file is almost 30K.

    Is there a way to do this via CSS?


    jqpdev webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Make code wait, till other code is ready
      Hey there, sorry for the silly topic title, I'm not sure how to phrase my problem :$ I have an mxml page.. which initializes a manager in which...
    2. client-side code to require ssl
      Hi everyone, I am looking for a way to require (redirect) users to access the page they are on via SSL. The reason why I want to do this on the...
    3. Why Does Combo Box Require Two Clicks to Make Selection?
      Hi All I have a combo box with export values. When the user makes their combo box selection, the export values populate three text fields . It...
    4. #25782 [Fbk->Opn]: require( 'require.php' ) crashing Apache 1.3.28
      ID: 25782 User updated by: akinder at technology-x dot com Reported By: akinder at technology-x dot com -Status: ...
    5. #25782 [NEW]: require( 'require.php' ) crashing Apache 1.3.28
      From: akinder at technology-x dot com Operating system: Linux RedHat 9 PHP version: 5.0.0b1 (beta1) PHP Bug Type: Apache...
  3. #2

    Default Re: why does pop-up menus require so much code to make them work?

    Yes. And there are many other ways to do it in HTML that are much more code
    efficient and much less troublesome. Here are some -

    [url]http://www.projectseven.com/tutorials/menuing/mcloser/index.htm[/url]

    or

    [url]http://www.projectseven.com/tutorials/auto_hide/index.htm[/url]

    Here is a method that is more 'hands on' but very slick and equally trouble
    free -

    [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "jqpdev" <webforumsuser@macromedia.com> wrote in message
    news:bnemtg$spc$1@forums.macromedia.com...
    > Yes I'm a newb.
    >
    > I examined the pop-up menu code that dmx creates to show/hide pop-up
    menus. Its approx 900 to 1000 lines of horribly spaced javascript code the
    is functional. Why does it take *so* much code just to respond to only a
    few events (mouse over, mouse out, onclick)? The file is almost 30K.
    >
    > Is there a way to do this via CSS?
    >
    >

    Murray *TMM* Guest

  4. #3

    Default Re: why does pop-up menus require so much code to make them work?

    Thanks a million. I spent about 4.5 hours examining the youngpup website,
    their css slide out menus, the other goodies at their site and surfing links
    on their site. With the help of W3Schools' website
    ([url]http://www.w3schools.com[/url]) I was able to figure out how the javascript and
    css code works and how its employed in an actual web page. I can actually
    scale back their work to suit my needs. This is what I was looking for.

    I looked at Project 7, but their solution requires the installation of
    extensions. Which sounds like they did a lot of work. I wanted a
    minimalist CSS/Javascript combo to produce simple pop-up menus (a list of
    links). ...and I was shooting for something that leaned more in the CSS
    direction, than a heap of complex javascript.

    I will of course experiment with project 7's extensions later on. I'm still
    a newb so learning what pieces a solution contains, how those pieces work,
    and how the pieces interact is more important to me right now. P-7's
    extension based solution may be a lot quicker for the purpose of "getting
    something done".

    ....And for the others newb's that might read this, check out A list apart's
    website ([url]http://www.alistapart.com/[/url]). There are some good discussions on
    their site about layout, design, the employment of CSS, and <div>'s. Don't
    forget W3schools above.


    jqpdev Guest

  5. #4

    Default Re: why does pop-up menus require so much code to make them work?

    Be aware that installing extensions has no downside as far as the final
    results are concerned. They only affect the scope of capabilities available
    within DMX. PVII's AutoLayer extension is something that you will find a
    million uses for once you start with it.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "jqpdev" <jqpdev@hotmail.com> wrote in message
    news:bnglu1$2f2$1@forums.macromedia.com...
    > Thanks a million. I spent about 4.5 hours examining the youngpup website,
    > their css slide out menus, the other goodies at their site and surfing
    links
    > on their site. With the help of W3Schools' website
    > ([url]http://www.w3schools.com[/url]) I was able to figure out how the javascript and
    > css code works and how its employed in an actual web page. I can actually
    > scale back their work to suit my needs. This is what I was looking for.
    >
    > I looked at Project 7, but their solution requires the installation of
    > extensions. Which sounds like they did a lot of work. I wanted a
    > minimalist CSS/Javascript combo to produce simple pop-up menus (a list of
    > links). ...and I was shooting for something that leaned more in the CSS
    > direction, than a heap of complex javascript.
    >
    > I will of course experiment with project 7's extensions later on. I'm
    still
    > a newb so learning what pieces a solution contains, how those pieces work,
    > and how the pieces interact is more important to me right now. P-7's
    > extension based solution may be a lot quicker for the purpose of "getting
    > something done".
    >
    > ...And for the others newb's that might read this, check out A list
    apart's
    > website ([url]http://www.alistapart.com/[/url]). There are some good discussions on
    > their site about layout, design, the employment of CSS, and <div>'s.
    Don't
    > forget W3schools above.
    >
    >

    Murray *TMM* Guest

  6. #5

    Default Re: why does pop-up menus require so much code to make them work?

    Matthew:

    Very nice, very slick, very slim, and no UI! 8)

    Why couldn't MM have done it that way? I dunno....<shrug>

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Matthew Carpenter" <mcarpenter@otbdesign.com> wrote in message
    news:boh4r5$p9h$1@forums.macromedia.com...
    > OMG
    >
    > This is fantastic Murray!
    > [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]
    >
    > I have been looking for simple code to use on menus forever and this is
    > perfect! Simple, light, easy to modify, and to the point.
    >
    > Thanks!
    >
    >
    > "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
    > news:bneo2o$mr$1@forums.macromedia.com...
    > > Yes. And there are many other ways to do it in HTML that are much more
    > code
    > > efficient and much less troublesome. Here are some -
    > >
    > > [url]http://www.projectseven.com/tutorials/menuing/mcloser/index.htm[/url]
    > >
    > > or
    > >
    > > [url]http://www.projectseven.com/tutorials/auto_hide/index.htm[/url]
    > >
    > > Here is a method that is more 'hands on' but very slick and equally
    > trouble
    > > free -
    > >
    > > [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]
    > >
    > > --
    > > Murray --- ICQ 71997575
    > > Team Macromedia Volunteer for Dreamweaver MX
    > > (If you *MUST* email me, don't LAUGH when you do so!)
    > > ==================
    > > [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO
    GET
    > > ANSWERS
    > > ==================
    > > [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    > > [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    > > [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    > > [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    > > ==================
    > >
    > > "jqpdev" <webforumsuser@macromedia.com> wrote in message
    > > news:bnemtg$spc$1@forums.macromedia.com...
    > > > Yes I'm a newb.
    > > >
    > > > I examined the pop-up menu code that dmx creates to show/hide pop-up
    > > menus. Its approx 900 to 1000 lines of horribly spaced javascript code
    > the
    > > is functional. Why does it take *so* much code just to respond to only
    a
    > > few events (mouse over, mouse out, onclick)? The file is almost 30K.
    > > >
    > > > Is there a way to do this via CSS?
    > > >
    > > >
    > >
    > >
    >
    >

    Murray *TMM* Guest

  7. #6

    Default Re: why does pop-up menus require so much code to make them work?

    OMG

    This is fantastic Murray!
    [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]

    I have been looking for simple code to use on menus forever and this is
    perfect! Simple, light, easy to modify, and to the point.

    Thanks!


    "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
    news:bneo2o$mr$1@forums.macromedia.com...
    > Yes. And there are many other ways to do it in HTML that are much more
    code
    > efficient and much less troublesome. Here are some -
    >
    > [url]http://www.projectseven.com/tutorials/menuing/mcloser/index.htm[/url]
    >
    > or
    >
    > [url]http://www.projectseven.com/tutorials/auto_hide/index.htm[/url]
    >
    > Here is a method that is more 'hands on' but very slick and equally
    trouble
    > free -
    >
    > [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]
    >
    > --
    > Murray --- ICQ 71997575
    > Team Macromedia Volunteer for Dreamweaver MX
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    > [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    > ANSWERS
    > ==================
    > [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    > [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    > [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    > [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    > ==================
    >
    > "jqpdev" <webforumsuser@macromedia.com> wrote in message
    > news:bnemtg$spc$1@forums.macromedia.com...
    > > Yes I'm a newb.
    > >
    > > I examined the pop-up menu code that dmx creates to show/hide pop-up
    > menus. Its approx 900 to 1000 lines of horribly spaced javascript code
    the
    > is functional. Why does it take *so* much code just to respond to only a
    > few events (mouse over, mouse out, onclick)? The file is almost 30K.
    > >
    > > Is there a way to do this via CSS?
    > >
    > >
    >
    >

    Matthew Carpenter Guest

  8. #7

    Default Re: why does pop-up menus require so much code to make them work?

    Good question. They have a point about all the messy code. I hate that. Oh
    well, we do what we can. This is a great tool to have in the arsenal. Thank
    you again Murray.


    "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
    news:boh4t7$pb1$1@forums.macromedia.com...
    > Matthew:
    >
    > Very nice, very slick, very slim, and no UI! 8)
    >
    > Why couldn't MM have done it that way? I dunno....<shrug>
    >
    > --
    > Murray --- ICQ 71997575
    > Team Macromedia Volunteer for Dreamweaver MX
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    > [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    > ANSWERS
    > ==================
    > [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    > [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    > [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    > [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    > ==================
    >
    > "Matthew Carpenter" <mcarpenter@otbdesign.com> wrote in message
    > news:boh4r5$p9h$1@forums.macromedia.com...
    > > OMG
    > >
    > > This is fantastic Murray!
    > > [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]
    > >
    > > I have been looking for simple code to use on menus forever and this is
    > > perfect! Simple, light, easy to modify, and to the point.
    > >
    > > Thanks!
    > >
    > >
    > > "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
    > > news:bneo2o$mr$1@forums.macromedia.com...
    > > > Yes. And there are many other ways to do it in HTML that are much
    more
    > > code
    > > > efficient and much less troublesome. Here are some -
    > > >
    > > > [url]http://www.projectseven.com/tutorials/menuing/mcloser/index.htm[/url]
    > > >
    > > > or
    > > >
    > > > [url]http://www.projectseven.com/tutorials/auto_hide/index.htm[/url]
    > > >
    > > > Here is a method that is more 'hands on' but very slick and equally
    > > trouble
    > > > free -
    > > >
    > > > [url]http://www.youngpup.net/?request=/components/ypSlideOutMenus.xml[/url]
    > > >
    > > > --
    > > > Murray --- ICQ 71997575
    > > > Team Macromedia Volunteer for Dreamweaver MX
    > > > (If you *MUST* email me, don't LAUGH when you do so!)
    > > > ==================
    > > > [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO
    > GET
    > > > ANSWERS
    > > > ==================
    > > > [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    > > > [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    > > > [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    > > > [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    > > > ==================
    > > >
    > > > "jqpdev" <webforumsuser@macromedia.com> wrote in message
    > > > news:bnemtg$spc$1@forums.macromedia.com...
    > > > > Yes I'm a newb.
    > > > >
    > > > > I examined the pop-up menu code that dmx creates to show/hide pop-up
    > > > menus. Its approx 900 to 1000 lines of horribly spaced javascript
    code
    > > the
    > > > is functional. Why does it take *so* much code just to respond to
    only
    > a
    > > > few events (mouse over, mouse out, onclick)? The file is almost 30K.
    > > > >
    > > > > Is there a way to do this via CSS?
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Matthew Carpenter 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