473,408 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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

Or is that illegal?

Thanks a ton for any helpful info.

Ty
Jul 20 '05 #1
4 1584
: 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
Jul 20 '05 #2
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:bv**********@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="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

Jul 20 '05 #3
: 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
:
: "DJ WIce" <contextmenu @ djwice.com> wrote in message
: news:bv**********@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="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
: >
: >
:
:
Jul 20 '05 #4
Thanks, appreciated!

"DJ WIce" <contextmenu @ djwice.com> wrote in message
news:bv**********@news.tudelft.nl...
: 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
:
: "DJ WIce" <contextmenu @ djwice.com> wrote in message
: news:bv**********@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="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
: >
: >
:
:

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: C GIllespie | last post by:
Dear all, I'm new to both python and OOP, so could I ask a simple question. I have class: class species: __init__(self,pop=0): self.pop=pop
2
by: Senraba | last post by:
I would like to have a 600 X 400 window open with search results from CPanel's Entropy Search form. I have the following in the <HEAD> tag: <script language="javascript"...
14
by: Josh | last post by:
I was wondering if anyone could point me in the direction for information to solve the following problems with my site (under development). The URL is...
3
by: Thomas Ibbotson | last post by:
I've been going through a tutorial on C++ and I've come across what I regard as some strange behaviour. As part of the tutorial on classes a simple stack is implemented with functions push() and...
12
by: Marmagya | last post by:
Hi, Why should the following code give me a core dump? #include <stdio.h> int main(){ char *a="Marmagya"; printf("The statement is : %s", *a);
10
by: Fred | last post by:
Hi all ! Newbie in C programming needs help please ... I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the...
8
by: Bryan Feeney | last post by:
This structure is, according to sizeof, 3 bytes long, which makes sense struct test { char text; }; This structure is, according to sizeof, 4 bytes long, which also makes sense struct...
33
by: hermit_crab67 | last post by:
Can someone explain to a C newbie why this doesn't work as I expect it to work? (expectations clearly outlined in the printf statement in main routine) OS: Linux 2.4.26 GCC: 2.95.4 void...
2
by: Preston | last post by:
public Abc test() { if (oneStack.Count != 0) return (Abc)oneStack.Peek(); } I'd like to do return (Abc)oneStack.Peek()first, and then do receiveStack.Pop()
17
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /*...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.