Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 29th, 2003, 09:37 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , USA.
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.

Reply With Quote
  #2 (permalink)  
Old August 9th, 2003, 04:04 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

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.



Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old August 12th, 2003, 07:10 PM
Authorized User
Join Date: Jun 2003
Location: , , USA.
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

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)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 03:09 PM.

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