Simple Question about Pop-Out Menus

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Applebrown

    #1

    Simple Question about Pop-Out Menus

    I'm trying my hand at developing a new website for my professional career,
    and am trying to implement a simple Rollover > Pop-out Menu system, and am
    finding the javascript confusing to do. I am using Photoshop and
    Dreamweaver/Fireworks, and have all of my normal and over button graphics
    finished, and created one simple pop-out in Fireworks.

    My problem is getting both the swap image in javascript onMouseOver event,
    and the menu event to run at the same time. How is this usually done? Can
    you add two functions to one java event?

    Like:
    <a href="#" onMouseOver="sw apimagefunction ();"
    onMouseOver="me nufunction();">

    Or is that illegal?

    Thanks a ton for any helpful info.

    Ty


  • DJ WIce

    #2
    Re: Simple Question about Pop-Out Menus

    : My problem is getting both the swap image in javascript onMouseOver event,
    : and the menu event to run at the same time. How is this usually done? Can
    : you add two functions to one java event?

    : <a href="#" onMouseOver="sw apimagefunction ();"
    : onMouseOver="me nufunction();">

    you can do it like this:

    <img src="blurimage. gif" name="menuItem"
    onMouseOver="sw apImage();ShowM enu();"
    onMouseOut="swa pImageBack();Cl oseMenu();" alt="Menu Item">


    Wouter


    Comment

    • Applebrown

      #3
      Re: Simple Question about Pop-Out Menus

      Thanks a ton, I'll try that out. Problem is I'm simply telling Dreamweaver
      to create a RollOver image and giving it the two Normal and Over images done
      in photoshop.... so it creates the javascript, and it works no problem. Then
      I'm telling Fireworks to create a pop-up menu and creating the html and
      javascript for that, and am not sure how to use the images I'm already using
      for the RollOver for the Menu as well.... and I'll probably be here all
      night figuring it out.

      Any other advice, please let me know, and I'll continue to check this.

      Ty

      "DJ WIce" <contextmenu @ djwice.com> wrote in message
      news:bv6s5r$la1 $1@news.tudelft .nl...[color=blue]
      > : My problem is getting both the swap image in javascript onMouseOver[/color]
      event,[color=blue]
      > : and the menu event to run at the same time. How is this usually done?[/color]
      Can[color=blue]
      > : you add two functions to one java event?
      >
      > : <a href="#" onMouseOver="sw apimagefunction ();"
      > : onMouseOver="me nufunction();">
      >
      > you can do it like this:
      >
      > <img src="blurimage. gif" name="menuItem"
      > onMouseOver="sw apImage();ShowM enu();"
      > onMouseOut="swa pImageBack();Cl oseMenu();" alt="Menu Item">
      >
      >
      > Wouter
      >
      >[/color]


      Comment

      • DJ WIce

        #4
        Re: Simple Question about Pop-Out Menus

        : Any other advice, please let me know, and I'll continue to check this.
        Oh in that case;

        if you have 2 mouseover events in one link:
        make it one with ; between the function names:

        <a href="#" onMouseOver="sw apimagefunction ();"
        onMouseOver="me nufunction();">

        Becomes:

        <a href="#" onMouseOver="sw apimagefunction ();menufunction ();">

        that should work (if they do not use the same global variable for 2
        differant things).

        Wouter

        :
        : Ty
        :
        : "DJ WIce" <contextmenu @ djwice.com> wrote in message
        : news:bv6s5r$la1 $1@news.tudelft .nl...
        : > : My problem is getting both the swap image in javascript onMouseOver
        : event,
        : > : and the menu event to run at the same time. How is this usually done?
        : Can
        : > : you add two functions to one java event?
        : >
        : > : <a href="#" onMouseOver="sw apimagefunction ();"
        : > : onMouseOver="me nufunction();">
        : >
        : > you can do it like this:
        : >
        : > <img src="blurimage. gif" name="menuItem"
        : > onMouseOver="sw apImage();ShowM enu();"
        : > onMouseOut="swa pImageBack();Cl oseMenu();" alt="Menu Item">
        : >
        : >
        : > Wouter
        : >
        : >
        :
        :


        Comment

        • Applebrown

          #5
          Re: Simple Question about Pop-Out Menus

          Thanks, appreciated!

          "DJ WIce" <contextmenu @ djwice.com> wrote in message
          news:bv79kg$pcb $1@news.tudelft .nl...[color=blue]
          > : Any other advice, please let me know, and I'll continue to check this.
          > Oh in that case;
          >
          > if you have 2 mouseover events in one link:
          > make it one with ; between the function names:
          >
          > <a href="#" onMouseOver="sw apimagefunction ();"
          > onMouseOver="me nufunction();">
          >
          > Becomes:
          >
          > <a href="#" onMouseOver="sw apimagefunction ();menufunction ();">
          >
          > that should work (if they do not use the same global variable for 2
          > differant things).
          >
          > Wouter
          >
          > :
          > : Ty
          > :
          > : "DJ WIce" <contextmenu @ djwice.com> wrote in message
          > : news:bv6s5r$la1 $1@news.tudelft .nl...
          > : > : My problem is getting both the swap image in javascript onMouseOver
          > : event,
          > : > : and the menu event to run at the same time. How is this usually[/color]
          done?[color=blue]
          > : Can
          > : > : you add two functions to one java event?
          > : >
          > : > : <a href="#" onMouseOver="sw apimagefunction ();"
          > : > : onMouseOver="me nufunction();">
          > : >
          > : > you can do it like this:
          > : >
          > : > <img src="blurimage. gif" name="menuItem"
          > : > onMouseOver="sw apImage();ShowM enu();"
          > : > onMouseOut="swa pImageBack();Cl oseMenu();" alt="Menu Item">
          > : >
          > : >
          > : > Wouter
          > : >
          > : >
          > :
          > :
          >
          >[/color]


          Comment

          Working...