Results 1 to 3 of 3

Thread: Simple Controls Gallery - navpanel

  1. #1
    Join Date
    Jan 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery - navpanel

    1) Script Title: Simple Controls Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.htm

    3) Describe problem: I would like the controls to be visible always, not just on mouse over - some novice internet users might not know this image is a gallery.. Anyway to achieve this? I've looked at the code and can't seem to find a way to modify it to my needs. The code which controls the $navpanel is in simplegallery.js. Any help is greatly appreciated.

  2. #2
    Join Date
    Jan 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think this is the code snippet that needs to be modified:

    Code:
    .bind('mouseover mouseout', function(e){
    				$(this).css({opacity:(e.type=="mouseover")? 1 : 0.8})
    			})
    			.bind('click', function(e){
    				var keyword=e.target.title.toLowerCase()
    				slideshow.navigate(keyword) //assign behavior to nav images
    			})
    		setting.$wrapperdiv.bind('mouseenter', function(){slideshow.showhidenavpanel('show')})
    		setting.$wrapperdiv.bind('mouseleave', function(){slideshow.showhidenavpanel('hide')})

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

    Default

    Pretty close. Just replace the below two lines inside the .js file:

    Code:
    		//setting.$wrapperdiv.bind('mouseenter', function(){slideshow.showhidenavpanel('show')})
    		//setting.$wrapperdiv.bind('mouseleave', function(){slideshow.showhidenavpanel('hide')})
    with:

    Code:
    		slideshow.showhidenavpanel('show')
    DD Admin

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
  •