473,765 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 20 '05 #1
4 1607
: 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
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="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

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="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: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="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
: >
: >
:
:
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="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: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="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
: >
: >
:
:

Jul 20 '05 #5

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

Similar topics

3
1249
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
1657
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" type="text/javascript"> <!-- var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
14
1503
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 http://thesouthbeachhostel.com/php-testing/default.php?p=reservations. This contents in this folder are not active yet. This is my first professional site so I want everything to be as perfect as possible. 1) On the form there is a label "Check-in Date:" -- I want the small calendar...
3
2451
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 pop(). I test this stack using: stack a_stack; // Create an instance of stack // Push some data onto the stack a_stack.push(1); a_stack.push(2);
12
2015
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
4228
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 password with a password dialog box . ----------------------- |
8
1852
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 test { int number;
33
2284
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 modify_pointer(char *); int main(int argc, char *argv) {
2
1644
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
5817
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: _________________________________________________________________ /* Simple Thread Object ______________________________________________________________*/ #include <pthread.h> extern "C" void* thread_entry(void*);
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.