Simple Question about Pop-Out Menus

A

Applebrown

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="swapimagefunction();"
onMouseOver="menufunction();">

Or is that illegal?

Thanks a ton for any helpful info.

Ty
 
D

DJ WIce

: 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="swapimagefunction();"
: onMouseOver="menufunction();">

you can do it like this:

<img src="blurimage.gif" name="menuItem"
onMouseOver="swapImage();ShowMenu();"
onMouseOut="swapImageBack();CloseMenu();" alt="Menu Item">


Wouter
 
A

Applebrown

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
 
D

DJ WIce

: 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="swapimagefunction();"
onMouseOver="menufunction();">

Becomes:

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

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

Wouter

:
: Ty
:
: : > : 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="swapimagefunction();"
: > : onMouseOver="menufunction();">
: >
: > you can do it like this:
: >
: > <img src="blurimage.gif" name="menuItem"
: > onMouseOver="swapImage();ShowMenu();"
: > onMouseOut="swapImageBack();CloseMenu();" alt="Menu Item">
: >
: >
: > Wouter
: >
: >
:
:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top