PDA

View Full Version : Simple Controls Gallery v1.3



kirky
04-28-2010, 09:10 AM
1) Script Title:
Simple Controls Gallery v1.3
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
3) Describe problem:
please someone help me! Simple Controls Gallery's description shows only when mouseover. i want it to show always after the page is loaded! any idea?

ddadmin
04-28-2010, 07:08 PM
Try using the onslide event handler (http://www.dynamicdrive.com/dynamicindex4/simplegallery_suppliment.htm) of the script to trigger the description to show whenever the slideshow rotates. Note the code in red below:


var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "http://en.wikipedia.org/wiki/Swimming_pool", "_new", "There's nothing like a nice swim in the Summer."],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "", ""],
["http://i30.tinypic.com/531q3n.jpg", "", "", "Eat your fruits, it's good for you!"],
["http://i31.tinypic.com/119w28m.jpg", "", "", ""]
],
autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
oninit:function(){ //event that fires when gallery has initialized/ ready to run
//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
},
onslide:function(curslide, i){ //event that fires after each slide is shown
//Keyword "this": references current gallery instance
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
this.showhidedescpanel("show")
}
})

kirky
04-28-2010, 10:36 PM
thank you very much! And what if i want this with gallery too?

ddadmin
04-29-2010, 09:17 AM
Hmm what do you mean by "with gallery too"?

kirky
04-29-2010, 03:46 PM
i mean the control panel on the bottom of the image

ddadmin
04-29-2010, 10:57 PM
So you want to show both the description panel and nav panel automatically? If so try changing the line in red above to:


this.showhidenavpanel("show")

kirky
04-30-2010, 10:03 AM
'till now i liked this site, now i love it! Thank you!

one last question. And what if in the nav panel i son't want to show the "1/4"?