Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2003, 09:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default 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
 
Old August 9th, 2003, 04:04 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old August 12th, 2003, 07:10 PM
Authorized User
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to natmaster Send a message via AIM to natmaster Send a message via MSN to natmaster
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
After Effects CS2 Plugin - newbie mattybennett C++ Programming 0 August 22nd, 2007 04:06 PM
Trigger effects melvik SQL Server 2000 3 January 16th, 2007 01:40 PM
Multiple Lines in Button jmss66 Classic ASP Basics 3 September 21st, 2006 10:01 AM
Multiple function in submit button sougataroy BOOK: Beginning ASP 3.0 2 August 16th, 2006 06:30 PM
Effects of Browser Back Button prafullprashant ASP.NET 1.0 and 1.1 Basics 0 November 23rd, 2005 02:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.