p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Dreamweaver (all versions) (http://p2p.wrox.com/forumdisplay.php?f=58)
-   -   Multiple Button Effects (http://p2p.wrox.com/showthread.php?t=2201)

Bob Bedell July 29th, 2003 09:37 AM

Multiple Button Effects
 
Hi all,

"Beginning Dreamweaver MX" is going really well. My web site is progressing rapidly. Quick question:

Can I attach a roll-over behavior and a pop-up menu behavior to the same navigation button?

I have a button in the navigation portion of my template to take the user to a page that lists a number of tutoring labs. The button's original image is "tutorlabs.gif" and the rollover image is "tutorlabsov.gif". The rollover works fine. I would also like a pop-up menu to display on the MouseOver event with links to four differnt tutoring labs: Math/Science, LSS, Accounting/CIS, and Writing.

When I select the "Tutoring Labs" button and try to set the pop-up menu behavior, the "Show Pop-up Menu" option is greyed-out in the behaviors pane.

Any thoughts?

Thanks for your time.

Bob

Imar August 9th, 2003 04:04 AM

Hi Bob,

I don't think that Dreamweaver supports this directly. AFAIK, you could change the JavaScript code that has been generated by DW so it performs multiple function calls in the onmouseover events.

I think the easiest way to do this is to add 2 buttons to the page. Apply the rollover to the first, and the menu to the second. Then combine the code for both images in one call and delete the second button.

Notice that will likely remove the ability to edit the menu with the DW menu editor. DW is probably no longer able to reconnect the code to the editor.

HtH

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

natmaster August 12th, 2003 07:10 PM

i don't know why it is graying for you. but you can get around this by copying the functions it calls for the mouseover to another file, then remove those function calls, then add the popup menu thing, then add the function back again. in javascript the semicolon ';' is the 'endline' character, so seperate your mouseover function calls with your popup menu function calls. (don't put more than one semicolon in a row)

----------------------------
http://aeonofdarkness.com


All times are GMT -4. The time now is 06:53 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.