PDA

View Full Version : Simple Controls Gallery - navpanel



northshore
01-19-2009, 11:59 PM
1) Script Title: Simple Controls Gallery

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.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.

northshore
01-20-2009, 02:03 PM
I think this is the code snippet that needs to be modified:


.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')})

ddadmin
01-21-2009, 05:22 AM
Pretty close. Just replace the below two lines inside the .js file:


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

with:


slideshow.showhidenavpanel('show')