Results 1 to 3 of 3

Thread: DD Drop Down Panel On Mouse Over

  1. #1
    Join Date
    Nov 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD Drop Down Panel On Mouse Over

    1) DD Drop Down Panel

    2) http://www.dynamicdrive.com/dynamici...pdownpanel.htm

    3) Describe problem: How can I make this activate - On Mouse Over

    Thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You can try changing the code in red from the original "click" to "mouseover" inside the .js file, which provides a basic version of this behavior:

    Code:
    	ddpanel.addEvent(tdiv, function(e){ //assign click behavior when toggle DIV tab is clicked on
    		if (setting.animate.enabled)
    			thispanel.togglepanelplus()
    		else
    			thispanel.togglepanel()
    		if (e.preventDefault) e.preventDefault()
    		return false
    	}, "mouseover")
    The panel won't collapse onMouseout of the panel, however. That's a lot more complex to do unfortunately based on the current code.
    DD Admin

  3. #3
    Join Date
    Nov 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Many thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •